Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ip addr add "${U7S_HOST_IP}" dev eth0 #296

Closed
AkihiroSuda opened this issue Sep 5, 2023 · 4 comments · Fixed by #323
Closed

Remove ip addr add "${U7S_HOST_IP}" dev eth0 #296

AkihiroSuda opened this issue Sep 5, 2023 · 4 comments · Fixed by #323

Comments

@AkihiroSuda
Copy link
Member

# Let kubelet recognize ${U7S_HOST_IP} as its IP:
# https://github.com/kubernetes/kubernetes/issues/54337#issuecomment-363597985
ip addr add "${U7S_HOST_IP}" dev eth0

It is weird to assign the host IP to the eth0 of the node container.

Depends on:

@aojea
Copy link

aojea commented Sep 5, 2023

do you want to configure the externalIP of the node?

@aojea
Copy link

aojea commented Sep 5, 2023

if you start the kubelet with cloud-provider external you can update the status of the node object and it will pick those addresses, now you can do it with kubectl kubectl patch node --type=merge --subresource status --patch '.....'

@AkihiroSuda

This comment was marked as resolved.

@AkihiroSuda
Copy link
Member Author

Thanks @aojea , implemented your suggestion in https://github.com/rootless-containers/usernetes/releases/tag/gen2-v20240404.1 (#323)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants