Accessing Kubernetes Web UI (Dashboard)

好久不见. 提交于 2019-12-02 05:29:36

The URL you are using to access the dashboard is an endpoint on the API Server. By default, kubeadm deploys the API server on port 6443, and not on 443, which is what you would need to access the dashboard through https without specifying a port in the URL (i.e. https://<kubernetes-master>/ui)

There are various ways you can expose and access the dashboard. These are ordered by increasing complexity:

  • If this is a dev/test cluster, you could try making kubeadm deploy the API server on port 443 by using the --api-port flag exposed by kubeadm.
  • Expose the dashboard using a service of type NodePort.
  • Deploy an ingress controller and define an ingress point for the dashboard.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!