-
Notifications
You must be signed in to change notification settings - Fork 408
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
[BUG] modified cni binaries do not support Pod IP address kept as expected #1439
Comments
@joez Thanks for raising issue, it looks like that cni binaries has been changed unintentionally, and i will update cni binaries as soon as possible. |
/assign @rambohe-ch |
/assign @luc99hen |
The CNI binaries have been updated. @rambohe-ch |
/close |
@rambohe-ch: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
As mentioned by the official doc: yurtadm join
The modified
host-local
should support IPAM: Pod IP address keptBut the result is not as expected, everytime I rebooted the edge node, the deployed Pod got a new IP address
And the IP address records are not as expected:
After build the
host-local
with patch 0002-ipam-keep-pod-ip and install it, things work as expected.So I think the latest modified cni binaries provided by OpenYurt did not include the correct patches
What you expected to happen:
The Pod should get the same IP address after edge node rebooted, the IP address records should be like:
How to reproduce it (as minimally and precisely as possible):
Deploy OpenYurt in a Kubernetes cluster with two nodes, details in #1400
Install the modified cni binaries which is used by
yurtadm
:tar czf cni-plugin-backup.tar.gz -C /opt/cni/bin/ . curl -LO https://aliacs-edge-k8s-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/public/pkg/openyurt/cni/v0.8.0/cni-plugins-linux-amd64-v0.8.0.tgz sudo tar xzf cni-plugins-linux-amd64-v0.8.0.tgz -C /opt/cni/bin
Now, deploy nginx server and check the result
On the edge node, check the assigned IP:
Reboot the edge node and check it again after booted, the result IP is different
Anything else we need to know?:
Environment:
kubectl version
): 1.22.0cat /etc/os-release
): Ubuntu 20.04.5 LTSuname -a
): Linux xxx 5.4.0-148-generic#165-Ubuntu
SMP Tue Apr 18 08:53:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linuxothers
/kind bug
The text was updated successfully, but these errors were encountered: