Closed devurandom closed 2 years ago
Not only a service account exists already, but also the clusterrole and clusterrolebinding, which both trip up the Helm chart.
Using the following Helm chart values worked around the issue for me.
serviceAccount:
create: false
name: kube-state-metrics
rbac:
create: false
Apologies for the late note, we fixed this in 1.21.2-do.0 and 1.20.8-do.0, respectively. We do not delete the prior policy files automatically, however, so affected customers will need to delete/overwrite them on their own.
It appears that in a fresh DigitalOcean Kubernetes cluster the
kube-system
namespace already contains akube-state-metrics
serviceaccount:This is even though kube-state-metrics was not installed (and is not running in any namespace).
The cluster is at Kubernetes version
1.20.2-do.0
and was created using the Terraform DigitalOcean provider version2.7.0
.This trips the kube-state-metrics Helm chart version
2.13.2
, which also tries to create this serviceaccount:In a cluster created a long time ago with Kubernetes 1.18 and using a different version of the kube-state-metrics Helm chart this was not the case.
Is it possible to not create this serviceaccount automatically?