[Kubernetes] Dashboard Lab k8s (Part 3)
بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيم
Oke lab ini kita akan memasang Dashbord mili sii kubernetes
Kubernetes Dashboard
Eksekusi di pod Master
1. Instal Kubernetes Dashboard
mkdir ~/certs
kubectl create secret generic kubernetes-dashboard-certs --from-file=$HOME/certs -n kube-system
kubectl apply -f https://raw.githubusercontent.com/nolsatuid/labs/master/k9-adm/script/kubernetes-dashboard.yaml
kubectl -n kube-system get pods
kubectl -n kube-system get svc
2. Set Permissive RBAC Permissions
kubectl create clusterrolebinding permissive-binding --clusterrole=cluster-admin --user=admin --user=kubelet --group=system:serviceaccounts
3. Menampilkan service account token
kubectl get secrets
kubectl describe secret [NAMATOKEN]
Browsing ke IP pod master dan port kubernetes-dashboard (HTTPS)
Login dengan https://IP:30000 , lalu isikan token secret and Sign In
Comments