Thursday, June 16, 2022

AWS EKS Kubernetes Dashboard Token and Deployment

 Kubernetes 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.


To deploy Dashboard, execute following command:


kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml



Since this is deployed to our private cluster, we need to access it via a proxy. kube-proxy is available to proxy our requests to the dashboard service. In your workspace, run the following command:


kubectl proxy --port=8080 --address=0.0.0.0 --disable-filter=true &


This will start the proxy, listen on port 8080, listen on all interfaces, and will disable the filtering of non-localhost requests.


This command will continue to run in the background of the current terminal’s session.


$ kubectl describe secret kubernetes-dashboard-token-8cz55 -n kubernetes-dashboard

Name:         kubernetes-dashboard-token-8cz55

Namespace:    kubernetes-dashboard

Labels:       <none>

Annotations:  kubernetes.io/service-account.name: kubernetes-dashboard

              kubernetes.io/service-account.uid: e54ec9ae-5f25-46ac-9ac6-c8e0a4f2901e


Type:  kubernetes.io/service-account-token


Data

====

ca.crt:     1066 bytes

namespace:  20 bytes

token:      eyJhbGciOiJSUzI1NiIsImtpZCI6ImNGMlZGZ0NISFBFUmlMRTVyTV9fTi00Sl9BbjYwdTgxY2FJeVRScGJTdUUifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlcm5ldGVzLWRhc2hib2FyZCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQ

No comments: