kubeadm: fix a bug where upgrade dryrun can not select the network interface correctly

This commit is contained in:
SataQiu 2024-11-13 11:54:30 +08:00
parent 6b031e50b2
commit d81e8beaea

View File

@ -754,7 +754,7 @@ func getPod(name, nodeName string) corev1.Pod {
"tier": constants.ControlPlaneTier,
},
Annotations: map[string]string{
constants.KubeAPIServerAdvertiseAddressEndpointAnnotationKey: "127.0.0.1:6443",
constants.KubeAPIServerAdvertiseAddressEndpointAnnotationKey: "0.0.0.0:6443",
},
},
Spec: corev1.PodSpec{