Skip to content

Instantly share code, notes, and snippets.

@katsew
Created November 4, 2018 07:51
Show Gist options
  • Save katsew/871f9c7ced3f508759f9b493dc9472a8 to your computer and use it in GitHub Desktop.
Save katsew/871f9c7ced3f508759f9b493dc9472a8 to your computer and use it in GitHub Desktop.
Create helm role
1. initialize
helm init --service-account helm
2. upgrade
helm init --service-account helm --upgrade
apiVersion: v1
kind: ServiceAccount
metadata:
name: helm
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: helm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: helm
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment