Browse Source
force rotate control plane certifcate on master node when upgrade cluster (#5596)
pull/5626/head
Sergey
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
roles/kubernetes/master/tasks/kubeadm-upgrade.yml
|
|
@ -9,6 +9,7 @@ |
|
|
|
--allow-experimental-upgrades |
|
|
|
--allow-release-candidate-upgrades |
|
|
|
--etcd-upgrade=false |
|
|
|
{{ (kubeadm_output.stdout is version('v1.16.0', '>=')) | ternary('--certificate-renewal=true', '') }} |
|
|
|
--force |
|
|
|
register: kubeadm_upgrade |
|
|
|
# Retry is because upload config sometimes fails |
|
|
@ -29,6 +30,7 @@ |
|
|
|
--allow-experimental-upgrades |
|
|
|
--allow-release-candidate-upgrades |
|
|
|
--etcd-upgrade=false |
|
|
|
{{ (kubeadm_output.stdout is version('v1.16.0', '>=')) | ternary('--certificate-renewal=true', '') }} |
|
|
|
--force |
|
|
|
register: kubeadm_upgrade |
|
|
|
when: inventory_hostname != groups['kube-master']|first |
|
|
|