Browse Source

Do not run kubeadm upgrade on first deploy (#5339)

Change-Id: I68a962a9dd28c83ef07eaeaf53eb98287f38bca9
pull/5341/head
Matthew Mosesohn 5 years ago
committed by Kubernetes Prow Robot
parent
commit
8b67159239
1 changed files with 6 additions and 4 deletions
  1. 10
      roles/kubernetes/master/tasks/kubeadm-setup.yml

10
roles/kubernetes/master/tasks/kubeadm-setup.yml

@ -159,16 +159,18 @@
- kubeadm_token
- name: kubeadm | Initialize other masters (experimental control plane)
include: kubeadm-secondary-experimental.yml
include_tasks: kubeadm-secondary-experimental.yml
when: kubeadm_control_plane
- name: kubeadm | Initialize other masters (experimental control plane)
include: kubeadm-secondary-legacy.yml
include_tasks: kubeadm-secondary-legacy.yml
when: not kubeadm_control_plane
- name: kubeadm | upgrade kubernetes cluster
import_tasks: kubeadm-upgrade.yml
when: upgrade_cluster_setup
include_tasks: kubeadm-upgrade.yml
when:
- upgrade_cluster_setup
- kubeadm_already_run.stat.exists
- name: kubeadm | Check serviceaccount key again
stat:

Loading…
Cancel
Save