Score:0

kubernetes: Could not delete innodb cluster PODs forcefully

ec flag

PODs could not be deleted:

kubectl get all

NAME              READY   STATUS        RESTARTS   AGE
pod/mycluster-0   0/2     Terminating   0          15h
pod/mycluster-1   0/2     Terminating   0          15h
pod/mycluster-2   0/2     Terminating   0          15h

kubectl delete --force --all pods

Warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
pod "mycluster-0" force deleted
pod "mycluster-1" force deleted
pod "mycluster-2" force deleted

kubectl get all

NAME              READY   STATUS        RESTARTS   AGE
pod/mycluster-0   0/2     Terminating   0          16h
pod/mycluster-1   0/2     Terminating   0          16h
pod/mycluster-2   0/2     Terminating   0          16h

Terminating, not terminated.

Score:0
ve flag

To clean the pods you need to delete their deployments namespace.

First discover the existing deployments by running the below command:

$ kubectl get deployments --all-namespaces 

Delete the deployment by running:

$ kubectl delete deployment <NAME>

Then all corresponding pods of deployment will terminate by itself.

You can also try removing the finalizers in the pod by running below command:

kubectl patch pod <pod-name> -p '{"metadata":{"finalizers":null}}'

This syntax is used to terminate the pod that is stuck in your case.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.