Browse Source
Merge pull request #2350 from whereismyjetpack/kubeadm-nodename
set nodeName to "{{ inventory_hostname }}" in kubeadm-config
pull/2546/merge
Andreas Krüger
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
roles/kubernetes/master/templates/kubeadm-config.yaml.j2
|
|
@ -90,3 +90,7 @@ apiServerCertSANs: |
|
|
|
{% endfor %} |
|
|
|
certificatesDir: {{ kube_config_dir }}/ssl |
|
|
|
unifiedControlPlaneImage: "{{ hyperkube_image_repo }}:{{ hyperkube_image_tag }}" |
|
|
|
{% if kube_override_hostname|default('') %} |
|
|
|
nodeName: {{ kube_override_hostname }} |
|
|
|
{% endif %} |
|
|
|
|