From ef12abb8654863b17564c3ba8ddae4d8ab41e403 Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 2 Aug 2024 13:58:29 -0700 Subject: [PATCH] Add usb node auto-updater --- k8s/system-upgrade-controller/plan.yaml | 28 +++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/k8s/system-upgrade-controller/plan.yaml b/k8s/system-upgrade-controller/plan.yaml index cbf64b5..b057bed 100644 --- a/k8s/system-upgrade-controller/plan.yaml +++ b/k8s/system-upgrade-controller/plan.yaml @@ -1,4 +1,3 @@ -# Server plan apiVersion: upgrade.cattle.io/v1 kind: Plan metadata: @@ -18,7 +17,6 @@ spec: image: rancher/k3s-upgrade channel: https://update.k3s.io/v1-release/channels/stable --- -# Agent plan apiVersion: upgrade.cattle.io/v1 kind: Plan metadata: @@ -40,3 +38,29 @@ spec: upgrade: image: rancher/k3s-upgrade channel: https://update.k3s.io/v1-release/channels/stable +--- +apiVersion: upgrade.cattle.io/v1 +kind: Plan +metadata: + name: agent-plan-rtlsdr + namespace: system-upgrade +spec: + concurrency: 1 + cordon: true + nodeSelector: + matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: DoesNotExist + tolerations: + - key: "rtlsdr" + value: "true" + effect: "NoSchedule" + prepare: + args: + - prepare + - server-plan + image: rancher/k3s-upgrade + serviceAccountName: system-upgrade + upgrade: + image: rancher/k3s-upgrade + channel: https://update.k3s.io/v1-release/channels/stable