Hi @alexus, if you were running an older version than 1.0 and removed the operator already, it is possible that there may be finalizers blocking the deletion. If that's the case you can use kubectl edit and remove the finalizers manually which should allow the deletions to go through.
If you're still having issues can you share the version you are running and the manifest of the resource that is hanging?
I think this is a misunderstanding. You are editing the namespace here and are potentially removing Kubernetes internal finalizers. What Anya was referring to were finalizers that older versions of ECK set on the resources managed by ECK itself: Elasticsearch, Kibana and APMServer
If your deinstallation is getting stuck I would recommend checking those resources for finalizers especially if you were running one of the early alpha or beta versions of ECK and removing them manually.
To clarify this manual process should normally not be necessary. But I can think of scenarios where it might:
you ran an older pre-1.0.0 version of ECK that is no longer running/was deleted but you still have Elasticsearch/Kibana or APM Server resources
you paused reconciliation of Elasticsearch/Kibana/APM resources
you are running an older version of ECK but it is not reconciling resources (check the operator logs to find out why)
Thanks @pebrc
k8s and eck operators are latest (1.0.1). Before removing finalizers I tried:
kubectl delete -f https://download.elastic.co/downloads/eck/1.0.1/all-in-one.yaml
but that's where I got elastic-system namespace stuck in Terminating status...
I manually removed all resources from the namespace but it was still in Terminating
Force deleting --force --grace-period=0 didn't help, it also stuck...
The only solution that helped was this:
Starting kubectl proxy in one terminal: kubectl proxy
In another terminal:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.