-
Notifications
You must be signed in to change notification settings - Fork 716
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
Kubeadm init/join support setting kubelet KubeConfig serverURL to local APIEndpoint #2996
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
@chenk008: The label(s) 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. |
/area kubeadm /sig cluster-lifecycle |
/transfer kubeadm |
do you mean serverURL in kubelet.conf? there is a plan to make the kubelet.conf point to localhost actually: cc @chrischdi |
Yes, it is. The node can not connect to itself across the load balancer (e.g. Alibaba cloud Classic Load Balancer). I think it is acceptable the kubelet will failed to register or be not ready if the local apiserver is not ready. |
is this hairpin mode? the azure LB had a similar problem, more details in #2271, IIRC.
yes, but this is a complicated problem. if you enable the option you request (connect kubelet.conf to localAPIEndpooint) the node that this kubelet manages will (or may) currently fail to register. i suggest we close this ticket and continue the discussion in here:
|
#2996 (comment) |
@neolit123: 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 would you like to be added?
Kubeadm will create kubelet KubeConfig file when init/join control-plane. The serverURL is control-plane-endpoint load balancer address by default.
Adding a flag to change kubelet KubeConfig serverURL to local APIEndpoint, instead of controlPlane load balancer address
Why is this needed?
With some load balancer, the node can not connect to itself across the load balancer, so kubeadm init will fail. Setting kubelet KubeConfig serverURL to local APIEndpoint, the kubeadm init will succeed.
The text was updated successfully, but these errors were encountered: