@@ -59,7 +59,8 @@ func GetStaticPodSpecs(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmap
59
59
LivenessProbe : staticpodutil .LivenessProbe (staticpodutil .GetAPIServerProbeAddress (endpoint ), "/healthz" , int (endpoint .BindPort ), v1 .URISchemeHTTPS ),
60
60
Resources : staticpodutil .ComponentResources ("250m" ),
61
61
Env : kubeadmutil .GetProxyEnvVars (),
62
- }, mounts .GetVolumes (kubeadmconstants .KubeAPIServer )),
62
+ }, mounts .GetVolumes (kubeadmconstants .KubeAPIServer ),
63
+ map [string ]string {kubeadmconstants .KubeAPIServerAdvertiseAddressEndpointAnnotationKey : endpoint .String ()}),
63
64
kubeadmconstants .KubeControllerManager : staticpodutil .ComponentPod (v1.Container {
64
65
Name : kubeadmconstants .KubeControllerManager ,
65
66
Image : images .GetKubernetesImage (kubeadmconstants .KubeControllerManager , cfg ),
@@ -69,7 +70,7 @@ func GetStaticPodSpecs(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmap
69
70
LivenessProbe : staticpodutil .LivenessProbe (staticpodutil .GetControllerManagerProbeAddress (cfg ), "/healthz" , kubeadmconstants .KubeControllerManagerPort , v1 .URISchemeHTTPS ),
70
71
Resources : staticpodutil .ComponentResources ("200m" ),
71
72
Env : kubeadmutil .GetProxyEnvVars (),
72
- }, mounts .GetVolumes (kubeadmconstants .KubeControllerManager )),
73
+ }, mounts .GetVolumes (kubeadmconstants .KubeControllerManager ), nil ),
73
74
kubeadmconstants .KubeScheduler : staticpodutil .ComponentPod (v1.Container {
74
75
Name : kubeadmconstants .KubeScheduler ,
75
76
Image : images .GetKubernetesImage (kubeadmconstants .KubeScheduler , cfg ),
@@ -79,7 +80,7 @@ func GetStaticPodSpecs(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmap
79
80
LivenessProbe : staticpodutil .LivenessProbe (staticpodutil .GetSchedulerProbeAddress (cfg ), "/healthz" , kubeadmconstants .KubeSchedulerPort , v1 .URISchemeHTTPS ),
80
81
Resources : staticpodutil .ComponentResources ("100m" ),
81
82
Env : kubeadmutil .GetProxyEnvVars (),
82
- }, mounts .GetVolumes (kubeadmconstants .KubeScheduler )),
83
+ }, mounts .GetVolumes (kubeadmconstants .KubeScheduler ), nil ),
83
84
}
84
85
return staticPodSpecs
85
86
}
0 commit comments