From e60d060e4647f9f2c35c9895d3fd64e2e1c2b907 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Fri, 20 Dec 2019 15:43:05 +0100 Subject: [PATCH] bind apiserver to ipv6 address --- pkg/cluster/internal/kubeadm/config.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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: