From d81e8beaeac4484ac2e34c5fad6ad0ef6414f55f Mon Sep 17 00:00:00 2001 From: SataQiu Date: Wed, 13 Nov 2024 11:54:30 +0800 Subject: [PATCH] kubeadm: fix a bug where upgrade dryrun can not select the network interface correctly --- cmd/kubeadm/app/util/apiclient/dryrun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/util/apiclient/dryrun.go b/cmd/kubeadm/app/util/apiclient/dryrun.go index f28131aab34..29c5ec256f3 100644 --- a/cmd/kubeadm/app/util/apiclient/dryrun.go +++ b/cmd/kubeadm/app/util/apiclient/dryrun.go @@ -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{