chore(clustertool): tweak upgrade plan for kubernetes

Signed-off-by: Kjeld Schouten <info@kjeldschouten.nl>
This commit is contained in:
Kjeld Schouten
2025-02-07 12:45:31 +01:00
committed by GitHub
parent 7a57a3cc40
commit cd35255de1
@@ -4,7 +4,6 @@ apiVersion: upgrade.cattle.io/v1
kind: Plan kind: Plan
metadata: metadata:
name: kubernetes name: kubernetes
namespace: system-upgrade
spec: spec:
version: ${KUBERNETES_VERSION} version: ${KUBERNETES_VERSION}
serviceAccountName: system-upgrade serviceAccountName: system-upgrade
@@ -24,29 +23,20 @@ spec:
- key: feature.node.kubernetes.io/system-os_release.VERSION_ID - key: feature.node.kubernetes.io/system-os_release.VERSION_ID
operator: In operator: In
values: ["${TALOS_VERSION}"] values: ["${TALOS_VERSION}"]
- key: kubernetes.io/hostname
operator: In
values: ["k8s-control-1"]
tolerations: tolerations:
- key: CriticalAddonsOnly - key: CriticalAddonsOnly
operator: Exists operator: Exists
- key: node-role.kubernetes.io/control-plane - key: node-role.kubernetes.io/control-plane
operator: Exists operator: Exists
effect: NoSchedule effect: NoSchedule
prepare: &prepare upgrade:
image: ghcr.io/siderolabs/talosctl:${TALOS_VERSION} image: ghcr.io/siderolabs/talosctl:${TALOS_VERSION}
envs: envs:
- name: NODE_IP - name: NODE
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: status.hostIP fieldPath: status.hostIP
args: args:
- --nodes=$(NODE_IP) - --nodes=$(NODE)
- health
- --server=false
upgrade:
<<: *prepare
args:
- --nodes=$(NODE_IP)
- upgrade-k8s - upgrade-k8s
- --to=$(SYSTEM_UPGRADE_PLAN_LATEST_VERSION) - --to=$(SYSTEM_UPGRADE_PLAN_LATEST_VERSION)