I can't delete this Stateful Set in Kubernetes, even with --cascade=false
so it doesn't delete the Pods managed by it.
kubectl get statefulsets
NAME DESIRED CURRENT AGE
assets-elasticsearch-data 0 1 31m
Then:
kubectl delete statefulsets assets-elasticsearch-data
^C
... hangs for minutes until I give up, then:
kubectl delete statefulsets assets-elasticsearch-data --cascade=false
statefulset "assets-elasticsearch-data" deleted
kubectl get statefulsets
NAME DESIRED CURRENT AGE
assets-elasticsearch-data 0 1 32m
I'm using Google's GKE.
I could reproduce the bug twice with Kubernetes
1.7.3
and, after destroying the cluster for the 3rd time and downgrading to Kubernetes1.6.7
, I had no problem deletingStateful Sets
or Helm deployments (Elasticsearch Helm chart in my case).