<p>I'm running Kubernetes via <a href="http://kubernetes.io/docs/getting-started-guides/docker/" rel="noreferrer">Docker</a>. Following the tutorial I launched an Nginx POD using <code>kubectl run nginx --image=nginx --port=80</code>. However this seems to create orphaned PODs (without a replication controller). <code>kubectl get rc</code> doesn't return anything and <code>kubectl describe pod nginx-198147104-kqudh</code> shows <strong>Replication Controllers: none</strong> (kubectl version "v1.2.0+5cb86ee" shows Controllers: ReplicaSet/nginx-198147104 but scaling it to 0 just causes a new Nginx pod to be created, and it can't be deleted).</p>

<p>I would like to be able to delete the Kubernetes managed Nginx container from Docker. I haven't had much luck find out how to delete an orphan pod (without it being recreated...).</p>

<p><strong>Client Version</strong>: version.Info{Major:"1", Minor:"0", GitVersion:"v1.0.4", GitCommit:"65d28d5fd12345592405714c81cd03b9c41d41d9", GitTreeState:"clean"}<BR>
<strong>Server Version</strong>: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.0", GitCommit:"5cb86ee022267586db386f62781338b0483733b3", GitTreeState:"clean"}</p>

<p>With v1.2 Kubernetes we use <code>ReplicaSet</code> (a newer form of <code>ReplicationController</code>).  Given that you have a <code>ReplicaSet</code>, you must have used a v1.2 client to create it.  But it doesn't stop there.  What 1.2 actually creates for you is a <code>Deployment</code> which itself manages <code>ReplicaSets</code>.</p>

<p>So what you need to know is <code>kubectl scale deployment</code> or <code>kubectl delete deployment</code>.</p>

<p>Which tutorial are you following?</p>
