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?
docker stack rm
– Eran Chetzronikubectl delete deployment <deployment_name>
in order to, let's say, only remove a specific deployment? – nymvnodocker stack rm
– nymvnodocker swarm
. You can't usekubectl
in a swarm. Also the purpose of docker service is to create the container, if deleted or stopped. Create a kubernetes cluster, deploy and then delete with kubectl. – Prakash Krishna