Skip to content

Instantly share code, notes, and snippets.

@esomore
Last active January 26, 2020 18:23
Show Gist options
  • Save esomore/a36abcdd904605266d1018d813a45c43 to your computer and use it in GitHub Desktop.
Save esomore/a36abcdd904605266d1018d813a45c43 to your computer and use it in GitHub Desktop.
kubectl apply -f - <<EOF
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
EOF
helm init --service-account tiller --history-max 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment