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.
source
share