"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
• 14,080 points
405 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 35,800 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
• 35,800 points
225 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,040 points
277 views
0 votes
1 answer

oci runtime error while running kubernetes on rancher cluster

You need to switch Docker to 1.12.x; ...READ MORE

answered Sep 6, 2018 in Kubernetes by Kalgi
• 35,800 points
50 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
486 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
• 35,800 points
80 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.