From 91afafc4541b3207ee24365a7c6aaf4e868b2422 Mon Sep 17 00:00:00 2001 From: SIMULATAN Date: Tue, 4 Mar 2025 16:23:21 +0100 Subject: [PATCH 1/2] chore(k3s): Update system-upgrade-controller to v0.15.1 --- k3s/k3s.argo.yml | 7 ++----- k3s/kustomization.yaml | 9 +++++++++ 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 k3s/kustomization.yaml diff --git a/k3s/k3s.argo.yml b/k3s/k3s.argo.yml index 21303f5..b34531c 100644 --- a/k3s/k3s.argo.yml +++ b/k3s/k3s.argo.yml @@ -8,10 +8,7 @@ spec: source: repoURL: https://github.com/SIMULATAN/k8s-ops path: k3s - directory: - exclude: '{*.argo.yml}' - targetRevision: HEAD destination: - server: "https://kubernetes.default.svc" - namespace: argocd + name: in-cluster + namespace: system-upgrade diff --git a/k3s/kustomization.yaml b/k3s/kustomization.yaml new file mode 100644 index 0000000..d93ddc0 --- /dev/null +++ b/k3s/kustomization.yaml @@ -0,0 +1,9 @@ +namespace: system-upgrade + +resources: + - https://github.com/rancher/system-upgrade-controller?ref=v0.15.1 + - ./upgrade.yml + +images: +- name: rancher/system-upgrade-controller + newTag: v0.15.1 From ce4d384cff107dc7fc95b102279899414fe6742c Mon Sep 17 00:00:00 2001 From: SIMULATAN Date: Tue, 4 Mar 2025 16:37:54 +0100 Subject: [PATCH 2/2] chore(k3s): wait 5m before upgrading next node Closes #9 --- k3s/upgrade.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/k3s/upgrade.yml b/k3s/upgrade.yml index 1b80fad..5de2431 100644 --- a/k3s/upgrade.yml +++ b/k3s/upgrade.yml @@ -6,6 +6,7 @@ metadata: namespace: system-upgrade spec: concurrency: 1 + postCompleteDelay: "5m" cordon: true nodeSelector: matchExpressions: