Skip to content

Instantly share code, notes, and snippets.

@yingray
Last active July 31, 2019 05:41
Show Gist options
  • Save yingray/632241043486539bfc8cce3cf7f4bd1f to your computer and use it in GitHub Desktop.
Save yingray/632241043486539bfc8cce3cf7f4bd1f to your computer and use it in GitHub Desktop.
Quickly initialize Helm Tiller for GKE
# 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
repo=https://gist.githubusercontent.com/yingray/632241043486539bfc8cce3cf7f4bd1f/raw/9230696d9145ace8f6fa465c24e33776aec14422
kubectl apply -f $repo/helm-service-account.yaml
helm init --service-account tiller
@yingray
Copy link
Author

yingray commented Jul 31, 2019

Quickly initialize Helm Tiller for GKE:

curl -o- https://gist.githubusercontent.com/yingray/632241043486539bfc8cce3cf7f4bd1f/raw/62ff359193800f3fc4c6cad5890d4d062ff1f9ca/helm_init.sh  | bash

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