Restarting nodes on kubernetes as the node status shows unknown

+2 votes

The status of the node is coming as unknown right now

"conditions": [
            "type": "Ready",
            "status": "Unknown",
            "lastHeartbeatTime": "2015-11-12T06:03:19Z",
            "lastTransitionTime": "2015-11-12T06:04:03Z",
            "reason": "Kubelet stopped posting node status."

kubectl get nodes shows that the node is not ready. How do I fix this?

Oct 23, 2018 in Kubernetes by ffdfd
• 5,550 points

edited Oct 23, 2018 by Kalgi 19,987 views

5 answers to this question.

0 votes

Considering that the node was previously working and recently stopped showing the ready status restart you kubelet service. Just ssh into the affected node and execute:

/etc/init.d/kubelet restart

Back on your master node run kubectl get nodes to check if the node is working now

For further details, refer to the Kubernetes Course.

answered Oct 23, 2018 by ajs3033
• 7,300 points
0 votes

Delete the node and then create a node object with the name of the one that died, bounce your schedulers & controllers, and then delete the node object. This seems to allow the scheduler to pick a new, good, node

answered Oct 23, 2018 by Kalgi
• 52,360 points
0 votes

You can try moving the cluster to the new node pool got rid of the weird stuck pods. But this is not the best solution, probably a temporary solution.

answered Oct 23, 2018 by lina
• 8,220 points
0 votes
I had faced a similar issue. In my case I had 10 nodes already up and running. I had created two new nodes and the status was stuck at unknown state. After a lot of research I figured I didnt have memory to deploy any more nodes. So in my case the memory was the issue. Try checking if you have sufficient memory.
answered Oct 23, 2018 by Karthik
0 votes
I had a similar issue, but mine was a very stupid silly mistake, I had made. On my node machine I had forgotten to unstall Docker engine. But what I still dont get it, is how did that node manage to join the cluster with having docker engine running on it?
answered Oct 23, 2018 by Zans

Related Questions In Kubernetes

0 votes
2 answers

The Status of nodes shown unknown

This worked for me In Azure, if you ...READ MORE

answered Aug 30, 2018 in Kubernetes by Nilesh
• 7,050 points
–1 vote
1 answer

order to apply kubernetes-dashboard ? before I join the worker nodes or after the join of the worker node ?

Not really. There are a few things ...READ MORE

answered Mar 18, 2019 in Kubernetes by Vardhan
• 13,190 points
0 votes
1 answer

Kubernetes- Jenkins slave node shows offline

TCP port for JNLP slave agent should ...READ MORE

answered Sep 5, 2018 in Kubernetes by Kalgi
• 52,360 points
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,360 points
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
0 votes
1 answer

automating cluster setup and app deplument on kubernetes

Go through Google Cloud Deployment Manager. it automates ...READ MORE

answered Jul 5, 2018 in Kubernetes by ajs3033
• 7,300 points
+1 vote
4 answers
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP