maintenance: leave runtime restarts to planned maintenance
Some checks failed
Tests / Declarative: Post Actions failed: 56, skipped: 89, passed: 4301

This commit is contained in:
jenkins 2026-10-04 07:46:47 -05:00
parent 42d8f62912
commit baf6c3db32
2 changed files with 5 additions and 6 deletions

View File

@ -10,6 +10,9 @@ spec:
app: node-nofile
updateStrategy:
type: RollingUpdate
rollingUpdate:
# Host settings persist while these setup-only helpers are replaced.
maxUnavailable: 25%
template:
metadata:
labels:

View File

@ -30,13 +30,9 @@ printf "524288" > /host/proc/sys/fs/inotify/max_user_watches
printf "32768" > /host/proc/sys/fs/inotify/max_queued_events
if [ "${changed}" -eq 1 ]; then
sleep "$(( (RANDOM % 300) + 10 ))"
# Load unit definitions now; activate new limits at a planned K3s restart.
# A setup-helper rollout must not restart the node's entire pod runtime.
chroot /host /bin/systemctl daemon-reload
for unit in k3s k3s-agent; do
if [ -f "/host/etc/systemd/system/${unit}.service" ]; then
chroot /host /bin/systemctl restart "${unit}"
fi
done
fi
sleep infinity