Error in log when trying to create a kubernetes cluster saying 1 node s had taints that the pod didn t tolerate

+2 votes

I am trying to create a kube cluster and my pods were in the pending state. When I tried looking at the logs, I found something fishy

There was an error saying 

1 node(s) had taints that the pod didn't tolerate.

What does that mean and how do I get rid of it?

Jan 11, 2019 in Kubernetes by Clapton
5,924 views

1 answer to this question.

+2 votes

You get this error when your pod is not being able to schedule to your worker nodes. This could be coz of various reasons - pods not ready, nodes not ready, not sufficient memory etc. 

I think here your nodes haven't joined the cluster yet, there is no way it is going to deploy a pod on a worker node and hence the error.

You can remove the taint using this command but chose this is your last option as it's not a good practice. What it will do is, it'll start deploying pods on your master instead of your worker nodes which we do not want. 

kubectl taint nodes--all node-role.kubernetes.io/master-
answered Jan 11, 2019 by Yesha

edited Jun 28, 2019
But that won't work right? Pods cannot be executed on the master right? Theoretically, its impossible right?
No, even pods can be executed on Master. Its possible
Yes you can deploy on master but isn't that considered very bad practice?

Related Questions In Kubernetes

0 votes
1 answer
+1 vote
1 answer
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,350 points
1,448 views
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
15,621 views
0 votes
3 answers

Can I internally route from AWS to GCP - Kubernetes

Hey @Kali, you can use Ingress for ...READ MORE

answered Feb 8, 2019 in Kubernetes by Kim
1,017 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP