docs:virtualizacion:kubernetes:kubernetes_dashboard

Kubernetes dashboard

$ kubectl apply -f kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-rc7/aio/deploy/recommended.yaml
$ 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   <none>        8000/TCP   4m14s
service/kubernetes-dashboard        ClusterIP   100.71.81.63   <none>        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
$ kubectl 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://<kubernetes-master-hostname>/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/kubernetes/kubernetes_dashboard.txt
  • Última modificación: 2020/04/09 21:04
  • por rodolfo