Unable to expose kubernetes dashboard to access it from outside

2/25/2019

I also tried changing kubernetes services yaml file to Node port and then tried exposing the dashboard from the new port i am getting error "connection is not private".So how to access the dashboard by making the connection private?

-- jaya rohith
dashboard
kubernetes

1 Answer

2/25/2019

Can you try below steps...

  1. Undeploy the existing dashboard.

  2. Deploy dashboard using the below command:

    kubectl create -f https://raw.githubusercontent.com/epasham/docker-repo/master/k8s/dashboard/kubernetes-dashboard.yml
  3. master $ kubectl get svc -n kube-system | grep dashboard
    kubernetes-dashboard   NodePort    10.110.127.61   <none>        9090:30000/TCP   2m
  4. master $ curl 10.110.127.61:9090 ( within the cluster )

  5. Access the dashboard from browser using HOSTNAME:30000

-- P Ekambaram
Source: StackOverflow