Optionally refresh kubeadm token every time (#5043)

Change-Id: I278cb14aa93abf20160cc001f69e2f472504e6d8
This commit is contained in:
Matthew Mosesohn 2019-08-06 10:59:53 +03:00 committed by Kubernetes Prow Robot
parent 02ec72fa40
commit 7cf8ad4dc7
2 changed files with 4 additions and 0 deletions

View file

@ -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

View 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