Skip to content

Instantly share code, notes, and snippets.

@mgoodness
Created December 21, 2017 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgoodness/173ca772057ce5de5a527c0a83bf04fe to your computer and use it in GitHub Desktop.
Save mgoodness/173ca772057ce5de5a527c0a83bf04fe to your computer and use it in GitHub Desktop.
kubernetes-dashboard RBAC setup for K8s v1.8+ (tested on minikube) Raw
kubectl -n kube-system create sa kubernetes-dashboard
kubectl create clusterrolebinding kubernetes-dashboard --clusterrole cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
kubectl -n kube-system patch rc/kubernetes-dashboard -p '{"spec": {"template": {"spec": {"serviceAccountName": "kubernetes-dashboard"}}}}'
kubectl -n kube-system delete po -l app=kubernetes-dashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment