Dashboard install

Dashboard install using HELM and setup external access

Install helm

wget https://storage.googleapis.com/kubernetes-helm/helm-v2.5.1-linux-amd64.tar.gz
tar xvf helm-v2.5.1-linux-amd64.tar.gz
cd linux-amd64/
cp -f helm /usr/local/bin
chmod +x /usr/local/bin/helm

Configure HELM

kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'      
helm init --service-account tiller --upgrade
helm list

Install Dashboard & heapster

helm install stable/kubernetes-dashboard  --name kubernetes-dashboard --namespace  kube-system --debug
helm install  stable/heapster --name heapster -namespace  kube-system --debug

Install dashboard ingerss contoler

 curl -k https://raw.githubusercontent.com/luxas/kubeadm-workshop/master/demos/dashboard/ingress.yaml|sed 's/\(kubernetes-dashboard\)/\1-\1/' | kubectl apply -f  -

Setup dashboard external access

Bellow setup will not work if you’r located behind firewall

Reference https://github.com/luxas/kubeadm-workshop

kubectl apply -f https://github.com/luxas/kubeadm-workshop/raw/master/demos/loadbalancing/traefik-common.yaml
kubectl apply -f https://github.com/luxas/kubeadm-workshop/raw/master/demos/loadbalancing/traefik-ngrok.yaml
After restart of Kubernetes clsuter, I got 504 error, that time I need to remove and re-create these traefik & ngrok deployments
kubectl delete -f https://github.com/luxas/kubeadm-workshop/raw/master/demos/loadbalancing/traefik-common.yaml
kubectl delete -f https://github.com/luxas/kubeadm-workshop/raw/master/demos/loadbalancing/traefik-ngrok.yaml

Get the access url from one of the node.

curl -sSL $(kubectl -n kube-system get svc ngrok -o template --template "{{.spec.clusterIP}}")/api/tunnels | jq  ".tunnels[].public_url" | sed 's/"//g;/http:/d'

#

https://83dffbe0.ngrok.io

open this URL in th browser, it will prompt the password. authour set the username to kubernetes and the password to rocks!

https://83dffbe0.ngrok.io/dashboard/


Copyright © 2004, Software Groups