Tutorial: Deploy the Kubernetes Web UI
(Dashboard)

This tutorial guides you through deploying the Kubernetes dashboard to your Amazon EKS
cluster, complete with CPU and memory metrics. It also helps you to create an Amazon
EKS
administrator service account that you can use to securely connect to the dashboard
to view
and control your cluster.

secret "kubernetes-dashboard-certs" created
serviceaccount "kubernetes-dashboard" created
role "kubernetes-dashboard-minimal" created
rolebinding "kubernetes-dashboard-minimal" created
deployment "kubernetes-dashboard" created
service "kubernetes-dashboard" created

Step 2: Create an eks-admin Service
Account and Cluster Role Binding

By default, the Kubernetes dashboard user has limited permissions. In this section,
you create an eks-admin service account and cluster role binding that you
can use to securely connect to the dashboard with admin-level permissions. For more
information, see Managing Service Accounts in the Kubernetes documentation.

To create the eks-admin service account and cluster role
binding

Important

The example service account created with this procedure has full
cluster-admin (superuser) privileges on the cluster. For more
information, see Using RBAC
Authorization in the Kubernetes documentation.

Create a file called eks-admin-service-account.yaml with
the text below:

Step 3: Connect to the Dashboard

Now that the Kubernetes dashboard is deployed to your cluster, and you have an
administrator service account that you can use to view and control your cluster, you
can
connect to the dashboard with that service account.

To connect to the Kubernetes dashboard

Retrieve an authentication token for the eks-admin service
account. Copy the <authentication_token> value
from the output. You use this token to connect to the dashboard.

Choose Token, paste the
<authentication_token> output from the
previous command into the Token field, and choose
SIGN IN.

Note

It may take a few minutes before CPU and memory metrics appear in the
dashboard.

Step 4: Next Steps

After you have connected to your Kubernetes cluster dashboard, you can view and
control your cluster using your eks-admin service account. For more
information about using the dashboard, see the project documentation on
GitHub.

Javascript is disabled or is unavailable in your browser.

To use the AWS Documentation, Javascript must be enabled. Please refer to your browser's
Help pages for instructions.