mirror of https://github.com/kubernetes/kops.git
Set kubelet's --no-ip on IPv6-only clusters
This commit is contained in:
parent
724804025b
commit
7ce1cdc065
|
@ -247,6 +247,10 @@ func (b *KubeletBuilder) buildSystemdEnvironmentFile(kubeletConfig *kops.Kubelet
|
|||
flags += " --tls-private-key-file=" + b.PathSrvKubernetes() + "/kubelet-server.key"
|
||||
}
|
||||
|
||||
if b.Cluster.Spec.IsIPv6Only() {
|
||||
flags += " --node-ip=::"
|
||||
}
|
||||
|
||||
sysconfig := "DAEMON_ARGS=\"" + flags + "\"\n"
|
||||
// Makes kubelet read /root/.docker/config.json properly
|
||||
sysconfig = sysconfig + "HOME=\"/root" + "\"\n"
|
||||
|
|
Loading…
Reference in New Issue