kubeasz/22.upgrade.yml

28 lines
467 B
YAML
Raw Normal View History

# 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
# 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
- deploy
2018-05-11 11:07:14 +08:00
roles:
- prepare
2018-05-11 11:07:14 +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
# 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'" }