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,570 points
2,142 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,360 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
14,624 views
+1 vote
1 answer
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 6,116 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,360 points
1,021 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