Skip to content

Instantly share code, notes, and snippets.

@wickedev
Last active September 24, 2019 11:12
Show Gist options
  • Save wickedev/2ec50ec5a5cf6be1966c823248e22177 to your computer and use it in GitHub Desktop.
Save wickedev/2ec50ec5a5cf6be1966c823248e22177 to your computer and use it in GitHub Desktop.
cat <<EOF | kubectl apply -f -
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 --wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment