46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
|
---
|
||
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/upgrade.cattle.io/plan_v1.json
|
||
|
apiVersion: upgrade.cattle.io/v1
|
||
|
kind: Plan
|
||
|
metadata:
|
||
|
name: kubernetes
|
||
|
spec:
|
||
|
version: ${KUBERNETES_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: node-role.kubernetes.io/control-plane
|
||
|
operator: Exists
|
||
|
tolerations:
|
||
|
- key: CriticalAddonsOnly
|
||
|
operator: Exists
|
||
|
- key: node-role.kubernetes.io/control-plane
|
||
|
operator: Exists
|
||
|
effect: NoSchedule
|
||
|
prepare: &prepare
|
||
|
image: ghcr.io/siderolabs/talosctl:${TALOS_VERSION}
|
||
|
envs:
|
||
|
- name: NODE_IP
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: status.hostIP
|
||
|
args:
|
||
|
- --nodes=$(NODE_IP)
|
||
|
- health
|
||
|
- --server=false
|
||
|
upgrade:
|
||
|
<<: *prepare
|
||
|
args:
|
||
|
- --nodes=$(NODE_IP)
|
||
|
- upgrade-k8s
|
||
|
- --to=$(SYSTEM_UPGRADE_PLAN_LATEST_VERSION)
|