kubeasz/22.upgrade.yml

18 lines
431 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' .
2019-06-01 09:24:43 +08:00
# Usage: `ansible-playbook /etc/ansible/22.upgrade.yml -t upgrade_k8s`
# or `easzctl upgrade`
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:
2019-05-31 23:07:00 +08:00
- { role: kube-node, when: "inventory_hostname not in groups['kube-master']" }