Facing issue while trying to install Kubernetes [ubuntu18 image on openstack]

12/5/2018

Since yesterday, I am struggling with this strange issue: node "kmaster" not found. img_1

I tried with multiple combinations of installing kubernetes on jetstream instance.

  1. using calico in ubuntu
  2. using flannel in centos
  3. and few other ways

I looked it online and found many people have the same issue: https://github.com/kubernetes/kubernetes/issues/61277 [kubeissue_2.jpg]

If someone ran into a similar issue, then please let me know what steps are needed to be taken to resolve it.

Thanks.

-- pkm
kubernetes
openstack-nova

2 Answers

12/6/2018

I would recommend to bootstrap Kubernetes cluster from scratch and share with you some helpful links with steps how to proceed:

Keep in mind to fulfill system requirements before you start with kubeadm installation procedure.

You can also take a look at the general kubeadm installation or runtime troubleshooting guide.

-- mk_sta
Source: StackOverflow

12/13/2018

I have found my solution for this. I was having issue running kubernetes cluster because the kubernetes components are distributed on multiple servers. Once I created the master node and slave(worker) node on the same machine, the issue got resolved.
The steps that I took to resolve the issue:
1. on slave/worker machine, run this command: kubeadm reset
2. on master node, generate the token by running this command: kubeadm generate token.
3. use the token generated in master machine on the slave node, so that the node machine can join the kubernetes cluster.

Cheers!!

-- pkm
Source: StackOverflow