<p>I deployed a Elasticserach container to EKS cluster but I can't delete it.</p>
<pre><code>$ kubectl get pods
NAME                           READY   STATUS              RESTARTS   AGE
kibana-f775fcb96-cvmkc         1/1     Running             0          81m
sample-es-0                    0/1     ContainerCreating   0          2m6s
sidecar-app-6b4bdbb86d-g5qb6   1/1     Running             0          81m
</code></pre>
<p><code>sample-es-0</code> is the pod I want to delete. But after run <code>kubectl delete pod sample-es-0</code>, it restarts by itself.</p>
<p>I have delete es deployment:</p>
<pre><code>$ kubectl get deploy
NAME          READY   UP-TO-DATE   AVAILABLE   AGE
kibana        1/1     1            1           28h
sidecar-app   1/1     1            1           29h
</code></pre>
<p>and also check there is no es service running:</p>
<pre><code>$ kubectl get service
NAME                 TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
kibana-entrypoint    ClusterIP   10.100.192.40   &lt;none&gt;        5601/TCP         28h
kubernetes           ClusterIP   10.100.0.1      &lt;none&gt;        443/TCP          6d10h
sidecar-entrypoint   NodePort    10.100.7.177    &lt;none&gt;        8080:32486/TCP   29h
</code></pre>
<p>And there is no replicaset for es either:</p>
<pre><code>$ kubectl get replicaset
NAME                     DESIRED   CURRENT   READY   AGE
kibana-595fddf748        0         0         0       28h
kibana-66b96d587f        0         0         0       25h
kibana-69784478f         0         0         0       28h
kibana-6b47b7855f        0         0         0       26h
kibana-6c55cd9478        0         0         0       27h
kibana-6fdcc89695        0         0         0       11h
kibana-74c766ddbf        0         0         0       26h
kibana-756866579f        0         0         0       25h
kibana-b774d7b64         0         0         0       26h
kibana-bf8c496ff         0         0         0       23h
kibana-f775fcb96         1         1         1       170m
sidecar-app-54677877d4   0         0         0       27h
sidecar-app-566f6dd4d5   0         0         0       27h
sidecar-app-5ffdbbcb7c   0         0         0       23h
sidecar-app-67b46f5dfb   0         0         0       27h
sidecar-app-6955cc9bd9   0         0         0       23h
sidecar-app-6b4bdbb86d   1         1         1       137m
sidecar-app-6fdd5f9679   0         0         0       170m
sidecar-app-856978f87b   0         0         0       27h
sidecar-app-85c54787b8   0         0         0       26h
sidecar-app-8678db7cf8   0         0         0       11h
sidecar-app-d95f67768    0         0         0       25h
</code></pre>
<p>what other place should I check in order to delete it?</p>

Joey Yi Zhao
<ul>
<li>You need to delete the deployment, then it would delete the respected pods. For this use <code>kubectl delete deployment &lt;NAME&gt;</code></li>
<li>Deleting a pod which is under a deployment will restarts it if that deployment is still in the place.</li>
</ul>
<p>as you answered it was statefulset, but you didn't mentioned it was statefulset, you told deployment. Anyway, in both you need to delete the owner reference</p>
