Skip to content

Commit

Permalink
bind apiserver to ipv6 address
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jan 4, 2020
1 parent 03a4b51 commit e60d060
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/cluster/internal/kubeadm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
Expand All @@ -398,7 +397,7 @@ metadata:
{{ if .ControlPlane -}}
controlPlane:
localAPIEndpoint:
advertiseAddress: "{{ .NodeAddress }}"
advertiseAddress: "::"
bindPort: {{.APIBindPort}}
{{- end }}
nodeRegistration:
Expand Down

0 comments on commit e60d060

Please sign in to comment.