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

后端 未结 7 1427
终归单人心
终归单人心 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:30

    Did you tried this:
    kubectl port-forward -n kubernetes-dashboard service/kubernetes-dashboard 10443:443 --address 0.0.0.0
    
    In your case the namespace is different so:
    kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443 --address 0.0.0.0

    Now you should be able to access the dashboard at port 10443.

    0 讨论(0)
提交回复
热议问题