Kubernetes dashboard not showing up outside

0 votes

I was following a blog posted by Edureka to install kubernetes on a 2 node cluster (one master and 2 nodes). Everything went fine, and when I use curl to access dashboard I am getting html code response. But I have a requirement of accessing this dashboard using the private IP of this VM internally within the corporate network. I can easily SSH to this VM if I am connected to a VPN, so should be able to access this dashboard too.

Since I am using Ubuntu 16.04 server, I don't have a browser to access the dashboard internally and so, would require the kube dashboard through private IP. Here are some results for the commands I fired after googling:

admin@master:~$ kubectl -n kube-system get service kubernetes-dashboard

NAME                   TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE

kubernetes-dashboard   ClusterIP   10.101.84.169   <none>        443/TCP   23h

admin@master:~$ kubectl describe svc kubernetes-dashboard -n kube-system

Name:              kubernetes-dashboard

Namespace:         kube-system

Labels:            k8s-app=kubernetes-dashboard

Annotations:       <none>

Selector:          k8s-app=kubernetes-dashboard

Type:              ClusterIP

IP:                10.101.84.169

Port:              <unset>  443/TCP

TargetPort:        8443/TCP

Endpoints:         10.0.10.7:8443

Session Affinity:  None

Events:            <none>

Can someone please help me at the earliest.?

Mar 12 in Kubernetes by Vysakh SN
160 views

4 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote
answered Mar 16 by anonymous
I did try that, but still ext IP is showing none.
+1 vote

You can use kubectl forward or proxy for temporary show dashboard on time that you want. In my opinion. Kubernetes's dashboard shouldn't show all the time.

answered Mar 18 by Prav
0 votes
Hey @Vysakh, you've used the service type as ClusterIP. When you use clusterIP, you services include the dashboard will only be visible inside your cluster. Use service type as NodePort or LoadBalancer to get an external IP.
answered Mar 18 by Kalgi
• 35,800 points
+1 vote
In dashboard yaml, change cluster ip to nodeip, or you can forward it via proxy
answered Mar 19 by anonymous

Related Questions In Kubernetes

0 votes
3 answers

Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) while setting up kubernetes

Execute these three commands: sudo rm /var/lib/apt/lists/lock sudo rm ...READ MORE

answered Nov 27, 2018 in Kubernetes by Maverick
• 10,000 points
82 views
0 votes
1 answer

Not able to access the kubernetes dashboard

Have you executed this proxy command? kubectl proxy Try ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 35,800 points
30 views
0 votes
3 answers

Kubernetes dashboard status-CrashLoopBackOff

I had the same issue, struggled for days. ...READ MORE

answered Apr 24 in Kubernetes by Bebo
1,233 views
0 votes
1 answer
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 35,800 points
30 views
+3 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.