only sets nodeName in kubeadm-config when kube_override_hostname is set

pull/2350/head
Dann Bohn 2018-03-23 08:33:25 -04:00
parent 95e2bde15b
commit 9fa995ac9d
1 changed files with 2 additions and 0 deletions

View File

@ -83,5 +83,7 @@ apiServerCertSANs:
{% endfor %}
certificatesDir: {{ kube_config_dir }}/ssl
unifiedControlPlaneImage: "{{ hyperkube_image_repo }}:{{ hyperkube_image_tag }}"
{% if kube_override_hostname|default('') %}
nodeName: {{ inventory_hostname }}
{% endif %}