<p>I'm trying to follow this guide: <a href="https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.html</a> and was able to get as far as running <code>curl -u &quot;elastic:$PASSWORD&quot; -k &quot;https://localhost:9200&quot;</code> successfully.  However, I tried running it again from step 1 on and am now unable to get past <code>kubectl get pods --selector='elasticsearch.k8s.elastic.co/cluster-name=quickstart'</code> and I get: <code>No resources found in default namespace.</code></p>
<p>I thought cleaning up all the ECK stuff following this <a href="https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-uninstalling-eck.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-uninstalling-eck.html</a> and restarting would fix the issue, but it doesn't seem to.  For example, I have a manifest file that I named <code>elasticsearch.yaml</code>:</p>
<pre><code>apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: my-elasticsearch
spec:
  version: 7.12.1
  nodeSets:
    - name: default
      count: 1
      config:
        node.store.allow_mmap: false
</code></pre>
<p>and for some reason, I'm seeing this when running <code>kubectl get pods</code>:</p>
<pre><code>my-elasticsearch-depl-6d6f76dd64-4v5q2   0/1     ImagePullBackOff   0          5m40s
my-elasticsearch-depl-7fcfc47f59-sprsv   0/1     ImagePullBackOff   0          11h

</code></pre>
<p>When I try deleting either one of them with <code>kubectl delete pod my-elasticsearch-depl-6d6f76dd64-4v5q2 </code>, a new one gets automatically generated as well.</p>
<p>I was wondering how to first get rid of these weird zombie pods and then how I might be able to get the basic ECK setup running. Thank you!</p>

reactor
<ol>
<li>If you rename <code>metadata.name: quickstart</code> to <code>my-elasticsearch</code>, then you'll need to rename it in <code>kubectl get pods --selector='elasticsearch.k8s.elastic.co/cluster-name=quickstart'</code> as well.</li>
<li>Just deleting a pod won't get rid of it while the operator is still running. Have you really run <code>kubectl delete elastic --all</code> to remove all resources created by the Elastic operator (and if you have been switching around namespaces, in the right namespace(s))?</li>
</ol>
