pods keep creating themselves even I deleted all deployments

8/8/2017

I am running k8s on aws, and I updated the deployment of nginx - which normally, it works fine-, but after this time, the nginx deployment won't show up in "kubectl get deployments".

I want to kill all the pods related to nginx, but they keep reproduce themselves. I deleted all deployments "kubectl delete --all deployments", other pods just got terminated, but not nginx.

I have no idea where I can stop the pods recreating. any idea where to start ?

-- Adam
kubectl
kubernetes

2 Answers

8/9/2017

In modern kubernetes, there is also an annotation kubernetes.io/created-by on the Pod showing its "owner", as seen here, but I can't lay my hands on the documentation link right now. However, I found a pastebin containing a concrete example of the contents of the annotation

-- mdaniel
Source: StackOverflow

8/9/2017

check the deployment, replication controller and replica set and remove them.

 kubectl  get deploy,rc,rs
-- sfgroups
Source: StackOverflow