-
Notifications
You must be signed in to change notification settings - Fork 17
/
upgrade.yml
54 lines (49 loc) · 918 Bytes
/
upgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- name: Base environment configuration
hosts: all
become: true
any_errors_fatal: true
roles:
- prepare
- name: Upgrade etcd cluster
serial: 1
hosts: "{% if groups['etcd'] is not defined %}master{% else %}etcd{% endif %}"
become: yes
roles:
- etcd
- name: Upgrade kubernetes dependence
hosts: kubernetes
become: yes
roles:
- cni
- name: Upgrade kubernetes master
serial: 1
hosts: master
become: yes
roles:
- "{{ KUBE_RUNTIME }}"
- kubectl
- kube-apiserver
- kube-scheduler
- kube-controller-manager
- kubelet
- kube-proxy
- motd
- cleanup
- name: Upgrade kubernetes worker
serial: 1
hosts: worker
become: yes
roles:
- kubectl
- kubelet
- "{{ KUBE_RUNTIME }}"
- kube-proxy
- motd
- cleanup
- name: Upgrade kubernetes add-on
hosts: master
become: true
any_errors_fatal: true
roles:
- add-on