Last active
July 31, 2019 05:41
-
-
Save yingray/632241043486539bfc8cce3cf7f4bd1f to your computer and use it in GitHub Desktop.
Quickly initialize Helm Tiller for GKE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a service account for Helm and grant the cluster admin role. | |
# It is assumed that helm should be installed with this service account | |
# (tiller). | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: tiller | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: tiller | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: cluster-admin | |
subjects: | |
- kind: ServiceAccount | |
name: tiller | |
namespace: kube-system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo=https://gist.githubusercontent.com/yingray/632241043486539bfc8cce3cf7f4bd1f/raw/9230696d9145ace8f6fa465c24e33776aec14422 | |
kubectl apply -f $repo/helm-service-account.yaml | |
helm init --service-account tiller |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quickly initialize Helm Tiller for GKE:
curl -o- https://gist.githubusercontent.com/yingray/632241043486539bfc8cce3cf7f4bd1f/raw/62ff359193800f3fc4c6cad5890d4d062ff1f9ca/helm_init.sh | bash