How to access/expose kubernetes-dashboard service outside of a cluster?

后端 未结 7 1519
终归单人心
终归单人心 2020-12-02 18:54

I have got the following services:

ubuntu@master:~$ kubectl get services --all-namespaces
NAMESPACE     NAME                   CLUSTER-IP      EXTERNAL-IP            


        
7条回答
  •  青春惊慌失措
    2020-12-02 19:20

    You can reference the document:

    https://github.com/kubernetes/dashboard/wiki/Accessing-Dashboard---1.7.X-and-above

    The easy way is to

    $ kubectl -n kube-system edit service kubernetes-dashboard

    change the .spec.type to NodePort

提交回复
热议问题