Merge pull request #42767 from Random-Liu/cleanup-infra-container-on-error
Automatic merge from submit-queue (batch tested with PRs 42768, 42760, 42771, 42767)
Stop sandbox container when hit network error.
Fixes https://github.com/kubernetes/kubernetes/issues/42698.
This PR stops the sandbox container when hitting a network error.
This PR also adds a unit test for it.
I'm not sure whether we should try teardown pod network after `SetUpPod` failure. We don't do that in dockertools https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockertools/docker_manager.go#L2276.
@yujuhong @freehan
Showing
Please
register
or
sign in
to comment