"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
• 16,730 points
768 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
• 42,540 points

Related Questions In Kubernetes

0 votes
1 answer

Error while creating kubernetes dashboard

The installation fails because there is no ...READ MORE

answered Aug 27, 2018 in Kubernetes by Kalgi
• 42,540 points
439 views
0 votes
1 answer

Permission Error while GKE clusterrolebinding for cluster-admin

If your kubeconfig was created automatically by gcloud then ...READ MORE

answered Sep 3, 2018 in Kubernetes by ajs3033
• 7,280 points
907 views
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
3,119 views
0 votes
1 answer
+3 votes
1 answer
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
• 42,540 points
178 views