diff --git a/roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2 b/roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2 index 1bb31ba82..3a84ad694 100644 --- a/roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2 +++ b/roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2 @@ -7,7 +7,7 @@ bootstrapTokens: ttl: "24h" {% endif %} localAPIEndpoint: - advertiseAddress: {{ ip | default(fallback_ips[inventory_hostname]) }} + advertiseAddress: {{ kube_apiserver_address }} bindPort: {{ kube_apiserver_port }} {% if kubeadm_certificate_key is defined %} certificateKey: {{ kubeadm_certificate_key }}