Skip to content

Commit b060694

Browse files
authored
fix: make drain ignore DaemonSets & bypass PodDisruptionBudgets (#1414)
1 parent 71b5755 commit b060694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/types/fixes/assets/k3d-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ until kubectl uncordon "$HOSTNAME"; do sleep 3; done
2525
# shellcheck disable=SC3028
2626
cleanup() {
2727
echo Draining node...
28-
kubectl drain "$HOSTNAME" --force --delete-emptydir-data
28+
kubectl drain "$HOSTNAME" --force --delete-emptydir-data --ignore-daemonsets --disable-eviction
2929
echo Sending SIGTERM to k3s...
3030
kill -15 $k3s_pid
3131
echo Waiting for k3s to close...

0 commit comments

Comments
 (0)