infraly / k8s-on-openstack

An opinionated way to deploy a Kubernetes cluster on top of an OpenStack cloud.
Apache License 2.0
112 stars 48 forks source link

Stuck when nodes want to join to the cluster #25

Closed sitya closed 6 years ago

sitya commented 6 years ago

Ansible hangs up at the task where the nodes should join to the cluster at: TASK [kubeadm-nodes : kubeadm join]

I have checked it manually:

  1. I generate the joining token on the master node: kubeadm token create --print-join-command
  2. I run it from k8s-1 node: kubeadm join x.x.x.x:6443 --token xxxx --discovery-token-ca-cert-hash sha256:xxxx --skip-preflight-checks but it says: [discovery] Failed to request cluster info, will try again: [configmaps "cluster-info" is forbidden: User "system:anonymous" cannot get configmaps in the namespace "kube-public"] And while it tries again, that is why ansible is hanging up.

Do you have any idea what could be wrong? Thanks.

sitya commented 6 years ago

A have created a new cluster from scratch, and it worked without any problem, so I close the issue.