-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
calico: support kubeadm.pod-network-cidr #18233
calico: support kubeadm.pod-network-cidr #18233
Conversation
Hi @lollipopman. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Can one of the admins verify this patch? |
@lollipopman thank you for this PR, can you please provide a before/after this PR with minikube output with an example? |
/ok-to-test |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@lollipopman can you plz take a look at the unit tests ? and also could you plz put an output of Before / After this PR of using this new feature using minikube in action? |
log files are attached, as well as the calico-node config, note how after the patch, CALICO_IPV4POOL_CIDR is removed: - - name: CALICO_IPV4POOL_CIDR
- value: 10.244.0.0/16 The busybox container output shows that after the patch the pod gets the correct ip: -3: eth0@if10: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1480 qdisc noqueue qlen 1000
- link/ether 22:ce:10:48:b5:36 brd ff:ff:ff:ff:ff:ff
- inet 10.244.120.67/32 scope global eth0
+3: eth0@if9: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1480 qdisc noqueue qlen 1000
+ link/ether 4e:4e:31:e7:3f:ec brd ff:ff:ff:ff:ff:ff
+ inet 10.64.120.67/32 scope global eth0 Also, I was unable to reproduce the unit test failures, perhaps a testing fluke? logs-3e67840d02a296d807adca10af96b93dacfc918d.txt |
thanks @lollipopman do you mind pull upstream to your PR, the unit test is fixed, but there are failed test on Docker Linux that I would like to see if it goes away |
43c16c6
to
dcf0997
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after the test are ok we could merge
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Prior to this commit the Calico CNI ignored the setting of kubeadm.pod-network-cidr, because we set CALICO_IPV4POOL_CIDR to the DefaultPodCIDR. However, this is no longer necessary as Calico's pod cidr will be set to the default when we initialize kubeadm in pkg/minikube/bootstrapper/bsutil/kubeadm.go.
dcf0997
to
cb33a82
Compare
@prezha & @spowelljr can you take a look at this pull request when you have a moment? |
kvm2 driver with docker runtime
Times for minikube start: 52.1s 51.1s 50.2s 52.2s 51.8s Times for minikube ingress: 26.5s 24.5s 26.5s 27.1s 27.0s docker driver with docker runtime
Times for minikube start: 24.6s 20.9s 23.3s 22.1s 23.3s Times for minikube ingress: 21.2s 21.2s 21.2s 21.2s 22.2s docker driver with containerd runtime
Times for minikube ingress: 31.7s 31.7s 31.7s 47.7s 30.7s Times for minikube start: 22.0s 19.6s 22.4s 22.4s 20.2s |
These are the flake rates of all failed tests.
To see the flake rates of all tests by environment, click here. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lollipopman, medyagh, spowelljr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
woohoo, thanks! |
Prior to this commit the Calico CNI ignored the setting of kubeadm.pod-network-cidr, because we set CALICO_IPV4POOL_CIDR to the DefaultPodCIDR. However, this is no longer necessary as Calico's pod cidr will be set to the default when we initialize kubeadm in pkg/minikube/bootstrapper/bsutil/kubeadm.go.