Access the Kubernetes Dashboard
Last updated
Last updated
Dashboard is a web-based Kubernetes user interface. Provides information on the state of Kubernetes resources in your cluster and on any errors that may have occurred.
The Dashboard UI is not deployed by default. To deploy it, run the following command:
After completing the installation, your pod must be running successfully.
Now, to be able to expose the dashboard for external access, we need to change the service's ClusterIP type to NodePort.
We can make this change simply by editing the service.
After making the change to NodePort
, save and close the file.
When performing a new query, notice that the type has changed and now a new port has been added.
Once this is done, you should have access to the dashboard through the public IP of your instance plus the port that was released.
As we send an http request and expect https then we receive an alert. We can simply move forward by adding https://
Creating sample user: Grant this user admin permissions and login to Dashboard using a bearer token tied to this user.
We can use it and create only a ClusterRoleBinding
for our ServiceAccount
Execute the following command:
Now we can navigate the dashboard and monitor all clusters.