Search code examples
kubernetesopenstack-nova

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


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.


Solution

  • 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!!