<p>I want to remove zk and kafka from my k8s</p>
<pre class="lang-sh prettyprint-override"><code>$ kubectl get pods
NAME               READY   STATUS             RESTARTS   AGE
kafka1-mvzch       1/1     Running            1          25s
kafka2-m292k       0/1     CrashLoopBackOff   8          20m
zookeeper1-qhmnf   1/1     Running            0          20m
zookeeper2-t7r8w   1/1     Running            0          20m
$kubectl delete pod kafka1-mvzch kafka2-m292k zookeeper1-qhmnf zookeeper2-t7r8w
pod &quot;kafka1-mvzch&quot; deleted
pod &quot;kafka1-m292k&quot; deleted
pod &quot;zookeeper1-qhmnf&quot; deleted
pod &quot;zookeeper2-t7r8w&quot; deleted
</code></pre>
<p>but when I run get pods, it still shows the pods.</p>
<p>And I got no service and deployment</p>
<pre><code>$ kubectl get svc
NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
kubernetes   ClusterIP   10.100.0.1   &lt;none&gt;        443/TCP   7h1m
$ kubectl get deployment
No resources found in default namespace.
</code></pre>

Tomas Wen
<p>You are removing the pods, and they will be deleted.
But there is some other construct that re-creates pods to replace the (now deleted) previous pods.</p>
<p>In fact, the names of the pods with the random-looking suffix suggest that there is another controller operating the pods.
When looking at the linked tutorial, you notice that a <code>ReplicationController</code> is created. This ensures the pods.</p>
<p>If you want to remove it, remove the replication controller; the pods will be deleted as well.</p>
