Skip to content

Commit

Permalink
fix: make drain ignore DaemonSets & bypass PodDisruptionBudgets (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgallag authored Jul 4, 2024
1 parent 71b5755 commit b060694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/fixes/assets/k3d-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ until kubectl uncordon "$HOSTNAME"; do sleep 3; done
# shellcheck disable=SC3028
cleanup() {
echo Draining node...
kubectl drain "$HOSTNAME" --force --delete-emptydir-data
kubectl drain "$HOSTNAME" --force --delete-emptydir-data --ignore-daemonsets --disable-eviction
echo Sending SIGTERM to k3s...
kill -15 $k3s_pid
echo Waiting for k3s to close...
Expand Down

0 comments on commit b060694

Please sign in to comment.