There are multiple ways you can access the Dashboard UI; either by using the kubectl command-line interface, or by accessing the Kubernetes master apiserver using your web browser.
You can access Dashboard using the kubectl command-line tool by running the following command:
kubectl proxy
Kubectl will handle authentication with apiserver and make Dashboard available at http://localhost:8001/ui.
The UI can only be accessed from the machine where the command is executed. Now if you need to provide admin access to Web UI(Dashboard)
Step 1) Edit the kubernetes-dashboard and change the type: NodePort
kubectl -n kube-system edit service kubernetes-dashboard
Step 2) Validate if the dashboard service and running.
[root@vn2 plugins]# kubectl -n kube-system get service kubernetes-dashboard
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes-dashboard NodePort 10.110.146.230 <none> 443:32560/TCP 7d
Step 3) Get the port from step#2 and open the URL in browser
e.g) https://<Kube-API-server-ip>:32560
You can access Dashboard using the kubectl command-line tool by running the following command:
kubectl proxy
Kubectl will handle authentication with apiserver and make Dashboard available at http://localhost:8001/ui.
The UI can only be accessed from the machine where the command is executed. Now if you need to provide admin access to Web UI(Dashboard)
Step 1) Edit the kubernetes-dashboard and change the type: NodePort
kubectl -n kube-system edit service kubernetes-dashboard
Step 2) Validate if the dashboard service and running.
[root@vn2 plugins]# kubectl -n kube-system get service kubernetes-dashboard
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes-dashboard NodePort 10.110.146.230 <none> 443:32560/TCP 7d
Step 3) Get the port from step#2 and open the URL in browser
e.g) https://<Kube-API-server-ip>:32560
No comments:
Post a Comment