Skip to content
Snippets Groups Projects
Commit 9fa995ac authored by Dann Bohn's avatar Dann Bohn
Browse files

only sets nodeName in kubeadm-config when kube_override_hostname is set

parent 95e2bde1
No related branches found
No related tags found
No related merge requests found
......@@ -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 %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment