Skip to content

Instantly share code, notes, and snippets.

@bttnns
Last active November 8, 2018 17:37
Show Gist options
  • Select an option

  • Save bttnns/b056e4af30952f19ce83d4ee1c31db8b to your computer and use it in GitHub Desktop.

Select an option

Save bttnns/b056e4af30952f19ce83d4ee1c31db8b to your computer and use it in GitHub Desktop.
EKS Web UI Dashboard Example

Deploy the Web UI

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

Check it's up and running

kubectl describe svc/kubernetes-dashboard -n kube-system

Create a service account and grab a token to authenticate

kubectl create serviceaccount kadmin -n kube-system
kubectl create clusterrolebinding kadmin --clusterrole=cluster-admin --serviceaccount=kube-system:kadmin
kubectl get secret -n kube-system | grep kadmin | cut -d " " -f1 | xargs -n 1 | xargs kubectl get secret  -o 'jsonpath={.data.token}' -n kube-system | base64 --decode

Login to web ui dashboard

Start the proxy: kubectl proxy

Login using the token from the previous command: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment