Skip to content

Instantly share code, notes, and snippets.

@avoidik
Last active February 4, 2020 20:47
Show Gist options
  • Select an option

  • Save avoidik/a968deaa22d7cffc1cd3672f8390255f to your computer and use it in GitHub Desktop.

Select an option

Save avoidik/a968deaa22d7cffc1cd3672f8390255f to your computer and use it in GitHub Desktop.
k8s on minikube with RBAC and monitoring
minikube start --extra-config='apiserver.authorization-mode=Node,RBAC' --memory 4096
kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller --upgrade
helm repo add coreos https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/
helm install coreos/prometheus-operator --name prometheus-operator --namespace monitoring
helm install coreos/kube-prometheus --name kube-prometheus --namespace monitoring
@javajon
Copy link
Copy Markdown

javajon commented Sep 12, 2018

There was a change in Minikube that is subtle. --extra-config=apiserver.authorization-mode=RBAC

Lowercase with a dash.

@javajon
Copy link
Copy Markdown

javajon commented Sep 12, 2018

@avoidik
Copy link
Copy Markdown
Author

avoidik commented Sep 22, 2018

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