Cannot delete any K8s resource

7/4/2019

Here's my situation: I have deployed some k8s resources via docker stack liek this:

docker stack deploy --compose-file /path/to/docker-compose.yml mystack

docker stack services mystack

Now, I want to delete some of those resources, however, any resource I attempt to delete simply restarts itself immediately.

I have tried to delete the pods, corresponding replica sets, deployments and services but whatever resource I deleted, it restarted itself within a second.

What am I doing wrong?

-- nymvno
docker
kubectl
kubernetes

1 Answer

7/4/2019

You should use docker stack to delete the stack

docker stack rm <stack-name>
-- Eran Chetzroni
Source: StackOverflow