Browse Source

only sets nodeName in kubeadm-config when kube_override_hostname is set

pull/2350/head
Dann Bohn 6 years ago
parent
commit
9fa995ac9d
1 changed files with 2 additions and 0 deletions
  1. 2
      roles/kubernetes/master/templates/kubeadm-config.yaml.j2

2
roles/kubernetes/master/templates/kubeadm-config.yaml.j2

@ -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 %}
Loading…
Cancel
Save