====== Kubernetes dashboard ====== ===== Installation ===== $ kubectl apply -f kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-rc7/aio/deploy/recommended.yaml ===== Validate ===== $ kubectl -n kubernetes-dashboard get all NAME READY STATUS RESTARTS AGE pod/dashboard-metrics-scraper-b68468655-828fb 1/1 Running 0 4m5s pod/kubernetes-dashboard-64999dbccd-qxl72 1/1 Running 0 4m5s NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/dashboard-metrics-scraper ClusterIP 100.66.87.53 8000/TCP 4m14s service/kubernetes-dashboard ClusterIP 100.71.81.63 443/TCP 4m20s NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/dashboard-metrics-scraper 1/1 1 1 4m14s deployment.apps/kubernetes-dashboard 1/1 1 1 4m15s NAME DESIRED CURRENT READY AGE replicaset.apps/dashboard-metrics-scraper-b68468655 1 1 1 4m7s replicaset.apps/kubernetes-dashboard-64999dbccd 1 1 1 4m7s ===== Access ===== $ kubectl proxy [[http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/|http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/]] Get secrets to login (web basic user/password): $ kops get secrets kube --type secret -oplaintext Using cluster from kubectl context: myfirstcluster.k8s.local aU2nDUu5wiHZLGsbO2ARycV3XQq3OkcI Get master hostname: $ kubectl cluster-info Access web: https:///api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login Select **Token** to access: $ kops get secrets admin --type secret -oplaintext Using cluster from kubectl context: myfirstcluster.k8s.local fxHzDdOsAHnWJSSLQ0fjV8aWRrhm345W {{:docs:virtualizacion:docker:captura_de_pantalla_2018-08-25_a_la_s_21.38.00.png?nolink&400|}} ===== References ===== * [[https://docs.aws.amazon.com/es_es/eks/latest/userguide/dashboard-tutorial.html|Tutorial: Implementación de la interfaz de usuario web de Kubernetes (panel)]] * [[https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/|Web UI (Dashboard)]]