forked from cri-o/cri-o
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shut down container runtime when pod stops
When a pod using the VM runtime type stops, the actual runtime process should also be stopped. Previously, the runtime process was killed when the pod was deleted. This works well for many workloads, but causes process leaks when large numbers of one-shot pods are created (e.g. pods that enter the "Completed" state in Kubernetes). Those pods will eventually be cleaned up, but until then a large number of runtime processes will hang around. The situation is made worse when the runtime process enters a bad state after its container dies (see kata-containers/runtime#2719). Initially, this problem was addressed in cri-o#3998 However, that PR worked by actually deleting VM runtime containers on stop, which led to issues with pods being stuck in a NotReady state indefinitely. This PR re-addresses the issue solved by 3998 by sending a shutdown task to the runtime on pod stop. Signed-off-by: Evan Foster <efoster@adobe.com>
- Loading branch information
Evan Foster
committed
Aug 20, 2020
1 parent
34a1ed2
commit 82a43af
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters