-
Notifications
You must be signed in to change notification settings - Fork 54
Unable to delete pod #122
Comments
I just ran into the same issue trying to delete a Job pod Kubernetes version: 1.19 |
I installed k-rail using helm. |
I installed k-rail using helm. |
Oh, yes. I can remove k-rail to delete the pod; however, deleting k-rail every time I run a job doesn't seem like an ideal way to administrate my deployments :P |
I had the same issue as soon as I switched to reportonly false, in the end i hacked the helm chart, and disabled the webhook for "DELETE", that allows pods to be deleted, but i suspect rules about eviction etc wont work. |
@chilu49 @tobymilne-haven All I did was limit the webhook to processing DELETEs to CRDs. This was because it's the only thing I'm aware of that has a plugin which looks at deletes. I'm going to see if I can figure out what the actual cause of the problem is and fix it. |
After adding a lot of debug prints, I found what's happening at least. I'm still not sure why though.
|
Ok, a little more debugging revealed it's the pod_default_seccomp_policy plugin.
|
I've found this problem as well, after enabling the |
👋 The k-rail project has been deprecated and is no longer under active development. We recommend taking a look at OPA Gatekeeper to see if it might meet your needs going forward. Thanks for your contribution(s) to the project! |
This pod is not getting deleted after its deployment is deleted. Even manual deletion is giving below error.
Error from server (InternalError): Internal error occurred: admission webhook "k-rail.cruise-automation.github.com" attempted to modify the object, which is not supported for this operation
I have added exemption but its still not working.
kubernetes version: v1.20
The text was updated successfully, but these errors were encountered: