How to access Kubernetes cluster dashboard
You can log into the Kubernetes cluster using following command
ssh -i <ssh-private.key > -p 2222 cloud@<Public ip address of Virtual Router>
Step 2: Check the Kubernetes dashboard service using the following command
# kubectl get servies --all-namespaces
By default kubernetes dashboard service runs on cluster IP. In order to access the kubernetes dashboard from the Public IP, we need to create dashboard service with Nodeport option.
Step 3: Delete the Kubernetes dashboard service running on ClusterIP using following command
# kubectl delete services kubernetes-dashboard -n kubernetes-dashboard
After creating the above file, create Kubernetes service using following command
# kubectl apply -f kubernetes-dashboard-service.yaml
Now the service will be running on Nodeport port number 30001. Open the same port in the firewall on the portal & also created a port forwarding rule for the same from the portal as shown in the screenshot below
Step 6: Once the firewall & port forwarding rules are created. You will be able to access the Kubernetes dashboard using following url from any browser
https://<Public ip address of Virtual Router>:30001