feat: add upgrade plan for k3s server on release channel for v1.28
This commit is contained in:
parent
7871f5a3fb
commit
be12582e98
2 changed files with 46 additions and 0 deletions
20
apps/cluster-infrastructure/system-upgrade-plans.yaml
Normal file
20
apps/cluster-infrastructure/system-upgrade-plans.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: system-upgrade-plans
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "20"
|
||||||
|
spec:
|
||||||
|
project: cluster-infrastructure
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
source:
|
||||||
|
path: manifests/system-upgrade/
|
||||||
|
repoURL: https://github.com/vojtechmares/cthulhunetes-gitops.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
destination:
|
||||||
|
server: "https://kubernetes.default.svc"
|
||||||
|
namespace: system-upgrade
|
||||||
26
manifests/system-upgrade/k3s-upgrade-v1.28.yaml
Normal file
26
manifests/system-upgrade/k3s-upgrade-v1.28.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# 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
|
||||||
|
cordon: true
|
||||||
|
drain:
|
||||||
|
force: false
|
||||||
|
ignoreDaemonSets: true
|
||||||
|
deleteLocalData: true
|
||||||
|
skipWaitForDeleteTimeout: 180
|
||||||
|
upgrade:
|
||||||
|
image: rancher/k3s-upgrade
|
||||||
Reference in a new issue