Installing the Kubernetes web-based dashboard with Metrics Server

Install the Kubernetes web-based dashboard for use in monitoring Component Pack for HCL Connections.

Before you begin

Ensure the following prerequisites are in place:
  • Kubernetes cluster is installed and running
  • Internet connection is working (you need it to pull Kubernetes Dashboard manifest and image)

About this task

Kubernetes Web UI (Dashboard) is a general purpose, web-based UI for Kubernetes clusters. It allows users to manage applications running in the cluster and troubleshoot them, as well as manage the cluster itself. With Dashboard you can:
  • View Workload status
  • View Node status
  • View logs associated with your running pods

Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines.

You can use Metrics Server for:

Procedure

Install the Kubernetes dashboard by following the steps in Deploying the Dashboard UI in the Kubernetes documentation.

Example

Example: Installing version 2.0.0-beta8
  1. Run the following command:
    kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
  2. Check if the desired pods are up and running:
    kubectl get pods -n kubernetes-dashboard NAME READY STATUS RESTARTS AGE dashboard-metrics-scraper-76585494d8-mffnm 1/1 Running 0 68s kubernetes-dashboard-5996555fd8-rz48r 1/1 Running 0 68s
  3. Create a service account named admin-user:
    kubectl apply -f extractedFolder/microservices_connections/hybridcloud/support/dashboard-admin.yaml
  4. Install Metrics Server using Helm:
    helm install --name metrics-server stable/metrics-server --namespace metrics --set args={"--kubelet-insecure-tls=true, --kubelet-preferred-address-types=InternalIP\,Hostname\,ExternalIP"}
  5. Find the token that you will use to log in to your dashboard:
    kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}') | grep token: | awk {'print $2'}
  6. Log in to your dashboard using the token from the command in step 5 and the following URL:
    https://${YOUR_K8S_MASTER_IP}:6443/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/