kubernetes-dashboard报错:8443: connect: connection refused

kubernetes-dashboard reports an error, the container restarts repeatedly, describe the container, an error message: 8443 is denied access

Install cluster through kubeadm, install dashboard, return error 8443, access denied (kubernetes dashboard :8443: connect: connection refused) (Liveness probe failed: Get https://192.168.195.195:8443/: dial tcp 192.168.1), web Cannot access, check the firewall repeatedly, the configuration is no problem, and finally found that the dashboard can only run on the master node, and then add the nodeName parameter to the two deployments in the yaml file of the dashbord, or through the nodeselector, node affinity configuration, and pod running In the master node, you can access normally
Insert picture description here
Insert picture description here
. The method of using nodeName in the screenshot

Guess you like

Origin blog.csdn.net/u014442879/article/details/111077748