Skip to content
Snippets Groups Projects
Verified Commit c74dd821 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

Revert "feat(system-upgrade): Adjust plans to automate Talos updates using kured"

This doesn't work. Talos always triggers a reboot on upgrade.

See: https://github.com/siderolabs/talos/discussions/10555#discussioncomment-13214081

This reverts commit 21a37f2a.
parent 3490a44d
Branches
Tags
No related merge requests found
Pipeline #26599 passed
...@@ -15,7 +15,7 @@ stringData: ...@@ -15,7 +15,7 @@ stringData:
systemctl start --wait dnf-automatic-install.service systemctl start --wait dnf-automatic-install.service
systemctl enable clevis-luks-askpass.path systemctl enable clevis-luks-askpass.path
if ! dnf needs-restarting --reboothint; then if ! dnf needs-restarting --reboothint; then
touch /run/reboot-required touch /var/run/reboot-required
fi fi
--- ---
apiVersion: upgrade.cattle.io/v1 apiVersion: upgrade.cattle.io/v1
......
...@@ -39,15 +39,20 @@ metadata: ...@@ -39,15 +39,20 @@ metadata:
namespace: system-upgrade namespace: system-upgrade
data: data:
values.yaml: | values.yaml: |
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: feature.node.kubernetes.io/system-os_release.ID
operator: NotIn
values:
- talos
configuration: configuration:
useRebootSentinelHostPath: true
annotateNodes: true annotateNodes: true
preferNoScheduleTaint: weave.works/kured-node-reboot preferNoScheduleTaint: weave.works/kured-node-reboot
blockingPodSelector: blockingPodSelector:
- upgrade.cattle.io/plan - upgrade.cattle.io/plan
rebootSentinel: "/run/reboot-required"
rebootMethod: command
rebootCommand: /sbin/shutdown --reboot
hostNetwork: false hostNetwork: false
metrics: metrics:
create: true create: true
......
...@@ -12,6 +12,11 @@ spec: ...@@ -12,6 +12,11 @@ spec:
path: /var/run/secrets/talos.dev path: /var/run/secrets/talos.dev
ignoreUpdates: true ignoreUpdates: true
concurrency: 1 concurrency: 1
exclusive: true
drain:
deleteLocalData: true
ignoreDaemonSets: true
force: false
nodeSelector: nodeSelector:
matchExpressions: matchExpressions:
- key: feature.node.kubernetes.io/system-os_release.ID - key: feature.node.kubernetes.io/system-os_release.ID
...@@ -20,7 +25,7 @@ spec: ...@@ -20,7 +25,7 @@ spec:
- talos - talos
- key: upgrade.shivering-isles.com/talos-autoupdate - key: upgrade.shivering-isles.com/talos-autoupdate
operator: Exists operator: Exists
prepare: upgrade:
image: ghcr.io/siderolabs/talosctl image: ghcr.io/siderolabs/talosctl
envs: envs:
- name: NODE_IP - name: NODE_IP
...@@ -33,7 +38,6 @@ spec: ...@@ -33,7 +38,6 @@ spec:
- --nodes=$(NODE_IP) - --nodes=$(NODE_IP)
- upgrade - upgrade
- --image=$(TALOS_IMAGE):$(SYSTEM_UPGRADE_PLAN_LATEST_VERSION) - --image=$(TALOS_IMAGE):$(SYSTEM_UPGRADE_PLAN_LATEST_VERSION)
- --stage - --preserve=true
upgrade: - --wait=false
image: quay.io/fedora/fedora:41 - --reboot-mode=powercycle
command: ["touch", "/host/run/reboot-required"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment