mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
`terminationGracePeriodSeconds: 0` was a mistake, it bypasses the normal pod shutdown in the kubelet. The right way to shut down a pod quickly is to have it react to SIGTERM. The busybox implementation of "sleep" doesn't. `agnhost pause` does, so let's use that instead. For E2E tests, the InfiniteSleepCommand was already change about a year ago to react to SIGTERM, so the `terminationGracePeriodSeconds: 1` workaround is no longer needed.