kubeasz/22.upgrade.yml

40 lines
598 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
roles:
- prepare
# update etcd
2018-05-11 11:07:14 +08:00
- hosts: etcd
roles:
- etcd
# update docker 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-05-11 11:07:14 +08:00
roles:
- docker
# 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'" }