Skip to content
  • There are no suggestions because the search field is empty.

How to access Kubernetes cluster dashboard

Step 1: Login to the Controller node with the ssh-key used while creating the Kubernetes cluster.
 

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

 Step 4: Create a new Kubernetes dashboard service with the below yaml file using vi or nano editor.

After creating the above file, create Kubernetes service using following command

# kubectl apply -f kubernetes-dashboard-service.yaml

 Step 5: Check the Kubernetes service.

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