Skip to content

Commit

Permalink
feat(suc): use tmu for talos upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
jfroy committed Dec 26, 2024
1 parent 008ac83 commit 1c03884
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./kubernetes.yaml
- ./talos-etincelle-s1.yaml
- ./talos-etincelle-s2.yaml
- ./talos-siderolabs-minimal.yaml
- ./talos.yaml
# - ./talos-etincelle-s1.yaml
# - ./talos-etincelle-s2.yaml
# - ./talos-siderolabs-minimal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/upgrade.cattle.io/plan_v1.json
apiVersion: upgrade.cattle.io/v1
kind: Plan
metadata:
name: talos
spec:
version: ${TALOS_VERSION}
serviceAccountName: system-upgrade
secrets:
- name: talos
path: /var/run/secrets/talos.dev
ignoreUpdates: true
concurrency: 1
exclusive: true
nodeSelector:
matchExpressions:
- key: feature.node.kubernetes.io/system-os_release.ID
operator: In
values: ["talos"]
- key: feature.node.kubernetes.io/system-os_release.VERSION_ID
operator: NotIn
values: ["${TALOS_VERSION}"]
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
prepare: &prepare
image: ghcr.io/jfroy/siderolabs/talosctl:${TALOS_VERSION}
envs:
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
args:
- --nodes=$(NODE_IP)
- health
- --server=false
upgrade:
image: ghcr.io/jfroy/tnu:latest
args:
- $(SYSTEM_UPGRADE_PLAN_LATEST_VERSION)

0 comments on commit 1c03884

Please sign in to comment.