Configure Grafana
Grafana config
We offer the grafana.config
field where you can pass any Grafana configuration values you want.
The operator does not make any extra validation of your configuration, so just like a non-operator deployment of Grafana, your Grafana instance might be broken due to a configuration error.
To find all possible configuration options, look at the official documentation.
In case you need to specify top level options like app_mode
or instance_name
, specify them in the global
section like this:
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
name: grafana
labels:
dashboards: "grafana"
spec:
config:
global:
app_mode: "development"
---
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
name: grafana
labels:
dashboards: "grafana"
spec:
config:
security:
admin_user: root
admin_password: secret
# Optionally Configure the deployment spec
# Modifications to the securityContext and readinessProbe
deployment:
spec:
template:
spec:
containers:
- name: grafana
securityContext:
# Customize this in case your volume provider needs specific UIDs/GIDs
runAsUser: 1001
runAsGroup: 1001
runAsNonRoot: true
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
# If needed, the default securityContext can be disabled
disableDefaultSecurityContext: Pod # Pod, Container, All