mirror of https://github.com/easzlab/kubeasz.git
24 lines
411 B
YAML
24 lines
411 B
YAML
# WARNING: Upgrade the k8s cluster can be risky. Make sure you know what you are doing.
|
|
# Read the guide: 'op/upgrade.md' .
|
|
|
|
# update kubectl binary
|
|
- hosts:
|
|
- kube-master
|
|
- kube-node
|
|
- deploy
|
|
roles:
|
|
- prepare
|
|
|
|
# update masters
|
|
- hosts:
|
|
- kube-master
|
|
roles:
|
|
- kube-master
|
|
- kube-node
|
|
|
|
# update nodes
|
|
- hosts:
|
|
- kube-node
|
|
roles:
|
|
- { role: kube-node, when: "DEPLOY_MODE != 'allinone'" }
|