khuedoan-homelab/system/system-upgrade/k3s/agent.yaml
2022-01-23 14:12:11 +07:00

27 lines
605 B
YAML

apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: k3s-agent
namespace: system-upgrade
labels:
k3s-upgrade: agent
spec:
nodeSelector:
matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: DoesNotExist
serviceAccountName: system-upgrade
prepare:
image: rancher/k3s-upgrade
args:
- prepare
- k3s-server
concurrency: 1
cordon: true
drain:
force: true
skipWaitForDeleteTimeout: 300 # Honor PodDisruptionBudgets
upgrade:
image: rancher/k3s-upgrade
channel: https://update.k3s.io/v1-release/channels/v1.23