DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
grafana-operator logoHELM

grafana-operator

Helm chart
iamguarded
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:

1
# This file has been modified by Chainguard, Inc.
2
#
3
# Copyright Chainguard, Inc. All Rights Reserved.
4
# Chainguard, Inc. modifications are subject to the license
5
# available at: https://www.chainguard.dev/legal/software-license-agreement
6
#
7
# Copyright Broadcom, Inc. All Rights Reserved.
8
# SPDX-License-Identifier: APACHE-2.0
9
10
## @section Global parameters
11
## Global Docker image parameters
12
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
14
##
15
16
## @param global.imageRegistry Global Docker image registry
17
## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18
## @param global.imagePullSecrets Global Docker registry secret names as an array
19
##
20
global:
21
imageRegistry: ""
22
useImageTags: false
23
## E.g.
24
## imagePullSecrets:
25
## - myRegistryKeySecretName
26
##
27
imagePullSecrets: []
28
## Security parameters
29
##
30
security:
31
## @param global.security.allowInsecureImages Allows skipping image verification
32
allowInsecureImages: false
33
## Compatibility adaptations for Kubernetes platforms
34
##
35
compatibility:
36
## Compatibility adaptations for Openshift
37
##
38
openshift:
39
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
40
##
41
adaptSecurityContext: disabled
42
org: ""
43
## @section Common parameters
44
##
45
46
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
47
##
48
kubeVersion: ""
49
## @param nameOverride String to partially override common.names.fullname template with a string (will prepend the release name)
50
##
51
nameOverride: ""
52
## @param fullnameOverride String to fully override common.names.fullname template with a string
53
##
54
fullnameOverride: ""
55
## @param namespaceOverride String to fully override common.names.namespace
56
##
57
namespaceOverride: ""
58
## @param extraDeploy Array of extra objects to deploy with the release
59
##
60
extraDeploy: []
61
## @param commonLabels Common Labels which are applied to every resource deployed
62
##
63
commonLabels: {}
64
## @param commonAnnotations Common Annotations which are applied to every ressource deployed
65
##
66
commonAnnotations: {}
67
## @param clusterDomain Kubernetes cluster domain name
68
##
69
clusterDomain: cluster.local
70
## @section Grafana Operator parameters
71
##
72
73
## This contains all configuration options for the Grafana Operator.
74
## Ref: https://grafana.github.io/grafana-operator/docs/installation/helm/
75
## Constants it is using for creating instances:
76
## Ref: https://github.com/grafana/grafana-operator/blob/master/controllers/config/operator_constants.go
77
##
78
operator:
79
## @param operator.enabled Enable the deployment of the Grafana Operator
80
##
81
enabled: true
82
## @param operator.command [array] Default container command (useful when using custom images)
83
##
84
command: []
85
## @param operator.args [array] Default container args (useful when using custom images)
86
##
87
args: []
88
## @param operator.schedulerName Alternative scheduler
89
##
90
schedulerName: ""
91
## @param operator.lifecycleHooks for the grafana-operator container to automate configuration before or after startup
92
##
93
lifecycleHooks: {}
94
## @param operator.replicaCount Number of grafana-operator Pod replicas
95
##
96
replicaCount: 1
97
## @param operator.customLivenessProbe [object] Override default liveness probe
98
##
99
customLivenessProbe: {}
100
## @param operator.customReadinessProbe [object] Override default readiness probe
101
##
102
customReadinessProbe: {}
103
## @param operator.customStartupProbe [object] Override default startup probe
104
##
105
customStartupProbe: {}
106
## @param operator.extraVolumes [array] Optionally specify extra list of additional volumes for Grafana Operator pods
107
##
108
extraVolumes: []
109
## @param operator.extraVolumeMounts [array] Optionally specify extra list of additional volumeMounts for Grafana Operator container(s)
110
##
111
extraVolumeMounts: []
112
## @param operator.initContainers [array] Add additional init containers to the Grafana Operator pods
113
## e.g:
114
## initContainers:
115
## - name: your-image-name
116
## image: your-image
117
## imagePullPolicy: Always
118
## ports:
119
## - name: portname
120
## containerPort: 1234
121
##
122
initContainers: []
123
## Pod Disruption Budget configuration
124
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
125
## @param operator.pdb.create Enable/disable a Pod Disruption Budget creation
126
## @param operator.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
127
## @param operator.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `operator.pdb.minAvailable` and `operator.pdb.maxUnavailable` are empty.
128
##
129
pdb:
130
create: true
131
minAvailable: ""
132
maxUnavailable: ""
133
## @param operator.sidecars [array] Add additional sidecar containers to the Grafana Operator pods
134
## e.g:
135
## sidecars:
136
## - name: your-image-name
137
## image: your-image
138
## imagePullPolicy: Always
139
## ports:
140
## - name: portname
141
## containerPort: 1234
142
##
143
sidecars: []
144
## @param operator.namespaceScope If the operator should run in namespace-scope mode or not,
145
## if true the operator will only be able to manage instances in the same namespace
146
##
147
namespaceScope: false
148
## @param operator.watchNamespace Override the namespace to watch
149
##
150
watchNamespace: ""
151
## @param operator.topologySpreadConstraints Topology Spread Constraints for pod assignment
152
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
153
## The value is evaluated as a template
154
##
155
topologySpreadConstraints: []
156
## @param operator.priorityClassName %%MAIN_CONTAINER_NAME%% pods' priorityClassName
157
##
158
priorityClassName: ""
159
## @param operator.terminationGracePeriodSeconds In seconds, time the given to the %%MAIN_CONTAINER_NAME%% pod needs to terminate gracefully
160
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
161
##
162
terminationGracePeriodSeconds: ""
163
## @param operator.updateStrategy.type Set up update strategy for Grafana Operator installation.
164
## Set to Recreate if you use persistent volume that cannot be mounted by more than one pods to make sure the pods is destroyed first.
165
## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
166
## Example:
167
## updateStrategy:
168
## type: RollingUpdate
169
## rollingUpdate:
170
## maxSurge: 25%
171
## maxUnavailable: 25%
172
##
173
updateStrategy:
174
type: Recreate
175
## @param operator.image.registry [default: REGISTRY_NAME] Grafana Operator image registry
176
## @param operator.image.repository [default: REPOSITORY_NAME/grafana-operator] Grafana Operator image name
177
## @skip operator.image.tag Grafana Operator image tag
178
## @param operator.image.digest Grafana Operator image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
179
## @param operator.image.pullPolicy Grafana Operator image pull policy
180
## @param operator.image.pullSecrets Grafana Operator image pull secrets
181
##
182
image:
183
registry: cgr.dev
184
repository: chainguard-private/grafana-operator-iamguarded
185
tag: 5.26.0
186
digest: sha256:7b7d4c8c51f636de99ebbec6e5e553d0e598ec701be0e421d817de4386a12968
187
## Specify a imagePullPolicy
188
## Ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
189
##
190
pullPolicy: IfNotPresent
191
## Optionally specify an array of imagePullSecrets.
192
## Secrets must be manually created in the namespace.
193
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
194
## e.g:
195
## pullSecrets:
196
## - myRegistryKeySecretName
197
##
198
pullSecrets: []
199
## @param operator.leaderElect Enables or disables the operator leader Election.
200
## @param operator.zapDevel Enable zap development mode (changes defaults to console encoder, debug log level, disables sampling and stacktrace from 'warning' level)
201
## @param operator.zapEncoder Zap log encoding ('json' or 'console')
202
## @param operator.zapLevel Zap log level (one of 'debug', 'info', 'error' or any integer value > 0) (default info)
203
## @param operator.zapSample Enable zap log sampling. Sampling will be disabled for integer log levels > 1
204
## @param operator.zapStacktraceLevel Set the minimum log level that triggers stacktrace generation (default error)
205
## @param operator.zapTimeEncoding Sets the zap time format ('epoch', 'millis', 'nano', or 'iso8601') (default )
206
## @param operator.extraArgs Extra arguments for the grafana operator (Evaluated as a template)
207
##
208
## This enabled leader election for the operator and creates a Role for the leader election.
209
##
210
leaderElect: true
211
## If one of these options is set a clusterRole and clusterRoleBinding is created to
212
## ensure that the operator is able to get data from other namespaces.
213
## The options are mutually exclusive.
214
##
215
zapDevel: false
216
zapEncoder: ""
217
zapLevel: ""
218
zapSample: ""
219
zapStacktraceLevel: ""
220
zapTimeEncoding: ""
221
extraArgs: []
222
## @param operator.rbac.create Create specifies whether to install and use RBAC rules
223
##
224
rbac:
225
create: true
226
serviceAccount:
227
## @param operator.serviceAccount.create Specifies whether a service account should be created
228
##
229
create: true
230
## @param operator.serviceAccount.name The name of the service account to use. If not set and create is true, a name is generated using the fullname template
231
##
232
name: ""
233
## @param operator.serviceAccount.annotations Add annotations
234
##
235
annotations: {}
236
## @param operator.serviceAccount.automountServiceAccountToken Automount API credentials for a service account.
237
##
238
automountServiceAccountToken: false
239
## Pod securityContext
240
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
241
## @param operator.podSecurityContext.enabled Enable pods security context
242
## @param operator.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
243
## @param operator.podSecurityContext.sysctls Set kernel settings using the sysctl interface
244
## @param operator.podSecurityContext.supplementalGroups Set filesystem extra groups
245
## @param operator.podSecurityContext.fsGroup Group ID for the pods
246
##
247
podSecurityContext:
248
enabled: true
249
fsGroupChangePolicy: Always
250
sysctls: []
251
supplementalGroups: []
252
fsGroup: 1001
253
## Container securityContext
254
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
255
## @param operator.containerSecurityContext.enabled Enabled containers' Security Context
256
## @param operator.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
257
## @param operator.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
258
## @param operator.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
259
## @param operator.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
260
## @param operator.containerSecurityContext.privileged Set container's Security Context privileged
261
## @param operator.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
262
## @param operator.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
263
## @param operator.containerSecurityContext.capabilities.drop List of capabilities to be dropped
264
## @param operator.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
265
##
266
containerSecurityContext:
267
enabled: true
268
seLinuxOptions: {}
269
runAsUser: 1001
270
runAsGroup: 1001
271
runAsNonRoot: true
272
privileged: false
273
readOnlyRootFilesystem: true
274
allowPrivilegeEscalation: false
275
capabilities:
276
drop: ["ALL"]
277
seccompProfile:
278
type: "RuntimeDefault"
279
## @param operator.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if operator.resources is set (operator.resources is recommended for production).
280
##
281
resourcesPreset: "nano"
282
## @param operator.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
283
## Example:
284
## resources:
285
## requests:
286
## cpu: 2
287
## memory: 512Mi
288
## limits:
289
## cpu: 3
290
## memory: 1024Mi
291
## We usually recommend not to specify default resources and to leave this as a conscious
292
## choice for the user. This also increases chances charts run on environments with little
293
## resources, such as Minikube. If you do want to specify resources, uncomment the following
294
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
295
## limits:
296
## cpu: 100m
297
## memory: 128Mi
298
## requests:
299
## cpu: 100m
300
## memory: 128Mi
301
##
302
resources: {}
303
## @param operator.containerPorts.metrics Grafana Operator container port (used for metrics)
304
## @param operator.containerPorts.health Grafana Operator container port (used for health probes)
305
##
306
containerPorts:
307
metrics: 8080
308
health: 8081
309
## @param operator.automountServiceAccountToken Mount Service Account token in pod
310
##
311
automountServiceAccountToken: true
312
## @param operator.hostAliases Add deployment host aliases
313
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
314
##
315
hostAliases: []
316
## @param operator.extraEnvVars Array with extra environment variables to add to RabbitMQ Cluster Operator nodes
317
## e.g:
318
## extraEnvVars:
319
## - name: FOO
320
## value: "bar"
321
##
322
extraEnvVars: []
323
## @param operator.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for RabbitMQ Cluster Operator nodes
324
##
325
extraEnvVarsCM: ""
326
## @param operator.extraEnvVarsSecret Name of existing Secret containing extra env vars for RabbitMQ Cluster Operator nodes
327
##
328
extraEnvVarsSecret: ""
329
## @param operator.podAntiAffinityPreset Pod anti-affinity preset. Allowed values: `soft` or `hard`
330
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
331
##
332
podAntiAffinityPreset: soft
333
## Node affinity preset
334
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
335
##
336
nodeAffinityPreset:
337
## @param operator.nodeAffinityPreset.type Node affinity preset type. Allowed values: `soft` or `hard`
338
##
339
type: ""
340
## @param operator.nodeAffinityPreset.key Set nodeAffinity preset key
341
## E.g.
342
## key: "kubernetes.io/e2e-az-name"
343
##
344
key: ""
345
## @param operator.nodeAffinityPreset.values Set nodeAffinity preset values
346
## E.g.
347
## values:
348
## - e2e-az1
349
## - e2e-az2
350
##
351
values: []
352
## @param operator.podAnnotations Pod annotations
353
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
354
##
355
podAnnotations: {}
356
## @param operator.podLabels Additional pod labels
357
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
358
##
359
podLabels: {}
360
## @param operator.nodeSelector Node labels for pod assignment
361
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
362
##
363
nodeSelector: {}
364
## @param operator.tolerations Tolerations for controller pod assignment
365
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
366
##
367
tolerations: []
368
## @param operator.affinity Affinity for controller pod assignment
369
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
370
##
371
affinity: {}
372
prometheus:
373
## Prometheus Operator service monitors
374
##
375
serviceMonitor:
376
## @param operator.prometheus.serviceMonitor.enabled Specify if a ServiceMonitor will be deployed for prometheus-operator
377
##
378
enabled: false
379
## @param operator.prometheus.serviceMonitor.namespace Namespace for the ServiceMonitor Resource (defaults to the Release Namespace)
380
##
381
namespace: ""
382
## @param operator.prometheus.serviceMonitor.jobLabel Specify the jobLabel to use for the prometheus-operator
383
##
384
jobLabel: app.kubernetes.io/name
385
## @param operator.prometheus.serviceMonitor.interval Scrape interval. If not set, the Prometheus default scrape interval is used
386
##
387
interval: ""
388
## @param operator.prometheus.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
389
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
390
##
391
scrapeTimeout: ""
392
## @param operator.prometheus.serviceMonitor.metricRelabelings Specify additional relabeling of metrics
393
##
394
metricRelabelings: []
395
## @param operator.prometheus.serviceMonitor.relabelings Specify general relabeling
396
##
397
relabelings: []
398
## @param operator.prometheus.serviceMonitor.selector ServiceMonitor selector labels
399
##
400
## selector:
401
## prometheus: my-prometheus
402
##
403
selector: {}
404
## @param operator.prometheus.serviceMonitor.labels Extra labels for the ServiceMonitor
405
##
406
labels: {}
407
## @param operator.prometheus.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
408
##
409
honorLabels: false
410
## Liveness probe value
411
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
412
## @param operator.livenessProbe.enabled Enable livenessProbe
413
## @param operator.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
414
## @param operator.livenessProbe.periodSeconds Period seconds for livenessProbe
415
## @param operator.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
416
## @param operator.livenessProbe.failureThreshold Failure threshold for livenessProbe
417
## @param operator.livenessProbe.successThreshold Success threshold for livenessProbe
418
##
419
livenessProbe:
420
enabled: true
421
failureThreshold: 3
422
initialDelaySeconds: 10
423
periodSeconds: 10
424
successThreshold: 1
425
timeoutSeconds: 1
426
## Readiness probe values
427
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
428
## @param operator.readinessProbe.enabled Enable readinessProbe
429
## @param operator.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
430
## @param operator.readinessProbe.periodSeconds Period seconds for readinessProbe
431
## @param operator.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
432
## @param operator.readinessProbe.failureThreshold Failure threshold for readinessProbe
433
## @param operator.readinessProbe.successThreshold Success threshold for readinessProbe
434
##
435
readinessProbe:
436
enabled: true
437
failureThreshold: 3
438
initialDelaySeconds: 10
439
periodSeconds: 10
440
successThreshold: 1
441
timeoutSeconds: 1
442
## Startup probe values
443
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-startup-probes/#configure-probes
444
## @param operator.startupProbe.enabled Enable startupProbe
445
## @param operator.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
446
## @param operator.startupProbe.periodSeconds Period seconds for startupProbe
447
## @param operator.startupProbe.timeoutSeconds Timeout seconds for startupProbe
448
## @param operator.startupProbe.failureThreshold Failure threshold for startupProbe
449
## @param operator.startupProbe.successThreshold Success threshold for startupProbe
450
##
451
startupProbe:
452
enabled: true
453
failureThreshold: 3
454
initialDelaySeconds: 10
455
periodSeconds: 10
456
successThreshold: 1
457
timeoutSeconds: 1
458
## Network Policies
459
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
460
##
461
networkPolicy:
462
## @param operator.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
463
##
464
enabled: true
465
## @param operator.networkPolicy.allowExternal Don't require server label for connections
466
## The Policy model to apply. When set to false, only pods with the correct
467
## server label will have network access to the ports server is listening
468
## on. When true, server will accept connections from any source
469
## (with the correct destination port).
470
##
471
allowExternal: true
472
## @param operator.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
473
##
474
allowExternalEgress: true
475
## @param operator.networkPolicy.kubeAPIServerPorts [array] List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security)
476
##
477
kubeAPIServerPorts: [443, 6443, 8443]
478
## @param operator.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
479
## e.g:
480
## extraIngress:
481
## - ports:
482
## - port: 1234
483
## from:
484
## - podSelector:
485
## - matchLabels:
486
## - role: frontend
487
## - podSelector:
488
## - matchExpressions:
489
## - key: role
490
## operator: In
491
## values:
492
## - frontend
493
extraIngress: []
494
## @param operator.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
495
## e.g:
496
## extraEgress:
497
## - ports:
498
## - port: 1234
499
## to:
500
## - podSelector:
501
## - matchLabels:
502
## - role: frontend
503
## - podSelector:
504
## - matchExpressions:
505
## - key: role
506
## operator: In
507
## values:
508
## - frontend
509
##
510
extraEgress: []
511
## @param operator.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
512
## @param operator.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
513
##
514
ingressNSMatchLabels: {}
515
ingressNSPodMatchLabels: {}
516
## @section Grafana parameters
517
##
518
grafana:
519
## @param grafana.enabled Enabled the deployment of the Grafana CRD object into the cluster
520
##
521
enabled: true
522
## @param grafana.image.registry [default: REGISTRY_NAME] Grafana image registry
523
## @param grafana.image.repository [default: REPOSITORY_NAME/grafana] Grafana image name
524
## @skip grafana.image.tag Grafana image tag
525
## @param grafana.image.digest Grafana image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
526
## @param grafana.image.pullPolicy Grafana image pull policy
527
## @param grafana.image.pullSecrets Grafana image pull secrets
528
##
529
image:
530
registry: cgr.dev
531
repository: chainguard-private/grafana-iamguarded
532
tag: 13.3.2
533
digest: sha256:e4df061920a07e34395c4de6d8c17daee5560a473ca83bd77f9dcb1f9bb24b0d
534
## Specify a imagePullPolicy
535
## Ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
536
##
537
pullPolicy: IfNotPresent
538
## Optionally specify an array of imagePullSecrets.
539
## Secrets must be manually created in the namespace.
540
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
541
## e.g:
542
## pullSecrets:
543
## - myRegistryKeySecretName
544
##
545
pullSecrets: []
546
## @param grafana.serviceAccount Additional service account configuration
547
## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-serviceaccount
548
## e.g:
549
## serviceAccount:
550
## annotations:
551
## iam.gke.io/gcp-service-account: "grafana@preprodz.iam.gserviceaccount.com"
552
##
553
serviceAccount: {}
554
## @param grafana.podLabels Additional pod labels to pods in the grafana deployment
555
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
556
##
557
podLabels: {}
558
## @param grafana.podAnnotations Additional pod annotations to pods in the grafana deployment
559
## Ref https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
560
##
561
podAnnotations: {}
562
## Pod securityContext
563
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
564
## @param grafana.podSecurityContext.enabled Enable pods security context
565
## @param grafana.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
566
## @param grafana.podSecurityContext.sysctls Set kernel settings using the sysctl interface
567
## @param grafana.podSecurityContext.supplementalGroups Set filesystem extra groups
568
## @param grafana.podSecurityContext.fsGroup Group ID for the pods
569
##
570
podSecurityContext:
571
enabled: true
572
fsGroupChangePolicy: Always
573
sysctls: []
574
supplementalGroups: []
575
fsGroup: 1001
576
## Container securityContext
577
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
578
## @param grafana.containerSecurityContext.enabled Enabled containers' Security Context
579
## @param grafana.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
580
## @param grafana.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
581
## @param grafana.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
582
## @param grafana.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
583
## @param grafana.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
584
## @param grafana.containerSecurityContext.privileged Set container's Security Context privileged
585
## @param grafana.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
586
## @param grafana.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
587
## @param grafana.containerSecurityContext.capabilities.drop List of capabilities to be dropped
588
## @param grafana.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
589
##
590
containerSecurityContext:
591
enabled: true
592
seLinuxOptions: {}
593
runAsUser: 1001
594
runAsGroup: 0
595
runAsNonRoot: true
596
privileged: false
597
readOnlyRootFilesystem: false
598
allowPrivilegeEscalation: false
599
capabilities:
600
drop: ["ALL"]
601
seccompProfile:
602
type: "RuntimeDefault"
603
## Grafana containers' resource requests and limits
604
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
605
## We usually recommend not to specify default resources and to leave this as a conscious
606
## choice for the user. This also increases chances charts run on environments with little
607
## resources, such as Minikube. If you do want to specify resources, uncomment the following
608
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
609
## @param grafana.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if grafana.resources is set (grafana.resources is recommended for production).
610
##
611
resourcesPreset: "none"
612
## @param grafana.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
613
## Example:
614
## resources:
615
## requests:
616
## cpu: 2
617
## memory: 512Mi
618
## limits:
619
## cpu: 3
620
## memory: 1024Mi
621
##
622
resources: {}
623
## @param grafana.replicaCount Specify the amount of replicas running
624
## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-deployment
625
## NOTE: Number of replicas. If more than one is selected, a shared database should be configured.
626
##
627
replicaCount: 1
628
## @param grafana.podAffinityPreset Pod affinity preset
629
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
630
## Allowed values: soft, hard
631
##
632
podAffinityPreset: ""
633
## @param grafana.podAntiAffinityPreset Pod anti-affinity preset
634
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
635
## Allowed values: soft, hard
636
##
637
podAntiAffinityPreset: soft
638
## Node affinity preset
639
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
640
## Allowed values: soft, hard
641
##
642
nodeAffinityPreset:
643
## @param grafana.nodeAffinityPreset.type Set nodeAffinity preset type
644
## Allowed values: soft, hard
645
##
646
type: ""
647
## @param grafana.nodeAffinityPreset.key Set nodeAffinity preset key
648
## E.g.
649
## key: "kubernetes.io/e2e-az-name"
650
##
651
key: ""
652
## @param grafana.nodeAffinityPreset.values Set nodeAffinity preset values
653
## E.g.
654
## values:
655
## - e2e-az1
656
## - e2e-az2
657
##
658
values: []
659
## @param grafana.affinity Affinity for controller pod assignment
660
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
661
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
662
##
663
affinity: {}
664
## @param grafana.nodeSelector Node labels for controller pod assignment
665
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
666
##
667
nodeSelector: {}
668
## @param grafana.tolerations Tolerations for controller pod assignment
669
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
670
##
671
tolerations: []
672
## Pod Disruption Budget configuration for the grafana instance
673
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
674
## @param grafana.pdb.create Enable/disable a Pod Disruption Budget creation
675
## @param grafana.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
676
## @param grafana.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `grafana.pdb.minAvailable` and `grafana.pdb.maxUnavailable` are empty.
677
##
678
pdb:
679
create: false
680
minAvailable: ""
681
maxUnavailable: ""
682
## @param grafana.extraEnvVars Array containing extra env vars to configure Grafana
683
## For example:
684
## extraEnvVars:
685
## - name: MY_ENV
686
## value: my-env-value
687
##
688
extraEnvVars: []
689
## @param grafana.envFrom Extra environment variable to pass to the running container
690
## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-deployment
691
## e.g:
692
## envFrom:
693
## - configMapRef:
694
## name: grafana-configmap
695
## - secretRef:
696
## name: grafana-secrets
697
##
698
envFrom: []
699
## The grafana-operator client-configuration for this grafana instance
700
## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-grafana-api-access
701
## @param grafana.client.timeout The timeout in seconds for the Grafana Rest API on that instance
702
##
703
client:
704
timeout: 5
705
## @param grafana.labels Add additional labels to the grafana deployment, service and ingress resources
706
##
707
labels: {}
708
## Configure the Service resource
709
## Ref: https://github.com/grafana-operator/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-service
710
##
711
service:
712
## @param grafana.service.type Kubernetes Service type
713
##
714
type: ClusterIP
715
## @param grafana.service.annotations Additional custom annotations for Grafana service
716
##
717
annotations: {}
718
## @param grafana.service.extraPorts Extra ports to expose in the Grafana service
719
## extraPorts:
720
## - name: grafana-proxy
721
## port: 9091
722
## protocol: TCP
723
## targetPort: grafana-http
724
extraPorts: []
725
##
726
## Configure the ingress resource that allows you to access the
727
## Grafana web. Set up the URL
728
## Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
729
## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-ingress-or-route
730
##
731
ingress:
732
## @param grafana.ingress.enabled If an ingress or OpenShift Route should be created
733
##
734
enabled: false
735
## @param grafana.ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
736
## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster.
737
## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
738
##
739
ingressClassName: ""
740
## @param grafana.ingress.host The host under which the grafana instance should be reachable. If empty the parameter will not be set.
741
##
742
host: grafana.local
743
## @param grafana.ingress.path The path for the ingress instance to forward to the grafana app
744
##
745
path: /
746
## @param grafana.ingress.pathType The pathType for the ingress instance to forward to the grafana app
747
##
748
pathType: ImplementationSpecific
749
## @param grafana.ingress.labels Additional Labels for the ingress resource
750
##
751
labels: {}
752
## @param grafana.ingress.annotations Additional Annotations for the ingress resource
753
## For a full list of possible ingress annotations, please see
754
## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
755
##
756
## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set
757
## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set
758
## annotations:
759
## kubernetes.io/ingress.class: nginx
760
##
761
annotations: {}
762
## @param grafana.ingress.tls This enables tls support for the ingress resource
763
##
764
tls: false
765
## @param grafana.ingress.tlsSecret The name for the secret to use for the tls termination
766
##
767
tlsSecret: grafana.local-tls
768
## Enable persistence using Persistent Volume Claims
769
## Ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
770
##
771
persistence:
772
## @param grafana.persistence.enabled Enable persistent storage for the grafana deployment
773
## NOTE: In order to avoid deployment failure due to multi-attach of the same volume,
774
## you might also want to set `grafana.updateStrategy` to Recreate.
775
## More information can be found here: https://github.com/grafana-operator/grafana-operator/issues/453
776
##
777
enabled: false
778
## @param grafana.persistence.storageClass Define the storageClass for the persistent storage if not defined default is used
779
## If defined, storageClassName: <storageClass>
780
## If set to "-", storageClassName: "", which disables dynamic provisioning
781
## If undefined (the default) or set to null, no storageClassName spec is
782
## set, choosing the default provisioner. (gp2 on AWS, standard on
783
## GKE, AWS & OpenStack)
784
##
785
storageClass: ""
786
## @param grafana.persistence.existingVolume Define the existingVolume for the persistent storage provisioned outside this chart
787
## https://github.com/grafana-operator/grafana-operator/blob/master/deploy/examppersistentvolume/Grafana-existingVolume.yaml
788
existingVolume: ""
789
## @param grafana.persistence.accessModes Define the accessModes for the persistent storage
790
##
791
accessModes:
792
- ReadWriteOnce
793
## @param grafana.persistence.annotations Add annotations to the persistent volume
794
##
795
annotations: {}
796
## @param grafana.persistence.size Define the size of the PersistentVolumeClaim to request for
797
##
798
size: 10Gi
799
## @param grafana.config [object] grafana.ini configuration for the instance for this to configure please look at upstream docs
800
## This is the configuration from the grafana pod itself. Every toml section is a root key
801
## Ref: https://grafana.com/docs/grafana/latest/administration/configuration/
802
##
803
config:
804
server:
805
root_url: |-
806
{{- if .Values.grafana.ingress.enabled }}
807
{{ if .Values.grafana.ingress.tls }}https{{ else }}http{{ end }}://{{ include "common.tplvalues.render" (dict "value" .Values.grafana.ingress.host "context" $) }}
808
{{- else }}
809
http://localhost:3000
810
{{- end }}
811
log:
812
mode: "console"
813
level: "warn"
814
database:
815
wal: "true"
816
analytics:
817
reporting_enabled: "false"
818
check_for_updates: "false"
819
security:
820
# ## Grafana Admin credentials, if omitted they will be admin:<random_pass>
821
# admin_user:
822
# admin_password:
823
disable_gravatar: "false"
824
# ## OIDC configuration (all auth sections should be under config, not security)
825
# ##
826
# auth:
827
# disable_login_form: "false"
828
# disable_signout_menu: "false"
829
# auth.generic_oauth:
830
# enabled: "true"
831
# client_id: grafana
832
# client_secret: a391df94-dd1f-46d6-b3ab-60e90f23e8a2
833
# scopes: profile email
834
# auth_url: https://keycloak.example.com/auth/realms/master/protocol/openid-connect/auth
835
# token_url: https://keycloak.example.com/auth/realms/master/protocol/openid-connect/token
836
# api_url: https://keycloak.example.com/auth/realms/master/protocol/openid-connect/userinfo
837
# ## Automatic role handling with OIDC
838
# ##
839
# # role_attribute_path: contains(groups[*], 'platform-readonly') && 'Viewer' || contains(groups[*], 'platform-admin') && 'Admin' || contains(groups[*], 'platform-emergency') && 'Admin' || contains(groups[*], 'customer-poweruser') && 'Admin' || contains(groups[*], 'customer-collaborator') && 'Editor' || contains(groups[*], 'customer-readonly') && 'Viewer'
840
# # allowed_domains: example.com
841
# allow_sign_up: "True"
842
## @param grafana.jsonnetLibrarySelector [object] Configuring the read for jsonnetLibraries to pull in.
843
## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#jsonnet-library-discovery
844
##
845
jsonnetLibrarySelector:
846
matchLabels:
847
app.kubernetes.io/instance: "{{ .Release.Name }}"
848
## Grafana containers' liveness probe
849
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
850
## @param grafana.livenessProbe.enabled Enable livenessProbe
851
## @param grafana.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
852
## @param grafana.livenessProbe.periodSeconds Period seconds for livenessProbe
853
## @param grafana.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
854
## @param grafana.livenessProbe.failureThreshold Failure threshold for livenessProbe
855
## @param grafana.livenessProbe.successThreshold Success threshold for livenessProbe
856
##
857
livenessProbe:
858
enabled: true
859
initialDelaySeconds: 120
860
periodSeconds: 10
861
timeoutSeconds: 5
862
failureThreshold: 6
863
successThreshold: 1
864
## Grafana containers' readiness probe
865
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
866
## @param grafana.readinessProbe.enabled Enable readinessProbe
867
## @param grafana.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
868
## @param grafana.readinessProbe.periodSeconds Period seconds for readinessProbe
869
## @param grafana.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
870
## @param grafana.readinessProbe.failureThreshold Failure threshold for readinessProbe
871
## @param grafana.readinessProbe.successThreshold Success threshold for readinessProbe
872
##
873
readinessProbe:
874
enabled: true
875
initialDelaySeconds: 30
876
periodSeconds: 10
877
timeoutSeconds: 5
878
failureThreshold: 6
879
successThreshold: 1
880
## @param grafana.updateStrategy Set up update strategy for Grafana installation.
881
## Set to Recreate if you use persistent volume that cannot be mounted by more than one pods to make sure the pods is destroyed first.
882
## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
883
## Example:
884
## updateStrategy:
885
## type: RollingUpdate
886
## rollingUpdate:
887
## maxSurge: 25%
888
## maxUnavailable: 25%
889
##
890
updateStrategy: {}
891
## @param grafana.extraVolumes Optionally specify extra list of additional volumes for the grafana pod(s)
892
##
893
extraVolumes: []
894
## @param grafana.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the grafana container
895
##
896
extraVolumeMounts: []
897
## @param grafana.secrets Optionally specify a list of secrets to be mounted to the grafana pod(s)
898
##
899
secrets: []
900
## @param grafana.sidecars Add additional sidecar containers to the grafana pod(s)
901
## e.g:
902
## sidecars:
903
## - name: your-image-name
904
## image: your-image
905
## imagePullPolicy: Always
906
## ports:
907
## - name: portname
908
## containerPort: 1234
909
##
910
sidecars: []
911

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.