---
title: How to Deploy Kubernetes Dashboard and Manage Cluster Resources
url: https://docs.vultr.com/how-to-deploy-kubernetes-dashboard-and-manage-cluster-resources
description: Learn how to deploy the Kubernetes Dashboard to visualize and manage your cluster resources efficiently. Step-by-step guide for both beginners and advanced users.
publish_date: 2025-10-10T17:47:19.355776Z
last_updated: 2025-10-15T21:01:51.327000Z
author: Christian Kintu
header_image: https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/30b41622-5b15-4fe3-8b0e-4a5d5873f208.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Dashboard is an open-source web-based GUI for managing Kubernetes clusters. It allows you to manage cluster resources, deploy applications, monitor and troubleshoot cluster performance, all through a web-based management interface. The Kubernetes Dashboard manages multiple resources and cluster workloads, including CronJobs, DaemonSets, Deployments, Pods, ReplicaSets, and StatefulSets, allowing you to deploy applications and monitor clusters in real time.

This article explains how to deploy the Kubernetes Dashboard, manage cluster resources using its web interface, and install an Ingress Controller to expose it securely.

## Prerequisites

Before you start, you need to:

* Have access to a [Kubernetes cluster](https://www.vultr.com/kubernetes/).
* [Install and configure Kubectl](https://docs.vultr.com/how-to-install-and-use-kubectl-to-manage-a-vke-cluster) to access your Kubernetes cluster.
* [Install Helm](https://helm.sh/docs/intro/install/) on your workstation.

## Install Kubernetes Dashboard

You can install the Kubernetes Dashboard using the official Helm repository. Follow the steps below to add a new Helm repository to your configuration and install the Kubernetes Dashboard to your cluster.

1. Add the Kubernetes Dashboard repository to your local Helm configuration.

    ```console
    $ helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
    ```

1. Update your local Helm configuration.

    ```console
    $ helm repo update
    ```

1. Install the Kubernetes Dashboard in your cluster using Helm.

    ```console
    $ helm install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard
    ```

1. Check all installed components in the `kubernetes-dashboard` namespace.

    ```console
    $ kubectl get all -n kubernetes-dashboard
    ```

    From the output, verify that the Kubernetes Dashboard Pods, Services, and ReplicaSets are available and active.

## Configure Access to the Kubernetes Dashboard

The Kubernetes Dashboard, by default, includes a minimal RBAC configuration and supports user login with bearer tokens. Every user needs a valid bearer token to access the Kubernetes Dashboard. Follow the steps below to create a new administrative service account and enable access to the Kubernetes Dashboard.

1. Create a new `dashboard-admin-user.yml` file using a text editor of your choice, like `nano`.

    ```console
    $ nano dashboard-admin-user.yml
    ```

1. Add the following YAML configurations to the `dashboard-admin-user.yml` file.

    ```yaml
    apiVersion: v1
    kind: ServiceAccount
    metadata:
      name: dashboard-admin-user
      namespace: kubernetes-dashboard
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    metadata:
      name: dashboard-admin-user
    roleRef:
      apiGroup: rbac.authorization.k8s.io
      kind: ClusterRole
      name: cluster-admin
    subjects:
    - kind: ServiceAccount
      name: dashboard-admin-user
      namespace: kubernetes-dashboard
    ```

    Save and close the `dashboard-admin-user.yml` file.

    The above configuration creates a new `dashboard-admin-user` service account and a cluster role binding that enables it to manage the cluster using the Kubernetes Dashboard.

    > [!WARNING]
    > The `dashboard-admin-user` ClusterRoleBinding references the `cluster-admin` role. This grants the highest privileges and full control over your entire cluster. Create a more restrictive `Role` or `ClusterRole` for production use.

1. Apply the configuration file.

    ```console
    $ kubectl apply -f dashboard-admin-user.yml
    ```

1. Create a new bearer token for the `dashboard-admin-user` service account to use when accessing the Kubernetes Dashboard.

    ```console
    $ kubectl -n kubernetes-dashboard create token dashboard-admin-user
    ```

    Copy the generated string from your output to later use as a login Bearer token.

??? note "Optional: Create Read-only Users"

    You can create a new user with read-only privileges and a new bearer token when accessing the Kubernetes Dashboard with lower privileges for tasks such as cluster monitoring. Follow the steps below to create a new read-only user and generate a bearer token to access the Kubernetes Dashboard.

    1. Create a new `read-only-user.yml` file.

        ```console
        $ nano read-only-user.yml
        ```

    1. Add the following configurations to the `read-only-user.yml` file.

        ```yaml
        apiVersion: v1
        kind: ServiceAccount
        metadata:
          name: read-only-user
          namespace: kubernetes-dashboard
        ---
        apiVersion: rbac.authorization.k8s.io/v1
        kind: ClusterRole
        metadata:
          name: read-only-clusterrole
        rules:
        - apiGroups: ["", "apps", "extensions"]
          resources: ["*"]
          verbs: ["get", "list", "watch"]
        ---
        apiVersion: rbac.authorization.k8s.io/v1
        kind: ClusterRoleBinding
        metadata:
          name: read-only-binding
        roleRef:
          apiGroup: rbac.authorization.k8s.io
          kind: ClusterRole
          name: read-only-clusterrole
        subjects:
        - kind: ServiceAccount
          name: read-only-user
          namespace: kubernetes-dashboard
        ```

        Save and close the `read-only-user.yml` file.

        The above configuration creates a new `read-only-user` service account and cluster role binding for `read-only-clusterrole` with `get`, `list`, and `watch` privileges to all resources in the cluster.

    1. Apply the `read-only-user.yml` configuration in your cluster to create the `read-only-user` service account and cluster role binding.

        ```console
        $ kubectl apply -f read-only-user.yml
        ```

    1. Create a new bearer token for the `read-only-user` account when accessing the Kubernetes Dashboard.

        ```console
        $ kubectl -n kubernetes-dashboard create token read-only-user
        ```

## Access the Kubernetes Dashboard

You can access the Kubernetes Dashboard after deploying it to your cluster using port forwarding or installing an Ingress Controller to attach a load balancer with a public endpoint to your cluster. This section covers accessing the Kubernetes Dashboard using port forwarding.

1. The `kubernetes-dashboard-kong-proxy` service, which was created when you installed Kubernetes Dashboard, provides an HTTPS endpoint to access the Kubernetes Dashboard. Forward the `kubernetes-dashboard-kong-proxy` service port `443` to port `8443` on your local workstation.

    ```console
    $ kubectl port-forward service/kubernetes-dashboard-kong-proxy 8443:443 -n kubernetes-dashboard
    ```

1. If using a remote cloud server to manage your Kubernetes cluster, follow the steps below.

    1. Allow the forwarded port through the firewall if it's active.

        ```console
        $ sudo ufw allow 8443/tcp
        ```

    1. Reload the firewall to apply the change.

        ```console
        $ sudo ufw reload
        ```

    1. Forward the `kubernetes-dashboard` port `443` to `8443` to access the Kubernetes Dashboard using your instance's public IP address.

        ```console
        $ kubectl port-forward service/kubernetes-dashboard-kong-proxy 8443:443 -n kubernetes-dashboard --address='0.0.0.0'
        ```

        Your output should be similar to the one below when successful.

        ```
        Forwarding from 0.0.0.0:8443 -> 8443
        ```

1. Visit your remote server's IP address or localhost (if managing Kubernetes locally) using `https` in a web browser like Chrome.

    ```
    https://127.0.0.1:8443
    ```

    Or

    ```
    https://SERVER-IP:8443
    ```

    Accept the insecure connection warning when prompted to access the Kubernetes Dashboard.

    ![Paste Bearer Token](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/21482bdd-2b18-4f03-b5db-cb8357517663.png)

1. Paste the `dashboard-admin-user` token you generated earlier and click **Sign in** to access the Kubernetes Dashboard.
1. Verify the status of all workloads in the default namespace.
1. Click the namespace selector on the top navigation bar next to **Kubernetes** and select `kubernetes-dashboard` from the list.

    ![Select Kubernetes Dashboard Namespace](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/0a1d3489-54aa-48ea-90ae-2c9f95d50453.png)

1. Verify the status of all workloads in the `kubernetes-dashboard` namespace and monitor the active Deployments, Pods, and ReplicaSets.
1. Click **Nodes** within the **Cluster** group on the main navigation menu and verify the resource usage statistics for all nodes in your cluster.

    ![View Node Resources in a Cluster](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/d526f540-aac7-4c69-bf87-b398dce5285d.png)

## Secure the Kubernetes Dashboard

Running the Kubernetes Dashboard using a public endpoint may expose your cluster to multiple threats. Installing an Ingress Controller lets you secure the Kubernetes Dashboard with a trusted TLS certificate and access it over HTTPS. Follow the steps below to install the Nginx Ingress Controller in your cluster and generate trusted TLS certificates using cert-manager to secure access to the Kubernetes Dashboard.

1. Press :key_ctrl: + :key_c: to stop port forwarding in your terminal.
1. Install Nginx Ingress Controller.

    1. Add the Nginx Ingress Controller Helm repository.

        ```console
        $ helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
        ```

    1. Update your Helm repositories.

        ```console
        $ helm repo update
        ```

    1. Install the Nginx Ingress Controller in your cluster using Helm.

        ```console
        $ helm install ingress-nginx ingress-nginx/ingress-nginx \
        --namespace ingress-nginx \
        --create-namespace
        ```

    1. Wait a few minutes for the Nginx Ingress Controller to deploy and attach a load balancer to your cluster. Then, list all services in the `ingress-nginx` namespace.

        ```console
        $ kubectl get services -n ingress-nginx
        ```

        Verify the `EXTERNAL-IP` address assigned to your `ingress-nginx` LoadBalancer service and update your domain's DNS records to this IP value.

1. Install Cert-Manager.

    1. Add the Jetstack repository to your local Helm configuration.

        ```console
        $ helm repo add jetstack https://charts.jetstack.io
        ```

    1. Update your local Helm configuration.

        ```console
        $ helm repo update
        ```

    1. Install cert-manager and all required CRDs in your Kubernetes cluster.

        ```console
        $ helm install cert-manager jetstack/cert-manager \
          --namespace cert-manager \
          --create-namespace \
          --set crds.enabled=true
        ```

    1. List all installed resources in the `cert-manager` namespace and verify if they are up and running.

        ```console
        $ kubectl get all -n cert-manager
        ```

1. Create a ClusterIssuer resource to generate a TLS certificate for enabling a secure HTTPS connection to the Kubernetes Dashboard.

    1. Create a new `issuer.yml` manifest file to specify the Let's Encrypt ClusterIssuer configuration.

        ```console
        $ nano issuer.yml
        ```

    1. Add the following manifest to the file. Replace `admin@example.com` with your active email address.

        ```yaml
        apiVersion: cert-manager.io/v1
        kind: ClusterIssuer
        metadata:
          name: tls-certificate-issuer
        spec:
          acme:
            server: https://acme-v02.api.letsencrypt.org/directory
            email: admin@example.com
            privateKeySecretRef:
              name: letsencrypt-private-key
            solvers:
              - http01:
                  ingress:
                    ingressClassName: nginx
        ```

        Save and close the file.

        The above configuration creates a new ClusterIssuer resource that uses the Let's Encrypt CA to complete domain challenges and generate trusted TLS certificates.

    1. Apply the ClusterIssuer manifest file.

        ```console
        $ kubectl apply -f issuer.yml
        ```

    1. List all ClusterIssuers and verify that `tls-certificate-issuer` is available.

        ```console
        $ kubectl get clusterissuer
        ```

        Output:

        ```
        NAME                     READY   AGE
        tls-certificate-issuer   True    74s
        ```

1. Patch the `ingress-nginx-controller` ConfigMap to allow the newer version of cert-manager to complete its domain verification. This is required because a strict setting in Nginx can block the automatic process cert-manager uses to prove you own the domain, which prevents it from issuing the TLS certificate.

    ```console
    $ kubectl patch configmap ingress-nginx-controller -n ingress-nginx --patch '{"data":{"strict-validate-path-type":"false"}}'
    ```

1. Create a new `dashboard-ingress.yml` file to specify the Kubernetes Dashboard Ingress configuration.

    ```console
    $ nano dashboard-ingress.yml
    ```

1. Add the following Ingress manifest to the file. Replace `dashboard.example.com` with your actual domain name.

    ```yaml
    apiVersion: networking.k8s.io/v1
    kind: Ingress
    metadata:
      name: kubernetes-dashboard-ingress
      namespace: kubernetes-dashboard
      annotations:
        cert-manager.io/cluster-issuer: tls-certificate-issuer
        nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
    spec:
      ingressClassName: nginx
      tls:
        - hosts:
            - dashboard.example.com
          secretName: kubernetes-dashboard-cert
      rules:
        - host: dashboard.example.com
          http:
            paths:
              - path: /
                pathType: Prefix
                backend:
                  service:
                    name: kubernetes-dashboard-kong-proxy
                    port:
                      number: 443
    ```

    Save and close the file.

    The above configuration creates a new Ingress resource in the `kubernetes-dashboard` namespace that forwards all incoming requests from `dashboard.example.com` to the `kubernetes-dashboard-kong-proxy` service port `443`.

1. Apply the `dashboard-ingress.yml` manifest to your cluster to create the Ingress resource.

    ```console
    $ kubectl apply -f dashboard-ingress.yml
    ```

1. Verify the TLS certificate status.

    ```console
    $ kubectl get certificate -n kubernetes-dashboard
    ```

    Output:

    ```
    NAME                        READY   SECRET                      AGE
    kubernetes-dashboard-cert   True    kubernetes-dashboard-cert   41s
    ```

    > [!NOTE]
    > It may take some time for the certificate's `READY` state to turn `True`.

1. List all Ingress resources in the `kubernetes-dashboard` namespace and verify that `dashboard-ingress` is available.

    ```console
    $ kubectl get ingress -n kubernetes-dashboard
    ```

    Output:

    ```
    NAME                           CLASS   HOSTS                   ADDRESS         PORTS     AGE
    kubernetes-dashboard-ingress   nginx   dashboard.example.com   45.63.114.213   80, 443   16m
    ```

1. Access your `dashboard.example.com` domain in a new web browser window.

    ```
    https://dashboard.example.com
    ```

    ![Load Kubernetes Dashboard Token Page](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/21482bdd-2b18-4f03-b5db-cb8357517663.png)

## Deploy Applications using the Kubernetes Dashboard

You can deploy applications through the Kubernetes Dashboard by applying YAML configurations or filling in application details in the web-based interface. Follow the steps below to deploy a sample Nginx application in your cluster by specifying the resource details in a form using the Kubernetes Dashboard.

1. Create another subdomain **A** record pointing to your Ingress Controller's external IP address. For example, `sample-app.example.com`.
1. Open the Kubernetes Dashboard.

    ```
    https://dashboard.example.com
    ```

1. Enter your `dashboard-admin-user` token when prompted to log in to the Kubernetes Dashboard.
1. Click **+** in the top right corner to create a new resource configuration.

    ![Create new resource](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/d77c7d4a-6dda-4102-b60d-86d7c3df2134.png)

1. Navigate to the **Create from form** tab to specify the application information.
1. Enter the application name in the **App name** field. For example, `sample-app`.
1. Enter a public container URL in the **Container Image** field. For example, `nginxdemos/hello` to pull from DockerHub.
1. Click the Service drop-down and select **Internal** from the list.

    ![Create Application from Form](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/b9794ba9-306f-4971-b848-06f9b9e7405f.png)

    Enter the service's network port details, including:

    * **Port**: The internal port the service exposes to other resources in the cluster. For example, `80`.
    * **Target Port**: The target container port within the pod to which incoming traffic is forwarded. For example, `80`.
    * **Protocol**: The TCP or UDP network protocol to route traffic from the service to the pod.

1. Click the **Namespace** drop-down and select the target namespace to deploy the application, such as `default`.
1. Click **Deploy** to apply the application configuration to your cluster.
1. Monitor the application's deployment progress on the **Workloads** page, then navigate to **Pods** and verify that all pods are running.

    ![Check the application workload status](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/03e6c95e-b04f-429a-94d9-2e2960074c78.png)

1. Navigate to **Services** and verify that the `sample-app` service is available.

    ![Check services in the default namespace](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/58147450-3477-4dd2-b490-90b400fab7d8.png)

1. Click **Create new resource** to set up a new Ingress configuration for your application.
1. Add the following manifest to the **Create from input** field.

    ```yaml
    apiVersion: networking.k8s.io/v1
    kind: Ingress
    metadata:
      name: sample-app-ingress
      annotations:
        cert-manager.io/cluster-issuer: tls-certificate-issuer
    spec:
      ingressClassName: nginx
      tls:
        - hosts:
            - sample-app.example.com
          secretName: sample-app-cert
      rules:
        - host: sample-app.example.com
          http:
            paths:
              - path: /
                pathType: Prefix
                backend:
                  service:
                    name: sample-app
                    port:
                      number: 80
    ```

    This Ingress configuration forwards incoming traffic from `sample-app.example.com` to the `sample-app` service on port `80`. The `tls-certificate-issuer` automatically generates a new TLS certificate for the `sample-app.example.com` domain if it's pointing to the Ingress Controller's public IP address, enabling secure TLS connections to the application.

1. Click **Upload** to apply the Ingress configuration to your cluster.

    ![Upload the Custom Ingress Configuration](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/cd326f79-2bcd-43f4-86df-e1ef032f218c.png)

1. Navigate to **Ingresses** on the main navigation menu.
1. Verify that the new Ingress resource is available and points to your domain.

    ![List Available Ingress Resources](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/bb4b497a-6057-4a99-91f4-2542a6d417c1.png)

1. Click the Ingress resource name to view its additional information or modify the configuration.
1. Open the `sample-app.example.com` domain in your web browser.

    ```
    https://sample-app.example.com
    ```

1. Verify that the sample Nginx application displays with the active pod's internal IP in your browser.

    ![Check the Nginx application status](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/3957e2a7-1c24-4dce-a1aa-3a79f168344d.png)

1. Click **Auto Refresh** to automatically reload the application to verify that traffic is actively load-balanced to all pods in your cluster.

    ![Verify Node IP changes](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2344/c7805291-8a3c-46db-b019-3edc01d19112.png)

## Conclusion

In this article, you deployed the Kubernetes Dashboard in your cluster and exposed it securely using the Nginx Ingress Controller. You can now use the Kubernetes Dashboard to deploy applications, manage your cluster, and create additional resources. For more information and configuration options, visit the [Kubernetes documentation](https://kubernetes.io/docs/home/).
