2018-09-29 09:06:19 +08:00
|
|
|
# WARNING: Upgrade the k8s cluster can be risky. Make sure you know what you are doing.
|
|
|
|
# Read the guide: 'op/upgrade.md' .
|
2018-05-11 11:07:14 +08:00
|
|
|
|
2018-09-29 09:06:19 +08:00
|
|
|
# update kubectl binary
|
2018-05-11 11:07:14 +08:00
|
|
|
- hosts:
|
|
|
|
- kube-master
|
2018-08-12 19:53:04 +08:00
|
|
|
- new-master
|
2018-05-11 11:07:14 +08:00
|
|
|
- kube-node
|
2018-08-12 19:53:04 +08:00
|
|
|
- new-node
|
2018-12-06 10:04:27 +08:00
|
|
|
- deploy
|
2018-05-11 11:07:14 +08:00
|
|
|
roles:
|
2018-12-06 10:04:27 +08:00
|
|
|
- prepare
|
2018-05-11 11:07:14 +08:00
|
|
|
|
2018-09-29 09:06:19 +08:00
|
|
|
# update masters
|
2018-08-12 19:53:04 +08:00
|
|
|
- hosts:
|
|
|
|
- kube-master
|
|
|
|
- new-master
|
2018-05-11 11:07:14 +08:00
|
|
|
roles:
|
|
|
|
- kube-master
|
|
|
|
- kube-node
|
|
|
|
|
2018-09-29 09:06:19 +08:00
|
|
|
# update nodes
|
2018-08-12 19:53:04 +08:00
|
|
|
- hosts:
|
|
|
|
- kube-node
|
|
|
|
- new-node
|
2018-05-11 11:07:14 +08:00
|
|
|
roles:
|
|
|
|
- { role: kube-node, when: "DEPLOY_MODE != 'allinone'" }
|