cloudnative-pg / cloudnative-pg/cnpg-playground
grafana fails with rbac errors on startup
- Dominant language
- Shell
- Stars
- 69
- Forks
- 13
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 1
Description
steps to reproduce
```
scripts/setup.sh
monitoring/setup.sh
```
the grafana operator fails to start up the grafana pod itself, and the following error appears in the logs for the operator:
```
grafana-operator-controller-manager-85c8457c4b-rvgml 2026-01-05T19:14:08.081Z error Reconciler error {"controller": "grafana", "controllerGroup": "grafana.integreatly.org", "controllerKind": "Grafana", "Grafana": {"name":"grafana","namespace":"grafana"}, "namespace": "grafana", "name": "grafana", "reconcileID": "01afe12c-f995-45a0-92e2-1a1f4632f78a", "error": "updating grafana version in spec: grafanas.grafana.integreatly.org \"grafana\" is forbidden: User \"system:serviceaccount:grafana:grafana-operator-controller-manager\" cannot update resource \"grafanas\" in API group \"grafana.integreatly.org\" in the namespace \"grafana\""}
```
it looks like the out-of-the-box privilege configuration with the official grafana operator is missing the `update` verb. will write a quick PR to add a service account and role for grafana, similar to what is done in `monitoring/prometheus-instance/deploy_prometheus.yaml`
Contributor guide
Research direction
Run scripts/setup.sh and monitoring/setup.sh, then inspect monitoring/prometheus-instance/deploy_prometheus.yaml for the existing service account and role pattern. Use the Grafana operator logs as the starting point and verify that the Grafana pod starts without the reported RBAC error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grafana, kubernetes, shell
- Domain
- devops, infrastructure, observability
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100