Fix adding output of kubeadm to the admin.conf downloaded to the artifacts directory (#4696)
Fixes issue https://github.com/kubernetes-sigs/kubespray/issues/4695
This commit is contained in:
parent
d5c0829d61
commit
03bded2b6b
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@
|
||||||
--apiserver-advertise-address {{ external_apiserver_address }}
|
--apiserver-advertise-address {{ external_apiserver_address }}
|
||||||
--apiserver-bind-port {{ external_apiserver_port }}
|
--apiserver-bind-port {{ external_apiserver_port }}
|
||||||
{% if kubeadm_version is version('v1.14.0', '>=') %}
|
{% if kubeadm_version is version('v1.14.0', '>=') %}
|
||||||
&& cat {{ kube_config_dir }}/external_kubeconfig/admin.conf &&
|
>/dev/null && cat {{ kube_config_dir }}/external_kubeconfig/admin.conf &&
|
||||||
rm -rf {{ kube_config_dir }}/external_kubeconfig
|
rm -rf {{ kube_config_dir }}/external_kubeconfig
|
||||||
{% endif %}
|
{% endif %}
|
||||||
environment: "{{ proxy_env }}"
|
environment: "{{ proxy_env }}"
|
||||||
|
|
Loading…
Reference in a new issue