Skip to content

Instantly share code, notes, and snippets.

@the-redback
Last active June 30, 2019 12:57
Show Gist options
  • Save the-redback/4183063375eb9c72b7acd93350fd6c5d to your computer and use it in GitHub Desktop.
Save the-redback/4183063375eb9c72b7acd93350fd6c5d 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"}}}}'
@the-redback
Copy link
Author

the-redback commented Jun 6, 2018

To run this script:

curl -fsSL https://gist.githubusercontent.com/the-redback/4183063375eb9c72b7acd93350fd6c5d/raw/53feb0d031ed7bd2ec52b584182ef4840152d51d/helm-with-rbac.sh \
    | bash

@the-redback
Copy link
Author

Solution of User "system:serviceaccount:kube-system:default" cannot get namespaces in the namespace "kube-system"

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