How to remove kubernetes pods (and other resources) in the system namespace

I mistakenly added a block to the "kube-system" system namespace. And then I can not delete this container. He seems to have created a set of replicas. Each time, removing these items, they are recreated.

Unable to find a way to delete sets or replica sets belonging to the system namespace "kube-system"

+4
source share
1 answer

If you created the pod using kubectl run, you will need to remove the deployment (which created the replica set that the module created). Otherwise, higher-level controllers will continue to ensure that the objects for which they are responsible for maintaining the work remain in the system, even if you try to delete them manually. Try kubectl get deployment --namespace=kube-systemto find out if you have a namespace deployment kube-system. If so, deleting it should also remove the replica set and the containers you created.

+17
source

All Articles