Skip to content

Instantly share code, notes, and snippets.

@27Bslash6
Last active April 5, 2018 02:49
Show Gist options
  • Save 27Bslash6/6a78eb96f7be7fe4b62ab1386716fecf to your computer and use it in GitHub Desktop.
Save 27Bslash6/6a78eb96f7be7fe4b62ab1386716fecf to your computer and use it in GitHub Desktop.
# Helm init
helm init
# Apply
kc apply -f https://gist.githubusercontent.com/27Bslash6/97d4b9ad55a87e8c9880d9f425b1d4ab/raw/0c25adf337fe181689dbf7d7be2741e00f06a8b1/helm-tiller-rbac.yaml
# Create cluster-admin cluster role binding for Helm in namespace kube-system
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
# Patch a running deployment to confirm access rights
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