mirror of https://github.com/easzlab/kubeasz.git
18 lines
431 B
YAML
18 lines
431 B
YAML
# WARNING: Upgrade the k8s cluster can be risky. Make sure you know what you are doing.
|
|
# Read the guide: 'op/upgrade.md' .
|
|
# Usage: `ansible-playbook /etc/ansible/22.upgrade.yml -t upgrade_k8s`
|
|
# or `easzctl upgrade`
|
|
|
|
# update masters
|
|
- hosts:
|
|
- kube-master
|
|
roles:
|
|
- kube-master
|
|
- kube-node
|
|
|
|
# update nodes
|
|
- hosts:
|
|
- kube-node
|
|
roles:
|
|
- { role: kube-node, when: "inventory_hostname not in groups['kube-master']" }
|