in Education by
The situation I have a kubernetes pod stuck in "Terminating" state that resists pod deletions NAME READY STATUS RESTARTS AGE ... funny-turtle-myservice-xxx-yyy 1/1 Terminating 1 11d ... Where funny-turtle is the name of the helm release that has since been deleted. What I have tried try to delete the pod. Output: pod "funny-turtle-myservice-xxx-yyy" deleted Outcome: it still shows up in the same state. - also tried with --force --grace-period=0, the same outcome with extra 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. try to read the logs (kubectl logs ...). Outcome: Error from server (NotFound): nodes "ip-xxx.yyy.compute.internal" not found try to delete the kubernetes deployment. but it does not exist. So I assume this pod somehow got "disconnected" from the aws API, reasoning from the error message that kubectl logs printed. I'll take any suggestions or guidance to explain what happened here and how I can get rid of it. EDIT 1 Tried to see if the "ghost" node was still there (kubectl delete node ip-xxx.yyy.compute.internal) but it does not exist. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
For removing the finalizers in the pod we use the following command kubectl patch pod -p '{"metadata":{"finalizers":null}}' This syntax is used to terminate the pod that is stuck in your case.

Related questions

0 votes
    I have an application on GKE that I wish to be available via HTTPS only, so I have gotten a signed ... to the kubernetes cluster? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I am trying to start a local Kubernetes cluster using minikube start and getting the following error. Starting local ... this slow? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I've been using K8S ConfigMap and Secret to manage our properties. My design is pretty simple, that keeps ... 't been created Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Can you please tell me the difference between kubectl apply and kubectl create. Why there are 3 different commands ... the same thing? Select the correct answer from above options...
asked Jan 23, 2022 in Education by JackTerrance
0 votes
    I am setting up a common standalone-full.xml file for all server environments, and therefore need to have ... is greatly appreciated. Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    Let's say I have one variable, directory_list, which I define and set in a ruby_block named get_directory_list. Can ... woohoo" end end Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    Now that links are deprecated in docker-compose.yml (and were able to use the new networking feature to ... docker-compose.yml? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    My git workspace is dirty, there are some local modifications. When I use the command git pull origin master it ... Ansible git module? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I am successfully able to connect to a remote machine using SSH but when I am launching the agent from Jenkins ... overcome this issue? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I am successfully able to connect to a remote machine using SSH but when I am launching the agent from Jenkins ... overcome this issue? Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    I have deleted a folder containing a running Vagrant box before realizing it was still running. How can I delete ... the Virtualbox VM. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I'm just getting my feet wet with Ansible 2.2 and Devops and I've run into the following problem. I have a ... . How to fix this? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I am a little bit puzzled on the question of whether to commit .tfstate files to Git or not. The Terraform ... if so, why? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I'm looking for a way to configure Nginx to access hosted services through a subdomain of my server. Those services ... me with this? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Suppose you have two services on your topology API Web Interface Both supposed to be running on port 80. On docker ... to solve this? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
...