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:
I generate the joining token on the master node: kubeadm token create --print-join-command
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.
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:
kubeadm token create --print-join-command
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.