only sets nodeName in kubeadm-config when kube_override_hostname is set
This commit is contained in:
parent
95e2bde15b
commit
9fa995ac9d
1 changed files with 2 additions and 0 deletions
|
@ -83,5 +83,7 @@ apiServerCertSANs:
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
certificatesDir: {{ kube_config_dir }}/ssl
|
certificatesDir: {{ kube_config_dir }}/ssl
|
||||||
unifiedControlPlaneImage: "{{ hyperkube_image_repo }}:{{ hyperkube_image_tag }}"
|
unifiedControlPlaneImage: "{{ hyperkube_image_repo }}:{{ hyperkube_image_tag }}"
|
||||||
|
{% if kube_override_hostname|default('') %}
|
||||||
nodeName: {{ inventory_hostname }}
|
nodeName: {{ inventory_hostname }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue