<p>I am starting exploring runnign docker containers with Kubernetes. I did the following</p>

<ol>
<li>Docker run etcd</li>
<li>docker run master</li>
<li>docker run service proxy</li>
<li>kubectl run web --image=nginx</li>
</ol>

<p>To cleanup the state, I first stopped all the containers and cleared the downloaded images. However I still see pods running.</p>

<pre><code>$ kubectl get pods 
NAME                   READY     STATUS    RESTARTS   AGE
web-3476088249-w66jr   1/1       Running   0          16m
</code></pre>

<p>How can I remove this?</p>

<p>To delete the pod:</p>

<pre><code>kubectl delete pods web-3476088249-w66jr
</code></pre>

<p>If this pod is started via some replicaSet or deployment or anything that is creating replicas then find that and delete that first.</p>

<pre><code>kubectl get all
</code></pre>

<p>This will list all the resources that have been created in your k8s cluster. To get information with respect to resources created in your namespace <code>kubectl get all --namespace=&lt;your_namespace&gt;</code></p>

<p>To get info about the resource that is controlling this pod, you can do</p>

<pre><code>kubectl describe  web-3476088249-w66jr
</code></pre>

<p>There will be a field "Controlled By", or some owner field using which you can identify which resource created it.</p>
