1
0
Fork 0
This repository has been archived on 2025-08-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-cthulhunetes-gitops/manifests/system-upgrade/k3s-upgrade-v1.28.yaml

41 lines
1.3 KiB
YAML

# Cluster has only k3s-server nodes, no need for k3s-agent plan
apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: k3s-server-v1.28
namespace: system-upgrade
labels:
k3s-upgrade: server
spec:
concurrency: 1 # Batch size (roughly maps to maximum number of unschedulable nodes)
channel: https://update.k3s.io/v1-release/channels/v1.28
nodeSelector:
matchExpressions:
- {key: k3s-upgrade, operator: Exists}
- {key: k3s-upgrade, operator: NotIn, values: ["disabled", "false"]}
- {key: k3os.io/mode, operator: DoesNotExist}
- {key: node-role.kubernetes.io/control-plane, operator: Exists}
serviceAccountName: system-upgrade
jobActiveDeadlineSecs: 3600
cordon: true
drain:
timeout: 900s # 15 minutes
force: true
ignoreDaemonSets: true
deleteLocalData: true
skipWaitForDeleteTimeout: 180
# ! We ignore longhorn-manager and instance-manager pods
# ! because with storageclass longhorn-static which has only single replica, it is impossible to drain the node
# ! without violating the pod disruption budget.
podSelector:
matchExpressions:
- key: app
operator: NotIn
values:
- longhorn-manager
- key: longhorn.io/component
operator: NotIn
values:
- instance-manager
upgrade:
image: rancher/k3s-upgrade