use var: kube_apiserver_address (#9967)

pull/9970/head
Samuel Liu 2023-04-11 06:01:17 +08:00 committed by GitHub
parent eecaec2919
commit 0104396c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}