Prometheus RBAC resources are not created
Summary
Currently, a Prometheus cluster and ServiceMonitors are automatically reconciled when the Prometheus Operator CRDs are detected. However, the service account for the Prometheus cluster is not created, so you get the following error:
create Pod prometheus-gitlab-prometheus-0 in StatefulSet prometheus-gitlab-prometheus failed error: pods "prometheus-gitlab-prometheus-0" is forbidden: error looking up service account gitlab-system/prometheus-k8s: serviceaccount "prometheus-k8s" not found
Probably should be a separate issue, but another problem is that it is not possible to disable the creation of the Prometheus CR which would be desired if users plan on using a separate Prometheus instance to monitor the GitLab operator-managed ServiceMonitors.
Steps to reproduce
- Install Prometheus Operator CRDs
- Install GitLab Operator
- Install GitLab CR
Configuration used
Any manifest will be affected.
Current behavior
No prometheus-k8s service account or associated RBAC resources are deployed.
Expected behavior
prometheus-k8s service account and associated RBAC resources are deployed.
Versions
All versions are affected.