<ol dir="auto">
<li>the system allows you to delete a replicationController whose replicas &gt; 0</li>
<li>when the replicationController is deleted - it leaves the orphaned pods running</li>
</ol>
<p dir="auto">After I delete a replicationController, its pods are still getting replicated when I try to delete the pods.</p>
<p dir="auto">Create two replication controllers:<br>
<code class="notranslate">cluster/kubecfg.sh -p 8080:80 run dockerfile/nginx 3 myNginx</code><br>
<code class="notranslate">cluster/kubecfg.sh -p 6379:6379 run dockerfile/redis 3 myRedis</code></p>
<p dir="auto">Wait until everything is running then delete one of the controller:<br>
<code class="notranslate">cluster/kubecfg.sh delete /replicationControllers/myNginx</code></p>
<p dir="auto">Reports success, it's gone from the list.</p>
<p dir="auto">Then try to remove its pods:<br>
<code class="notranslate">cluster/kubecfg.sh delete /pods/{podID}</code></p>
<p dir="auto">Result: It will recreate the removed pod, it also appears in the log of master:<br>
<code class="notranslate">I0812 11:47:26.242463 06745 replication_controller.go:152] Too few replicas, creating 3</code></p>
<p dir="auto">I'm on c6dcfd5 and did a fresh vagrant up today after destroyed my previous cluster.</p>