clincha-org / clincha

Configuration and monitoring of clinch-home infrastructure
https://clinch-home.com
1 stars 1 forks source link

Couldn't validate the identity of the API Server: dial tcp x.x.x.x:6443: connect: no route to host #94

Closed clincha closed 1 year ago

clincha commented 1 year ago

Running the kubernetes Ansible role results in the following error

TASK [kubernetes : Join node to Kubernetes master] *****************************
fatal: [bri-kubeworker-3]: FAILED! => {"changed": true, "cmd": ["kubeadm", "join", "192.168.1.20:6443", "--token", "8f11l4.15a1zm7lriojvjbi", "--discovery-token-ca-cert-hash", "sha256:c1fea21aa201d2f1f8cc83c5172db7a9b68b8d2d11f77588615c3201310971a0"], "delta": "0:05:00.100666", "end": "2023-06-10 15:48:15.963330", "msg": "non-zero return code", "rc": 1, "start": "2023-06-10 15:43:15.862664", "stderr": "error execution phase preflight: couldn't validate the identity of the API Server: Get \"https://192.168.1.20:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s\": dial tcp 192.168.1.20:6443: connect: no route to host\nTo see the stack trace of this error execute with --v=5 or higher", "stderr_lines": ["error execution phase preflight: couldn't validate the identity of the API Server: Get \"https://192.168.1.20:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s\": dial tcp 192.168.1.20:6443: connect: no route to host", "To see the stack trace of this error execute with --v=5 or higher"], "stdout": "[preflight] Running pre-flight checks", "stdout_lines": ["[preflight] Running pre-flight checks"]}
clincha commented 1 year ago

Turning off the firewall on the Kubernetes master node allowed the nodes to join. I need to create some firewall rules.

sudo service firewalld stop

clincha commented 1 year ago

Created.