K8s - Dashboard

Angelegt Samstag 23 Februar 2019

Web UI (Dashboard) : https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
Accessing Dashboard 1.7.X and above : https://github.com/kubernetes/dashboard/wiki/Accessing-Dashboard---1.7.X-and-above
Creating sample user : https://github.com/kubernetes/dashboard/wiki/Creating-sample-user
Kubernetes Dashboard (gut, gute Tests) : https://8gwifi.org/docs/kube-dash.jsp
Kubernetes 1.7 Installation Guide part 2 : https://blogs.sap.com/2018/03/26/kubernetes-1.7-installation-on-monsoon-part-2/
Accessing RBAC enabled Kubernetes Dashboard : https://unofficialism.info/posts/accessing-rbac-enabled-kubernetes-dashboard/

Installation:

kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml

kubectl create -f dashboard-ServiceAccount.yml
kubectl create -f dashboard-ClusterRoleBinding.yml

  • Dann das für das Login notwendige Token extrahieren.
kubectl get secret -n kube-system | \
grep admin-user | \
cut -d " " -f1 | \
xargs -n 1 | \
xargs kubectl get secret -o 'jsonpath={.data.token}' -n kube-system | \
base64 --decode

Aufruf bei K8s:
$ kubectl proxy : Proxyverbindung initialisieren. Dann http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/

Aufruf bei Rancher:
https://< rangerhost >/k8s/clusters/c-7zcqz/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login