Optionally refresh kubeadm token every time (#5043)
Change-Id: I278cb14aa93abf20160cc001f69e2f472504e6d8
This commit is contained in:
parent
02ec72fa40
commit
7cf8ad4dc7
2 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,9 @@ kube_scheduler_bind_address: 0.0.0.0
|
||||||
# discovery_timeout modifies the discovery timeout
|
# discovery_timeout modifies the discovery timeout
|
||||||
discovery_timeout: 5m0s
|
discovery_timeout: 5m0s
|
||||||
|
|
||||||
|
# Instruct first master to refresh kubeadm token
|
||||||
|
kubeadm_refresh_token: true
|
||||||
|
|
||||||
# audit support
|
# audit support
|
||||||
kubernetes_audit: false
|
kubernetes_audit: false
|
||||||
# path to audit log file
|
# path to audit log file
|
||||||
|
|
|
@ -146,6 +146,7 @@
|
||||||
when:
|
when:
|
||||||
- inventory_hostname == groups['kube-master']|first
|
- inventory_hostname == groups['kube-master']|first
|
||||||
- kubeadm_token is defined
|
- kubeadm_token is defined
|
||||||
|
- kubeadm_refresh_token
|
||||||
tags:
|
tags:
|
||||||
- kubeadm_token
|
- kubeadm_token
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue