kubeasz/22.upgrade.yml

24 lines
411 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
- kube-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
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
2018-05-11 11:07:14 +08:00
roles:
- { role: kube-node, when: "DEPLOY_MODE != 'allinone'" }