diff --git a/pkg/cluster/internal/kubeadm/config.go b/pkg/cluster/internal/kubeadm/config.go index ad6a34c204..660fb978c7 100644 --- a/pkg/cluster/internal/kubeadm/config.go +++ b/pkg/cluster/internal/kubeadm/config.go @@ -359,13 +359,12 @@ controllerManager: enable-hostpath-provisioner: "true" # configure ipv6 default addresses for IPv6 clusters {{ if .IPv6 -}} - bind-address: "::" + bind-address: "::1" {{- end }} scheduler: extraArgs: # configure ipv6 default addresses for IPv6 clusters {{ if .IPv6 -}} - address: "::" bind-address: "::1" {{- end }} networking: @@ -379,10 +378,10 @@ metadata: # we use a well know token for TLS bootstrap bootstrapTokens: - token: "{{ .Token }}" -# we use a well know port for making the API server discoverable inside docker network. +# we use a well know port for making the API server discoverable inside docker network. # from the host machine such port will be accessible via a random local port instead. localAPIEndpoint: - advertiseAddress: "{{ .NodeAddress }}" + advertiseAddress: "::" bindPort: {{.APIBindPort}} nodeRegistration: criSocket: "/run/containerd/containerd.sock" @@ -398,7 +397,7 @@ metadata: {{ if .ControlPlane -}} controlPlane: localAPIEndpoint: - advertiseAddress: "{{ .NodeAddress }}" + advertiseAddress: "::" bindPort: {{.APIBindPort}} {{- end }} nodeRegistration: