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
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
helm install stable/kubernetes-dashboard --name kubernetes-dashboard --namespace kube-system --debug
helm install stable/heapster --name heapster -namespace kube-system --debug
curl -k https://raw.githubusercontent.com/luxas/kubeadm-workshop/master/demos/dashboard/ingress.yaml|sed 's/\(kubernetes-dashboard\)/\1-\1/' | kubectl apply -f -
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
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/