Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.13 KB

Deploy and Access the k8s Dashboard.md

File metadata and controls

26 lines (21 loc) · 1.13 KB

Deploy and Access the Kubernetes Dashboard

`Cluster Diagram

# Deploying the Dashboard UI
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.6.1/aio/deploy/recommended.yaml

$ kubectl get serviceaccount -A
# NAMESPACE              NAME                                 SECRETS   AGE
# default                default                              0         47h
# kube-node-lease        default                              0         47h
# kube-node-lease        default                              0         47h
# kube-public            default                              0         47h
#
# ...
# 
# kubernetes-dashboard   default                              0         47h
# kubernetes-dashboard   kubernetes-dashboard                 0         47h           <-- [Name Space] [Service Account Name]

kubectl -n kubernetes-dashboard describe serviceaccount kubernetes-dashboard
kubectl -n default create token default

# Dashboard URL: http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
$ kubectl proxy