https://rancher.com/ logo
Title
s

square-rose-18388

03/17/2023, 6:57 PM
I have some statefulsets stuck in terminating according to rancher for this imported K8s cluster. (They are not running on the node) Any ideas how to clear it?
d

dry-vr-36164

03/17/2023, 7:30 PM
can you check the status of namespace under which that sts is?
k get ns
can you check and see if it is active or terminating
sometimes namespace gets deleted first before sts can be deleted and thus they get stuck in a state.
s

square-rose-18388

03/17/2023, 7:32 PM
No, NS is not being deleted.
d

dry-vr-36164

03/17/2023, 7:32 PM
was resource deployed using helm?
s

square-rose-18388

03/17/2023, 7:32 PM
Yes.
d

dry-vr-36164

03/17/2023, 7:33 PM
can you check for that resouce and its status?
helm ls -a
s

square-rose-18388

03/17/2023, 7:38 PM
for kicks I re-deployed it with same issue. May have to blow away the entire NS.
d

dry-vr-36164

03/17/2023, 7:39 PM
most probably the ns will also get stuck in
terminating
state
s

square-rose-18388

03/17/2023, 7:39 PM
­čśĽ
d

dry-vr-36164

03/17/2023, 7:39 PM
What output u got for
helm ls -a
?
s

square-rose-18388

03/17/2023, 7:40 PM
I deployed with rancher, i don't have help installed.
d

dry-vr-36164

03/17/2023, 7:40 PM
oh
try deleting ns
s

square-rose-18388

03/17/2023, 7:40 PM
Yeah, bout only thing left to do.
d

dry-vr-36164

03/17/2023, 7:41 PM
since it deployed from rancher it may get deleted without any issue.
s

square-rose-18388

03/17/2023, 8:18 PM
got stuck deleting as you said. even trying to remove it with the --force flag doesn't work.
Nevermind, found a pod stuck, i --forced deleted it and it went bye bye.