Skip to content

Instantly share code, notes, and snippets.

@sanjid133
Forked from the-redback/helm-with-rbac.sh
Created June 30, 2019 12:57
Show Gist options
  • Save sanjid133/a5389da3af6fc2e75710de8c39da5252 to your computer and use it in GitHub Desktop.
Save sanjid133/a5389da3af6fc2e75710de8c39da5252 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -exou pipefail
helm init || true
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"}}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment