What permissions does a CI service account need to run `helm upgrade --install`?
AdvancedConceptHelm 3 Architecture & Release Storage
Answer
Exactly what the rendered manifests need, plus access to the release storage:
get,list,create,update,patch,deleteon Secrets in the namespace (release records).- The same verbs on every kind the chart creates (Deployments, Services, Jobs, ConfigMaps, Ingresses, HPAs...).
watchandliston Pods, ReplicaSets and Jobs if you use--wait.- Cluster-scoped kinds (ClusterRole, CRD) only if the chart contains them.
A namespaced Role plus RoleBinding is usually enough for application charts, which is far tighter than Helm 2's cluster-admin Tiller.
More on Helm 3 Architecture & Release Storage
What is Helm, in one sentence?BeginnerDefine chart, release, revision and repository.BeginnerWhat was Tiller and why was it removed in Helm 3?BeginnerWhere does Helm 3 store release information?BeginnerWhat is inside a release Secret and how do you decode it?AdvancedWhat storage drivers does Helm support and how do you switch?Advanced