pod stay in Error status after node shutdown #2365
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened:
the admission webhook pod stop by kubelet, it always exit with 255 code, and will make error containerStatus
When node shutdown, pod which running on the shutdownd node will by kill by kubelet, and container is stopped and not removed, the pod will be orphan, when node restart, pod is in error always unless delete by kubectl command.
the error pod will be left.
the container status is
Try to delete pod by kubectl command, and listen event
when process exit, tt should print with error level, not fatal level,
What you expected to happen:
admission-server exit code with 0
How to reproduce it (as minimally and precisely as possible):
1 deploy admission-server pod
2
ctr event
watch event on the node which has admission-server pod3 kubectl delete pod which is admission-server
4 will print exit_status by
ctr event
and find exit_status is not 0 or null.Anything else we need to know?:
ctr command can be downloaded in
https://github.com/containerd/containerd/releases/tag/v1.7.5
The text was updated successfully, but these errors were encountered: