Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Kured (KUbernetes REboot Daemon) is a Kubernetes daemonset that
performs safe automatic node reboots when the need to do so is
indicated by the package management system of the underlying OS.

- Watches for the presence of a reboot sentinel file e.g. `/var/run/reboot-required`
- Watches for the presence of a reboot sentinel file e.g. `/run/reboot-required`
or the successful run of a sentinel command.
- Utilises a lock in the API server to ensure only one node reboots at
a time
Expand Down
2 changes: 1 addition & 1 deletion cmd/kured/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func main() {
"Only block if the alert-filter-regexp matches active alerts")
flag.BoolVar(&alertFiringOnly, "alert-firing-only", false,
"only consider firing alerts when checking for active alerts")
flag.StringVar(&rebootSentinelFile, "reboot-sentinel", "/var/run/reboot-required",
flag.StringVar(&rebootSentinelFile, "reboot-sentinel", "/run/reboot-required",
"path to file whose existence triggers the reboot command")
flag.StringVar(&preferNoScheduleTaintName, "prefer-no-schedule-taint", "",
"Taint name applied during pending node reboot (to prevent receiving additional pods from other rebooting nodes). Disabled by default. Set e.g. to \"weave.works/kured-node-reboot\" to enable tainting.")
Expand Down
2 changes: 1 addition & 1 deletion kured-ds-signal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
volumes:
- name: sentinel
hostPath:
path: /var/run
path: /run
type: Directory
containers:
- name: kured
Expand Down
2 changes: 1 addition & 1 deletion kured-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
volumes:
- name: sentinel
hostPath:
path: /var/run
path: /run
type: Directory
containers:
- name: kured
Expand Down
2 changes: 1 addition & 1 deletion tests/kind/testfiles/create-reboot-sentinels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ kubectl_flags=( )
for nodename in $(${KUBECTL_CMD:-kubectl} "${kubectl_flags[@]}" get nodes -o name | grep -v control-plane); do
echo "Creating reboot sentinel on $nodename"
docker exec "${nodename/node\//}" hostname
docker exec "${nodename/node\//}" touch "${SENTINEL_FILE:-/var/run/reboot-required}"
docker exec "${nodename/node\//}" touch "${SENTINEL_FILE:-/run/reboot-required}"
done
2 changes: 1 addition & 1 deletion tests/kind/testfiles/podblocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
blocked-host: "yes"
EOF

docker exec "$worker" touch "${SENTINEL_FILE:-/var/run/reboot-required}"
docker exec "$worker" touch "${SENTINEL_FILE:-/run/reboot-required}"

set -o errexit
max_attempts="100"
Expand Down