VK Cloud logo
Updated atDecember 20, 2023   05:58 AM

Connecting to cluster using Kubernetes Dashboard

Kubernetes Dashboard is a universal web interface for Kubernetes clusters available into all VK Cloud clusters. It allows users to manage both the cluster itself and the applications running in it. Read more in official Kubernetes documentation.

The way to connect to Kubernetes Dashboard depends on the IP address of the cluster:

  • If an external IP address is assigned to the cluster, then you can connect from any host with Internet access.
  • If the cluster is assigned only an internal IP address, then you can connect only from a host in VK Cloud — a virtual machine that is located in the same subnet as the cluster.

To connect to Kubernetes Dashboard, a browser must be installed on the host.

Preparatory steps

  1. Make sure that you can connect to the cluster using kubectl.

  2. On the host from which you plan to connect to the cluster, install kauthproxy if the utility is not already installed:

    1. Download the archive of the correct version from release page:

      • for Linux: kauthproxy_linux_....zip;
      • for macOS: kauthproxy_darwin....zip;
      • For Windows: kauthproxy_windows....zip.
    2. Unpack the archive.

    3. Place the executable file in the directory contained in the PATH environment variable, for example:

      • in /usr/local/bin for Linux/macOS;
      • In C:\ for Windows.

Connect to cluster

  1. On the host in a separate terminal session, run the command:

    kauthproxy -n kubernetes-dashboard https://kubernetes-dashboard.svc
  2. Enter the password for your personal VK Cloud account, if it is not present in the kubeconfig configuration file.

    kauthproxy will periodically ask for this password again.

    The browser will open and you will be directed to the Kubernetes Dashboard web interface.