error marking master timed out waiting for the condition while creating a kubernetes cluster

0 votes

I'm getting the following logs when i execute the kubeadm init command, have no idea whats wrong..

root@kmaster:/home/wael# sudo kubeadm init --pod-network-cidr=192.168.0.0/16 --apiserver-advertise-address=192.168.145.5 --ignore-preflight-errors=all --node-name kmaster
[init] using Kubernetes version: v1.12.2
.
.
.
[kubelet] Creating a ConfigMap "kubelet-config-1.12" in namespace kube-system with the configuration for the kubelets in the cluster
[markmaster] Marking the node kmaster as master by adding the label "node-role.kubernetes.io/mas..."
[markmaster] Marking the node kmaster as master by adding the taints [node-role.kubernetes.io/mas...]

error marking master: timed out waiting for the condition..

Oct 30, 2018 in Kubernetes by Hannah
• 18,520 points
2,430 views

1 answer to this question.

0 votes
There could be many reasons that generates this error.

check your config file of kubelet which in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf and check the flag "--hostname-override" and comment that flag.
answered Oct 30, 2018 by Kalgi
• 52,350 points

Related Questions In Kubernetes

0 votes
1 answer
+2 votes
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
15,476 views
+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,396 views
0 votes
1 answer

“403 Insufficient Permission” while creating a Kubernetes Cluster on Google Cloud instance

To run ./cluster/kube-up.sh, you most likely need compute scope ...READ MORE

answered Aug 28, 2018 in Kubernetes by Kalgi
• 52,350 points
1,306 views
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