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:
- Zuerst auf K8s das Dashboard installieren (https://github.com/kubernetes/dashboard/releases).
- Dann die notwendigen Rollen anlegen (https://github.com/kubernetes/dashboard/wiki/Creating-sample-user).
kubectl create -f dashboard-ClusterRoleBinding.yml
- Dann das für das Login notwendige Token extrahieren.
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