DirectorySecurity AdvisoriesPricing
Sign in
Directory
community-grafana logoHELM

community-grafana

Helm chart
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 versions
Default values
Chart metadata
Images

Tag:

1
global:
2
# -- Overrides the Docker registry globally for all images
3
imageRegistry: null
4
# To help compatibility with other charts which use global.imagePullSecrets.
5
# Allow either an array of {name: pullSecret} maps (k8s-style), or an array of strings (more common helm-style).
6
# Can be templated.
7
# global:
8
# imagePullSecrets:
9
# - name: pullSecret1
10
# - name: pullSecret2
11
# or
12
# global:
13
# imagePullSecrets:
14
# - pullSecret1
15
# - pullSecret2
16
imagePullSecrets: []
17
rbac:
18
create: true
19
## Use an existing ClusterRole/Role (depending on rbac.namespaced false/true)
20
# useExistingRole: name-of-some-role
21
# useExistingClusterRole: name-of-some-clusterRole
22
pspEnabled: false
23
pspUseAppArmor: false
24
namespaced: false
25
# Only has an effect if namespaced: true is set
26
namespaces: []
27
extraRoleRules: []
28
# - apiGroups: []
29
# resources: []
30
# verbs: []
31
extraClusterRoleRules: []
32
# - apiGroups: []
33
# resources: []
34
# verbs: []
35
serviceAccount:
36
create: true
37
name: ""
38
nameTest: ""
39
## ServiceAccount labels.
40
labels: {}
41
## Service account annotations. Can be templated.
42
# annotations:
43
# eks.amazonaws.com/role-arn: arn:aws:iam::123456789000:role/iam-role-name-here
44
45
## autoMount is deprecated in favor of automountServiceAccountToken
46
# autoMount: false
47
automountServiceAccountToken: false
48
replicas: 1
49
## Create a headless service for the deployment
50
headlessService: false
51
## Should the service account be auto mounted on the pod
52
automountServiceAccountToken: true
53
## Create HorizontalPodAutoscaler object for deployment type
54
#
55
autoscaling:
56
enabled: false
57
minReplicas: 1
58
maxReplicas: 5
59
targetCPU: "60"
60
targetMemory: ""
61
behavior: {}
62
## See `kubectl explain poddisruptionbudget.spec` for more
63
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
64
podDisruptionBudget: {}
65
# apiVersion: ""
66
# minAvailable: 1
67
# maxUnavailable: 1
68
# unhealthyPodEvictionPolicy: IfHealthyBudget
69
70
## See `kubectl explain deployment.spec.strategy` for more
71
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
72
deploymentStrategy:
73
type: RollingUpdate
74
## The maximum time in seconds for a Deployment to make progress before it is considered to be failed.
75
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#progress-deadline-seconds
76
progressDeadlineSeconds: null
77
readinessProbe:
78
httpGet:
79
path: /api/health
80
port: grafana
81
livenessProbe:
82
httpGet:
83
path: /api/health
84
port: grafana
85
initialDelaySeconds: 60
86
timeoutSeconds: 30
87
failureThreshold: 10
88
## Use an alternate scheduler, e.g. "stork".
89
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
90
##
91
# schedulerName: "default-scheduler"
92
image:
93
# -- The Docker registry
94
registry: cgr.dev
95
# -- Docker image repository
96
repository: scratch-images/test-tmp/grafana
97
# Overrides the Grafana image tag whose default is the chart appVersion
98
tag: v13.0.2-r2
99
sha: sha256:45b543d66d58a7fb9bd6fa808ba611d50d26182ec87ba361a2fdb7714ae525f3
100
pullPolicy: IfNotPresent
101
## Optionally specify an array of imagePullSecrets.
102
## Secrets must be manually created in the namespace.
103
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
104
## Can be templated.
105
##
106
pullSecrets: []
107
# - myRegistrKeySecretName
108
testFramework:
109
enabled: true
110
## The type of Helm hook used to run this test. Defaults to test.
111
## ref: https://helm.sh/docs/topics/charts_hooks/#the-available-hooks
112
##
113
# hookType: test
114
image:
115
# -- The Docker registry
116
registry: docker.io
117
repository: bats/bats
118
tag: "1.13.0"
119
imagePullPolicy: IfNotPresent
120
securityContext: {}
121
containerSecurityContext: {}
122
resources: {}
123
# limits:
124
# cpu: 100m
125
# memory: 128Mi
126
# requests:
127
# cpu: 100m
128
# memory: 128Mi
129
# dns configuration for pod
130
dnsPolicy: ~
131
dnsConfig: {}
132
# nameservers:
133
# - 8.8.8.8
134
# options:
135
# - name: ndots
136
# value: "2"
137
# - name: edns0
138
139
hostUsers: ~
140
securityContext:
141
runAsNonRoot: true
142
runAsUser: 472
143
runAsGroup: 472
144
fsGroup: 472
145
containerSecurityContext:
146
allowPrivilegeEscalation: false
147
privileged: false
148
capabilities:
149
drop:
150
- ALL
151
seccompProfile:
152
type: RuntimeDefault
153
# Enable creating the grafana configmap
154
createConfigmap: true
155
# Extra configmaps to mount in grafana pods
156
# Values are templated.
157
extraConfigmapMounts: []
158
# - name: certs-configmap
159
# mountPath: /etc/grafana/ssl/
160
# subPath: certificates.crt # (optional)
161
# configMap: certs-configmap
162
# readOnly: true
163
# optional: false
164
165
extraEmptyDirMounts: []
166
# - name: provisioning-notifiers
167
# mountPath: /etc/grafana/provisioning/notifiers
168
169
# Shadow `/usr/share/grafana/data/plugins-bundled` with an emptyDir so plugins
170
# listed under `plugins:` install cleanly into `/var/lib/grafana/plugins` instead
171
# of failing on the read-only bundled directory shipped in the Grafana image.
172
# Required for plugins moved out of core in Grafana 13 (e.g. `elasticsearch`,
173
# `cloudwatch`) when listed in `plugins:`. Side effect: any bundled plugin not
174
# explicitly listed in `plugins:` will not be available.
175
shadowBundledPlugins: false
176
# Apply extra labels to common labels.
177
extraLabels: {}
178
## Assign a PriorityClassName to pods if set
179
# priorityClassName:
180
downloadDashboardsImage:
181
# -- The Docker registry
182
registry: cgr.dev
183
repository: scratch-images/test-tmp/curl
184
tag: 8.20.0-r1
185
sha: sha256:888d941ac2f9eb5f04d002cefc7d0199eb775ce1db8e143b32db014c4379f9be
186
pullPolicy: IfNotPresent
187
downloadDashboards:
188
env: {}
189
envFromSecret: ""
190
resources: {}
191
securityContext:
192
allowPrivilegeEscalation: false
193
capabilities:
194
drop:
195
- ALL
196
seccompProfile:
197
type: RuntimeDefault
198
envValueFrom: {}
199
# ENV_NAME:
200
# configMapKeyRef:
201
# name: configmap-name
202
# key: value_key
203
## Pod Annotations
204
# podAnnotations: {}
205
206
## ConfigMap Annotations
207
# configMapAnnotations: {}
208
# argocd.argoproj.io/sync-options: Replace=true
209
210
## Pod Labels
211
# podLabels: {}
212
podPortName: grafana
213
gossipPortName: gossip
214
## Deployment annotations
215
# annotations: {}
216
217
## Expose the grafana service to be accessed from outside the cluster (LoadBalancer service).
218
## or access it from within the cluster (ClusterIP service). Set the service type and the port to serve it.
219
## ref: http://kubernetes.io/docs/user-guide/services/
220
##
221
service:
222
enabled: true
223
type: ClusterIP
224
# Set the ip family policy to configure dual-stack see [Configure dual-stack](https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services)
225
ipFamilyPolicy: ""
226
# Sets the families that should be supported and the order in which they should be applied to ClusterIP as well. Can be IPv4 and/or IPv6.
227
ipFamilies: []
228
loadBalancerIP: ""
229
loadBalancerClass: ""
230
loadBalancerSourceRanges: []
231
port: 80
232
targetPort: 3000
233
# targetPort: 4181 To be used with a proxy extraContainer
234
## Service annotations. Can be templated.
235
annotations: {}
236
labels: {}
237
portName: service
238
# Adds the appProtocol field to the service. This allows to work with istio protocol selection. Ex: "http" or "tcp"
239
appProtocol: ""
240
sessionAffinity: ""
241
# trafficDistribution allows specifying how traffic is distributed to Service endpoints.
242
# Valid values: "" (default - standard load balancing),"PreferSameZone" (K8s 1.34+), "PreferSameNode" (K8s 1.35+), "PreferClose" (deprecated, use PreferSameZone),
243
trafficDistribution: ""
244
serviceMonitor:
245
## If true, a ServiceMonitor CR is created for a prometheus operator
246
## https://github.com/coreos/prometheus-operator
247
##
248
enabled: false
249
path: /metrics
250
# namespace: monitoring (defaults to use the namespace this chart is deployed to)
251
labels: {}
252
# Set these to override the Prometheus global scrape interval/timeout.
253
# interval: 30s
254
# scrapeTimeout: 30s
255
scheme: http
256
tlsConfig: {}
257
relabelings: []
258
metricRelabelings: []
259
basicAuth: {}
260
targetLabels: []
261
extraExposePorts: []
262
# - name: keycloak
263
# port: 8080
264
# targetPort: 8080
265
266
# overrides pod.spec.hostAliases in the grafana deployment's pods
267
hostAliases: []
268
# - ip: "1.2.3.4"
269
# hostnames:
270
# - "my.host.com"
271
272
ingress:
273
enabled: false
274
# ingressClassName: nginx
275
# Values can be templated
276
annotations: {}
277
# kubernetes.io/ingress.class: nginx
278
# kubernetes.io/tls-acme: "true"
279
labels: {}
280
path: /
281
pathType: Prefix
282
hosts:
283
- chart-example.local
284
## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
285
extraPaths: []
286
# - path: /*
287
# pathType: Prefix
288
# backend:
289
# service:
290
# name: ssl-redirect
291
# port:
292
# name: use-annotation
293
294
tls: []
295
# - secretName: chart-example-tls
296
# hosts:
297
# - chart-example.local
298
# -- BETA: Configure the gateway routes for the chart here.
299
# More routes can be added by adding a dictionary key like the 'main' route.
300
# Be aware that this is an early beta of this feature,
301
# kube-prometheus-stack does not guarantee this works and is subject to change.
302
# Being BETA this can/will change in the future without notice, do not use unless you want to take that risk
303
# [[ref]](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io%2fv1alpha2)
304
route:
305
main:
306
# -- Enables or disables the route
307
enabled: false
308
# -- Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
309
apiVersion: gateway.networking.k8s.io/v1
310
# -- Set the route kind
311
# Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute
312
kind: HTTPRoute
313
annotations: {}
314
labels: {}
315
hostnames: []
316
# - my-filter.example.com
317
parentRefs: []
318
# - name: acme-gw
319
320
matches:
321
- path:
322
type: PathPrefix
323
value: /
324
## Timeouts define the timeouts that can be configured for an HTTP request.
325
## Ref. https://gateway-api.sigs.k8s.io/api-types/httproute/#timeouts-optional
326
timeouts: {}
327
# request: 10s
328
# backendRequest: 5s
329
330
## SessionPersistence defines and configures session persistence for the route rule.
331
## Ref. https://gateway-api.sigs.k8s.io/geps/gep-1619/
332
sessionPersistence: {}
333
# sessionName: grafana-session
334
# type: Cookie
335
# absoluteTimeout: 48h
336
# cookieConfig:
337
# lifetimeType: Permanent
338
339
## Filters define the filters that are applied to requests that match this rule.
340
filters: []
341
## Additional custom rules that can be added to the route
342
additionalRules: []
343
## httpsRedirect adds a filter for redirecting to https (HTTP 301 Moved Permanently).
344
## To redirect HTTP traffic to HTTPS, you need to have a Gateway with both HTTP and HTTPS listeners.
345
## Matches and filters do not take effect if enabled.
346
## Ref. https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/
347
httpsRedirect: false
348
resources: {}
349
# limits:
350
# cpu: 100m
351
# memory: 128Mi
352
# requests:
353
# cpu: 100m
354
# memory: 128Mi
355
356
## Node labels for pod assignment
357
## ref: https://kubernetes.io/docs/user-guide/node-selection/
358
#
359
nodeSelector: {}
360
## Tolerations for pod assignment
361
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
362
##
363
tolerations: []
364
## Affinity for pod assignment (evaluated as template)
365
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
366
##
367
affinity: {}
368
## Topology Spread Constraints
369
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
370
##
371
topologySpreadConstraints: []
372
## Additional init containers (evaluated as template)
373
## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
374
##
375
extraInitContainers: []
376
## Enable an Specify container in extraContainers. This is meant to allow adding an authentication proxy to a grafana pod
377
extraContainers: ""
378
# extraContainers: |
379
# - name: proxy
380
# image: quay.io/gambol99/keycloak-proxy:latest
381
# args:
382
# - -provider=github
383
# - -client-id=
384
# - -client-secret=
385
# - -github-org=<ORG_NAME>
386
# - -email-domain=*
387
# - -cookie-secret=
388
# - -http-address=http://0.0.0.0:4181
389
# - -upstream-url=http://127.0.0.1:3000
390
# ports:
391
# - name: proxy-web
392
# containerPort: 4181
393
394
## Volumes that can be used in init containers that will not be mounted to deployment pods
395
extraContainerVolumes: []
396
# - name: volume-from-secret
397
# secret:
398
# secretName: secret-to-mount
399
# - name: empty-dir-volume
400
# emptyDir: {}
401
402
## Enable persistence using Persistent Volume Claims
403
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
404
##
405
persistence:
406
type: pvc
407
enabled: false
408
# storageClassName: default
409
## (Optional) Use this to bind the claim to an existing PersistentVolume (PV) by name.
410
volumeName: ""
411
accessModes:
412
- ReadWriteOnce
413
size: 10Gi
414
# annotations: {}
415
finalizers:
416
- kubernetes.io/pvc-protection
417
# selectorLabels: {}
418
## Sub-directory of the PV to mount. Can be templated.
419
# subPath: ""
420
## Name of an existing PVC. Can be templated.
421
# existingClaim:
422
## Extra labels to apply to a PVC.
423
extraPvcLabels: {}
424
disableWarning: false
425
## If persistence is not enabled, this allows to mount the
426
## local storage in-memory to improve performance
427
##
428
inMemory:
429
enabled: false
430
## The maximum usage on memory medium EmptyDir would be
431
## the minimum value between the SizeLimit specified
432
## here and the sum of memory limits of all containers in a pod
433
##
434
# sizeLimit: 300Mi
435
## If 'lookupVolumeName' is set to true, Helm will attempt to retrieve
436
## the current value of 'spec.volumeName' and incorporate it into the template.
437
lookupVolumeName: true
438
initChownData:
439
## If false, data ownership will not be reset at startup
440
## This allows the grafana-server to be run with an arbitrary user
441
##
442
enabled: true
443
## initChownData container image
444
##
445
image:
446
# -- The Docker registry
447
registry: cgr.dev
448
repository: scratch-images/test-tmp/busybox
449
tag: glibc-1.37.0-r59
450
sha: sha256:3d75d364b9babfe8405009051d15fd6280b36bb65a6a7d5eed09ee70987116a7
451
pullPolicy: IfNotPresent
452
## initChownData resource requests and limits
453
## Ref: http://kubernetes.io/docs/user-guide/compute-resources/
454
##
455
resources: {}
456
# limits:
457
# cpu: 100m
458
# memory: 128Mi
459
# requests:
460
# cpu: 100m
461
# memory: 128Mi
462
securityContext:
463
readOnlyRootFilesystem: false
464
runAsNonRoot: false
465
runAsUser: 0
466
seccompProfile:
467
type: RuntimeDefault
468
capabilities:
469
add:
470
- CHOWN
471
- DAC_OVERRIDE
472
drop:
473
- ALL
474
# Administrator credentials when not using an existing secret (see below)
475
adminUser: admin
476
# adminPassword: strongpassword
477
478
# Use an existing secret for the admin user.
479
admin:
480
## Name of the secret. Can be templated.
481
existingSecret: ""
482
userKey: admin-user
483
passwordKey: admin-password
484
## Define command to be executed at startup by grafana container
485
## Needed if using `vault-env` to manage secrets (ref: https://banzaicloud.com/blog/inject-secrets-into-pods-vault/)
486
## Default is "run.sh" as defined in grafana's Dockerfile
487
# command:
488
# - "sh"
489
# - "/run.sh"
490
491
## Optionally define args if command is used
492
## Needed if using `hashicorp/envconsul` to manage secrets
493
## By default no arguments are set
494
# args:
495
# - "-secret"
496
# - "secret/grafana"
497
# - "./grafana"
498
499
## Extra environment variables that will be pass onto deployment pods
500
##
501
## to provide grafana with access to CloudWatch on AWS EKS:
502
## 1. create an iam role of type "Web identity" with provider oidc.eks.* (note the provider for later)
503
## 2. edit the "Trust relationships" of the role, add a line inside the StringEquals clause using the
504
## same oidc eks provider as noted before (same as the existing line)
505
## also, replace NAMESPACE and prometheus-operator-grafana with the service account namespace and name
506
##
507
## "oidc.eks.us-east-1.amazonaws.com/id/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:sub": "system:serviceaccount:NAMESPACE:prometheus-operator-grafana",
508
##
509
## 3. attach a policy to the role, you can use a built in policy called CloudWatchReadOnlyAccess
510
## 4. use the following env: (replace 123456789000 and iam-role-name-here with your aws account number and role name)
511
##
512
## env:
513
## AWS_ROLE_ARN: arn:aws:iam::123456789000:role/iam-role-name-here
514
## AWS_WEB_IDENTITY_TOKEN_FILE: /var/run/secrets/eks.amazonaws.com/serviceaccount/token
515
## AWS_REGION: us-east-1
516
##
517
## 5. uncomment the EKS section in extraSecretMounts: below
518
## 6. uncomment the annotation section in the serviceAccount: above
519
## make sure to replace arn:aws:iam::123456789000:role/iam-role-name-here with your role arn
520
env: {}
521
## "valueFrom" environment variable references that will be added to deployment pods. Name is templated.
522
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#envvarsource-v1-core
523
## Renders in container spec as:
524
## env:
525
## ...
526
## - name: <key>
527
## valueFrom:
528
## <value rendered as YAML>
529
envValueFrom: {}
530
# ENV_NAME:
531
# configMapKeyRef:
532
# name: configmap-name
533
# key: value_key
534
535
## The name of a secret in the same kubernetes namespace which contain values to be added to the environment
536
## This can be useful for auth tokens, etc. Value is templated.
537
envFromSecret: ""
538
## Sensible environment variables that will be rendered as new secret object
539
## This can be useful for auth tokens, etc.
540
## If the secret values contains "{{", they'll need to be properly escaped so that they are not interpreted by Helm
541
## ref: https://helm.sh/docs/howto/charts_tips_and_tricks/#using-the-tpl-function
542
envRenderSecret: {}
543
## The names of secrets in the same kubernetes namespace which contain values to be added to the environment
544
## Each entry should contain a name key, and can optionally specify whether the secret must be defined with an optional key.
545
## Name is templated.
546
envFromSecrets: []
547
## - name: secret-name
548
## prefix: prefix
549
## optional: true
550
551
## The names of configmaps in the same kubernetes namespace which contain values to be added to the environment
552
## Each entry should contain a name key, and can optionally specify whether the configmap must be defined with an optional key.
553
## Name is templated.
554
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#configmapenvsource-v1-core
555
envFromConfigMaps: []
556
## - name: configmap-name
557
## prefix: prefix
558
## optional: true
559
560
# Inject Kubernetes services as environment variables.
561
# See https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#environment-variables
562
enableServiceLinks: true
563
## Additional grafana server secret mounts
564
# Defines additional mounts with secrets. Secrets must be manually created in the namespace.
565
extraSecretMounts: []
566
# - name: secret-files
567
# mountPath: /etc/secrets
568
# secretName: grafana-secret-files
569
# readOnly: true
570
# optional: false
571
# subPath: ""
572
#
573
# for AWS EKS (cloudwatch) use the following (see also instruction in env: above)
574
# - name: aws-iam-token
575
# mountPath: /var/run/secrets/eks.amazonaws.com/serviceaccount
576
# readOnly: true
577
# projected:
578
# defaultMode: 420
579
# sources:
580
# - serviceAccountToken:
581
# audience: sts.amazonaws.com
582
# expirationSeconds: 86400
583
# path: token
584
#
585
# for CSI e.g. Azure Key Vault use the following
586
# - name: secrets-store-inline
587
# mountPath: /run/secrets/vault.azure.com
588
# readOnly: true
589
# csi:
590
# driver: secrets-store.csi.k8s.io
591
# readOnly: true
592
# volumeAttributes:
593
# secretProviderClass: "akv-grafana-spc"
594
# nodePublishSecretRef: # Only required when using service principal mode
595
# name: grafana-akv-creds # Only required when using service principal mode
596
597
## Additional grafana server volume mounts
598
# Defines additional volume mounts.
599
extraVolumeMounts: []
600
# - name: extra-volume-0
601
# mountPath: /mnt/volume0
602
# readOnly: true
603
# - name: extra-volume-1
604
# mountPath: /mnt/volume1
605
# readOnly: true
606
# - name: grafana-secrets
607
# mountPath: /mnt/volume2
608
609
## Additional Grafana server volumes
610
extraVolumes: []
611
# - name: extra-volume-0
612
# existingClaim: volume-claim
613
# - name: extra-volume-1
614
# hostPath:
615
# path: /usr/shared/
616
# type: ""
617
# - name: grafana-secrets
618
# csi:
619
# driver: secrets-store.csi.k8s.io
620
# readOnly: true
621
# volumeAttributes:
622
# secretProviderClass: "grafana-env-spc"
623
624
## Container Lifecycle Hooks. Execute a specific bash command or make an HTTP request
625
lifecycleHooks: {}
626
# postStart:
627
# exec:
628
# command: []
629
630
## Pass the plugins you want installed as a list.
631
##
632
plugins: []
633
# - digrich-bubblechart-panel
634
# - grafana-clock-panel
635
## You can also use other plugin download URL, as long as they are valid zip files,
636
## and specify the name of the plugin as prefix, with an version. Like this:
637
# - marcusolsson-json-datasource@1.3.24@https://grafana.com/api/plugins/marcusolsson-json-datasource/versions/1.3.24/download
638
639
## Configure grafana datasources
640
## ref: http://docs.grafana.org/administration/provisioning/#datasources
641
##
642
datasources: {}
643
# datasources.yaml:
644
# apiVersion: 1
645
# datasources:
646
# - name: Prometheus
647
# type: prometheus
648
# url: http://prometheus-prometheus-server
649
# access: proxy
650
# isDefault: true
651
# - name: CloudWatch
652
# type: cloudwatch
653
# access: proxy
654
# uid: cloudwatch
655
# editable: false
656
# jsonData:
657
# authType: default
658
# defaultRegion: us-east-1
659
# deleteDatasources: []
660
# - name: Prometheus
661
662
## Configure grafana alerting (can be templated)
663
## ref: https://docs.grafana.com/alerting/set-up/provision-alerting-resources/file-provisioning/
664
##
665
alerting: {}
666
# policies.yaml:
667
# apiVersion: 1
668
# policies:
669
# - orgId: 1
670
# receiver: first_uid
671
#
672
# rules.yaml:
673
# apiVersion: 1
674
# groups:
675
# - orgId: 1
676
# name: '{{ .Chart.Name }}_my_rule_group'
677
# folder: my_first_folder
678
# interval: 60s
679
# rules:
680
# - uid: my_id_1
681
# title: my_first_rule
682
# condition: A
683
# data:
684
# - refId: A
685
# datasourceUid: '-100'
686
# model:
687
# conditions:
688
# - evaluator:
689
# params:
690
# - 3
691
# type: gt
692
# operator:
693
# type: and
694
# query:
695
# params:
696
# - A
697
# reducer:
698
# type: last
699
# type: query
700
# datasource:
701
# type: __expr__
702
# uid: '-100'
703
# expression: 1==0
704
# intervalMs: 1000
705
# maxDataPoints: 43200
706
# refId: A
707
# type: math
708
# dashboardUid: my_dashboard
709
# panelId: 123
710
# noDataState: Alerting
711
# for: 60s
712
# annotations:
713
# some_key: some_value
714
# labels:
715
# team: sre_team_1
716
#
717
# contactpoints.yaml:
718
# secret:
719
# apiVersion: 1
720
# contactPoints:
721
# - orgId: 1
722
# name: cp_1
723
# receivers:
724
# - uid: first_uid
725
# type: pagerduty
726
# settings:
727
# integrationKey: XXX
728
# severity: critical
729
# class: ping failure
730
# component: Grafana
731
# group: app-stack
732
# summary: |
733
# {{ `{{ include "default.message" . }}` }}
734
#
735
# templates.yaml:
736
# apiVersion: 1
737
# templates:
738
# - orgId: 1
739
# name: my_first_template
740
# template: |
741
# {{ `
742
# {{ define "my_first_template" }}
743
# Custom notification message
744
# {{ end }}
745
# ` }}
746
#
747
# mutetimes.yaml
748
# apiVersion: 1
749
# muteTimes:
750
# - orgId: 1
751
# name: mti_1
752
# # refer to https://prometheus.io/docs/alerting/latest/configuration/#time_interval-0
753
# time_intervals: {}
754
755
## Configure notifiers
756
## ref: http://docs.grafana.org/administration/provisioning/#alert-notification-channels
757
##
758
notifiers: {}
759
# notifiers.yaml:
760
# notifiers:
761
# - name: email-notifier
762
# type: email
763
# uid: email1
764
# # either:
765
# org_id: 1
766
# # or
767
# org_name: Main Org.
768
# is_default: true
769
# settings:
770
# addresses: an_email_address@example.com
771
# delete_notifiers:
772
773
## Configure grafana dashboard providers
774
## ref: http://docs.grafana.org/administration/provisioning/#dashboards
775
##
776
## `path` must be /var/lib/grafana/dashboards/<provider_name>
777
##
778
dashboardProviders: {}
779
# dashboardproviders.yaml:
780
# apiVersion: 1
781
# providers:
782
# - name: 'default'
783
# orgId: 1
784
# folder: ''
785
# type: file
786
# disableDeletion: false
787
# editable: true
788
# options:
789
# path: /var/lib/grafana/dashboards/default
790
791
## Configure how curl fetches remote dashboards. The beginning dash is required.
792
## NOTE: This sets the default short flags for all dashboards, but these
793
## defaults can be overridden individually for each dashboard by setting
794
## curlOptions. See the example dashboards section below.
795
##
796
## -s - silent mode
797
## -k - allow insecure (eg: non-TLS) connections
798
## -f - fail fast
799
## See the curl documentation for additional options
800
##
801
defaultCurlOptions: "-skf"
802
## Configure grafana dashboard to import
803
## NOTE: To use dashboards you must also enable/configure dashboardProviders
804
## ref: https://grafana.com/dashboards
805
##
806
## dashboards per provider, use provider name as key.
807
## For dashboards downloaded via gnetId or url, the optional "title" key overrides
808
## the dashboard title in the downloaded JSON so the UI displays your custom title.
809
##
810
dashboards: {}
811
# default:
812
# some-dashboard:
813
# json: |
814
# $RAW_JSON
815
# custom-dashboard:
816
# file: dashboards/custom-dashboard.json
817
# prometheus-stats:
818
# title: My Custom Dashboard Title # optional; overrides the dashboard title in the downloaded JSON
819
# gnetId: 2
820
# revision: 2
821
# datasource: Prometheus
822
# local-dashboard:
823
# url: https://example.com/repository/test.json
824
# curlOptions: "-sLf"
825
# token: ''
826
# local-dashboard-base64:
827
# url: https://example.com/repository/test-b64.json
828
# token: ''
829
# b64content: true
830
# local-dashboard-gitlab:
831
# url: https://example.com/repository/test-gitlab.json
832
# gitlabToken: ''
833
# local-dashboard-bitbucket:
834
# url: https://example.com/repository/test-bitbucket.json
835
# bearerToken: ''
836
# local-dashboard-azure:
837
# url: https://example.com/repository/test-azure.json
838
# basic: ''
839
# acceptHeader: '*/*'
840
841
## Reference to external ConfigMap per provider. Use provider name as key and ConfigMap name as value.
842
## A provider dashboards must be defined either by external ConfigMaps or in values.yaml, not in both.
843
## ConfigMap data example:
844
##
845
## data:
846
## example-dashboard.json: |
847
## RAW_JSON
848
##
849
dashboardsConfigMaps: {}
850
# default: ""
851
852
## Grafana's primary configuration
853
## NOTE: values in map will be converted to ini format
854
## ref: http://docs.grafana.org/installation/configuration/
855
##
856
grafana.ini:
857
paths:
858
data: /var/lib/grafana/
859
logs: /var/log/grafana
860
plugins: /var/lib/grafana/plugins
861
provisioning: /etc/grafana/provisioning
862
analytics:
863
check_for_updates: true
864
log:
865
mode: console
866
server:
867
domain: "{{ if (and .Values.ingress.enabled .Values.ingress.hosts) }}{{ tpl (.Values.ingress.hosts | first) . }}{{ else if (and .Values.route.main.enabled .Values.route.main.hostnames) }}{{ tpl (.Values.route.main.hostnames | first) . }}{{ else }}''{{ end }}"
868
unified_storage:
869
index_path: /var/lib/grafana-search/bleve
870
## grafana Authentication can be enabled with the following values on grafana.ini
871
# server:
872
# The full public facing url you use in browser, used for redirects and emails
873
# root_url:
874
# https://grafana.com/docs/grafana/latest/auth/github/#enable-github-in-grafana
875
# auth.github:
876
# enabled: false
877
# allow_sign_up: false
878
# scopes: user:email,read:org
879
# auth_url: https://github.com/login/oauth/authorize
880
# token_url: https://github.com/login/oauth/access_token
881
# api_url: https://api.github.com/user
882
# team_ids:
883
# allowed_organizations:
884
# client_id:
885
# client_secret:
886
## LDAP Authentication can be enabled with the following values on grafana.ini
887
## NOTE: Grafana will fail to start if the value for ldap.toml is invalid
888
# auth.ldap:
889
# enabled: true
890
# allow_sign_up: true
891
# config_file: /etc/grafana/ldap.toml
892
## Grafana's alerting configuration
893
# unified_alerting:
894
# enabled: true
895
# rule_version_record_limit: "5"
896
897
## Grafana's LDAP configuration
898
## Templated by the template in _helpers.tpl
899
## NOTE: To enable the grafana.ini must be configured with auth.ldap.enabled
900
## ref: http://docs.grafana.org/installation/configuration/#auth-ldap
901
## ref: http://docs.grafana.org/installation/ldap/#configuration
902
ldap:
903
enabled: false
904
# `existingSecret` is a reference to an existing secret containing the ldap configuration
905
# for Grafana in a key `ldap-toml`.
906
existingSecret: ""
907
# `config` is the content of `ldap.toml` that will be stored in the created secret
908
config: ""
909
# config: |-
910
# verbose_logging = true
911
# [[servers]]
912
# host = "my-ldap-server"
913
# port = 636
914
# use_ssl = true
915
# start_tls = false
916
# ssl_skip_verify = false
917
# bind_dn = "uid=%s,ou=users,dc=myorg,dc=com"
918
919
# When process namespace sharing is enabled, processes in a container are visible to all other containers in the same pod
920
# This parameter is added because the ldap reload api is not working https://grafana.com/docs/grafana/latest/developers/http_api/admin/#reload-ldap-configuration
921
# To allow an extraContainer to restart the Grafana container
922
shareProcessNamespace: false
923
## Grafana's SMTP configuration
924
## NOTE: To enable, grafana.ini must be configured with smtp.enabled
925
## ref: http://docs.grafana.org/installation/configuration/#smtp
926
smtp:
927
# `existingSecret` is a reference to an existing secret containing the smtp configuration
928
# for Grafana.
929
existingSecret: ""
930
userKey: "user"
931
passwordKey: "password"
932
## Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders
933
## Requires at least Grafana 5 to work and can't be used together with parameters dashboardProviders, datasources and dashboards
934
sidecar:
935
image:
936
# -- The Docker registry
937
registry: cgr.dev
938
repository: scratch-images/test-tmp/k8s-sidecar
939
tag: 2.7.3-r2
940
sha: sha256:81d3b67647dbc60d9d4341d5cde3bbde4097f768b075793f45afebf9c776103d
941
imagePullPolicy: IfNotPresent
942
resources: {}
943
# limits:
944
# cpu: 100m
945
# memory: 100Mi
946
# requests:
947
# cpu: 50m
948
# memory: 50Mi
949
securityContext:
950
allowPrivilegeEscalation: false
951
capabilities:
952
drop:
953
- ALL
954
seccompProfile:
955
type: RuntimeDefault
956
# skipTlsVerify Set to true to skip tls verification for kube api calls
957
# skipTlsVerify: true
958
enableUniqueFilenames: false
959
readinessProbe: {}
960
livenessProbe: {}
961
# Log level default for all sidecars. Can be one of: DEBUG, INFO, WARN, ERROR, CRITICAL. Defaults to INFO
962
# logLevel: INFO
963
alerts:
964
enabled: false
965
# Additional environment variables for the alerts sidecar
966
env: {}
967
## "valueFrom" environment variable references that will be added to deployment pods. Name is templated.
968
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#envvarsource-v1-core
969
## Renders in container spec as:
970
## env:
971
## ...
972
## - name: <key>
973
## valueFrom:
974
## <value rendered as YAML>
975
envValueFrom: {}
976
# ENV_NAME:
977
# configMapKeyRef:
978
# name: configmap-name
979
# key: value_key
980
# Do not reprocess already processed unchanged resources on k8s API reconnect.
981
# ignoreAlreadyProcessed: true
982
# label that the configmaps with alert are marked with (can be templated)
983
label: grafana_alert
984
# value of label that the configmaps with alert are set to (can be templated)
985
labelValue: ""
986
# Log level. Can be one of: DEBUG, INFO, WARN, ERROR, CRITICAL.
987
# logLevel: INFO
988
# If specified, the sidecar will search for alert config-maps inside this namespace.
989
# Otherwise the namespace in which the sidecar is running will be used.
990
# It's also possible to specify ALL to search in all namespaces
991
searchNamespace: null
992
# Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds.
993
watchMethod: WATCH
994
# search in configmap, secret or both
995
resource: both
996
#
997
# resourceName: comma separated list of resource names to be fetched/checked by this sidecar.
998
# per default all resources of the type defined in {{ .Values.sidecar.alerts.resource }} will be checked.
999
# This e.g. allows stricter RBAC rules which are limited to the resources meant for the sidecars.
1000
# resourceName: "secret/alerts-1,configmap/alerts-0"
1001
resourceName: ""
1002
#
1003
# watchServerTimeout: request to the server, asking it to cleanly close the connection after that.
1004
# defaults to 60sec; much higher values like 3600 seconds (1h) are feasible for non-Azure K8S
1005
# watchServerTimeout: 3600
1006
#
1007
# watchClientTimeout: is a client-side timeout, configuring your local socket.
1008
# If you have a network outage dropping all packets with no RST/FIN,
1009
# this is how long your client waits before realizing & dropping the connection.
1010
# defaults to 66sec (sic!)
1011
# watchClientTimeout: 60
1012
#
1013
# maxTotalRetries: Total number of retries to allow for any http request.
1014
# Takes precedence over other counts. Applies to all requests to reloadURL and k8s api requests.
1015
# Set to 0 to fail on the first retry.
1016
# maxTotalRetries: 5
1017
#
1018
# maxConnectRetries: How many connection-related errors to retry on for any http request.
1019
# These are errors raised before the request is sent to the remote server, which we assume has not triggered the server to process the request.
1020
# Applies to all requests to reloadURL and k8s api requests.
1021
# Set to 0 to fail on the first retry of this type.
1022
# maxConnectRetries: 10
1023
#
1024
# maxReadRetries: How many times to retry on read errors for any http request
1025
# These errors are raised after the request was sent to the server, so the request may have side-effects.
1026
# Applies to all requests to reloadURL and k8s api requests.
1027
# Set to 0 to fail on the first retry of this type.
1028
# maxReadRetries: 5
1029
#
1030
# Endpoint to send request to reload alerts
1031
reloadURL: "http://localhost:3000/api/admin/provisioning/alerting/reload"
1032
# Absolute path to a script to execute after a configmap got reloaded.
1033
# It runs before calls to REQ_URI. If the file is not executable it will be passed to sh.
1034
# Otherwise, it's executed as is. Shebangs known to work are #!/bin/sh and #!/usr/bin/env python
1035
script: null
1036
skipReload: false
1037
# This is needed if skipReload is true, to load any alerts defined at startup time.
1038
# Deploy the alert sidecar as an initContainer.
1039
initAlerts: false
1040
# Use native sidecar https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/
1041
# restartPolicy: Always
1042
# # only applies to native sidecars
1043
# startupProbe:
1044
# httpGet:
1045
# path: /healthz
1046
# port: 8080
1047
# initialDelaySeconds: 5
1048
# periodSeconds: 5
1049
# failureThreshold: 60 # 5 minutes
1050
# Additional alerts sidecar volume mounts
1051
extraMounts: []
1052
# Sets the size limit of the alert sidecar emptyDir volume
1053
sizeLimit: ""
1054
dashboards:
1055
enabled: false
1056
# Additional environment variables for the dashboards sidecar
1057
env: {}
1058
## "valueFrom" environment variable references that will be added to deployment pods. Name is templated.
1059
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#envvarsource-v1-core
1060
## Renders in container spec as:
1061
## env:
1062
## ...
1063
## - name: <key>
1064
## valueFrom:
1065
## <value rendered as YAML>
1066
envValueFrom: {}
1067
# ENV_NAME:
1068
# configMapKeyRef:
1069
# name: configmap-name
1070
# key: value_key
1071
# Do not reprocess already processed unchanged resources on k8s API reconnect.
1072
# ignoreAlreadyProcessed: true
1073
SCProvider: true
1074
# label that the configmaps with dashboards are marked with (can be templated)
1075
label: grafana_dashboard
1076
# value of label that the configmaps with dashboards are set to (can be templated)
1077
labelValue: ""
1078
# Log level. Can be one of: DEBUG, INFO, WARN, ERROR, CRITICAL.
1079
# logLevel: INFO
1080
# folder in the pod that should hold the collected dashboards (unless `defaultFolderName` is set)
1081
folder: /tmp/dashboards
1082
# The default folder name, it will create a subfolder under the `folder` and put dashboards in there instead
1083
defaultFolderName: null
1084
# Namespaces list. If specified, the sidecar will search for config-maps/secrets inside these namespaces.
1085
# Otherwise the namespace in which the sidecar is running will be used.
1086
# It's also possible to specify ALL to search in all namespaces.
1087
searchNamespace: null
1088
# Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds.
1089
watchMethod: WATCH
1090
# search in configmap, secret or both
1091
resource: both
1092
# If specified, the sidecar will look for annotation with this name to create folder and put graph here.
1093
# You can use this parameter together with `provider.foldersFromFilesStructure`to annotate configmaps and create folder structure.
1094
folderAnnotation: null
1095
#
1096
# resourceName: comma separated list of resource names to be fetched/checked by this sidecar.
1097
# per default all resources of the type defined in {{ .Values.sidecar.dashboards.resource }} will be checked.
1098
# This e.g. allows stricter RBAC rules which are limited to the resources meant for the sidecars.
1099
# resourceName: "secret/dashboards-0,configmap/dashboards-1"
1100
resourceName: ""
1101
#
1102
# maxTotalRetries: Total number of retries to allow for any http request.
1103
# Takes precedence over other counts. Applies to all requests to reloadURL and k8s api requests.
1104
# Set to 0 to fail on the first retry.
1105
# maxTotalRetries: 5
1106
#
1107
# maxConnectRetries: How many connection-related errors to retry on for any http request.
1108
# These are errors raised before the request is sent to the remote server, which we assume has not triggered the server to process the request.
1109
# Applies to all requests to reloadURL and k8s api requests.
1110
# Set to 0 to fail on the first retry of this type.
1111
# maxConnectRetries: 10
1112
#
1113
# maxReadRetries: How many times to retry on read errors for any http request
1114
# These errors are raised after the request was sent to the server, so the request may have side-effects.
1115
# Applies to all requests to reloadURL and k8s api requests.
1116
# Set to 0 to fail on the first retry of this type.
1117
# maxReadRetries: 5
1118
#
1119
# Endpoint to send request to reload alerts
1120
reloadURL: "http://localhost:3000/api/admin/provisioning/dashboards/reload"
1121
# Absolute path to a script to execute after a configmap got reloaded.
1122
# It runs before calls to REQ_URI. If the file is not executable it will be passed to sh.
1123
# Otherwise, it's executed as is. Shebangs known to work are #!/bin/sh and #!/usr/bin/env python
1124
script: null
1125
skipReload: false
1126
# This is needed if skipReload is true, to load any dashboards defined at startup time.
1127
# Deploy the dashboard sidecar as an initContainer.
1128
initDashboards: false
1129
# Use native sidecar https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/
1130
# restartPolicy: Always
1131
# # only applies to native sidecars
1132
# startupProbe:
1133
# httpGet:
1134
# path: /healthz
1135
# port: 8083
1136
# initialDelaySeconds: 5
1137
# periodSeconds: 5
1138
# failureThreshold: 60 # 5 minutes
1139
# watchServerTimeout: request to the server, asking it to cleanly close the connection after that.
1140
# defaults to 60sec; much higher values like 3600 seconds (1h) are feasible for non-Azure K8S
1141
# watchServerTimeout: 3600
1142
#
1143
# watchClientTimeout: is a client-side timeout, configuring your local socket.
1144
# If you have a network outage dropping all packets with no RST/FIN,
1145
# this is how long your client waits before realizing & dropping the connection.
1146
# defaults to 66sec (sic!)
1147
# watchClientTimeout: 60
1148
#
1149
# provider configuration that lets grafana manage the dashboards
1150
provider:
1151
# name of the provider, should be unique
1152
name: sidecarProvider
1153
# orgid as configured in grafana
1154
orgid: 1
1155
# folder in which the dashboards should be imported in grafana
1156
folder: ''
1157
# <string> folder UID. will be automatically generated if not specified
1158
folderUid: ''
1159
# type of the provider
1160
type: file
1161
# disableDelete to activate a import-only behaviour
1162
disableDelete: false
1163
# allow updating provisioned dashboards from the UI
1164
allowUiUpdates: false
1165
# allow Grafana to replicate dashboard structure from filesystem
1166
foldersFromFilesStructure: false
1167
# Additional dashboards sidecar volume mounts
1168
extraMounts: []
1169
# Sets the size limit of the dashboard sidecar emptyDir volume
1170
sizeLimit: ""
1171
datasources:
1172
enabled: false
1173
# Additional environment variables for the datasourcessidecar
1174
env: {}
1175
## "valueFrom" environment variable references that will be added to deployment pods. Name is templated.
1176
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#envvarsource-v1-core
1177
## Renders in container spec as:
1178
## env:
1179
## ...
1180
## - name: <key>
1181
## valueFrom:
1182
## <value rendered as YAML>
1183
envValueFrom: {}
1184
# ENV_NAME:
1185
# configMapKeyRef:
1186
# name: configmap-name
1187
# key: value_key
1188
# Do not reprocess already processed unchanged resources on k8s API reconnect.
1189
# ignoreAlreadyProcessed: true
1190
# label that the configmaps with datasources are marked with (can be templated)
1191
label: grafana_datasource
1192
# value of label that the configmaps with datasources are set to (can be templated)
1193
labelValue: ""
1194
# Log level. Can be one of: DEBUG, INFO, WARN, ERROR, CRITICAL.
1195
# logLevel: INFO
1196
# If specified, the sidecar will search for datasource config-maps inside this namespace.
1197
# Otherwise the namespace in which the sidecar is running will be used.
1198
# It's also possible to specify ALL to search in all namespaces
1199
searchNamespace: null
1200
# Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds.
1201
watchMethod: WATCH
1202
# search in configmap, secret or both
1203
resource: both
1204
#
1205
# resourceName: comma separated list of resource names to be fetched/checked by this sidecar.
1206
# per default all resources of the type defined in {{ .Values.sidecar.datasources.resource }} will be checked.
1207
# This e.g. allows stricter RBAC rules which are limited to the resources meant for the sidecars.
1208
# resourceName: "secret/datasources-0,configmap/datasources-15"
1209
resourceName: ""
1210
#
1211
# watchServerTimeout: request to the server, asking it to cleanly close the connection after that.
1212
# defaults to 60sec; much higher values like 3600 seconds (1h) are feasible for non-Azure K8S
1213
# watchServerTimeout: 3600
1214
#
1215
# watchClientTimeout: is a client-side timeout, configuring your local socket.
1216
# If you have a network outage dropping all packets with no RST/FIN,
1217
# this is how long your client waits before realizing & dropping the connection.
1218
# defaults to 66sec (sic!)
1219
# watchClientTimeout: 60
1220
#
1221
# maxTotalRetries: Total number of retries to allow for any http request.
1222
# Takes precedence over other counts. Applies to all requests to reloadURL and k8s api requests.
1223
# Set to 0 to fail on the first retry.
1224
# maxTotalRetries: 5
1225
#
1226
# maxConnectRetries: How many connection-related errors to retry on for any http request.
1227
# These are errors raised before the request is sent to the remote server, which we assume has not triggered the server to process the request.
1228
# Applies to all requests to reloadURL and k8s api requests.
1229
# Set to 0 to fail on the first retry of this type.
1230
# maxConnectRetries: 10
1231
#
1232
# maxReadRetries: How many times to retry on read errors for any http request
1233
# These errors are raised after the request was sent to the server, so the request may have side-effects.
1234
# Applies to all requests to reloadURL and k8s api requests.
1235
# Set to 0 to fail on the first retry of this type.
1236
# maxReadRetries: 5
1237
#
1238
# Endpoint to send request to reload datasources
1239
reloadURL: "http://localhost:3000/api/admin/provisioning/datasources/reload"
1240
# Absolute path to a script to execute after a configmap got reloaded.
1241
# It runs before calls to REQ_URI. If the file is not executable it will be passed to sh.
1242
# Otherwise, it's executed as is. Shebangs known to work are #!/bin/sh and #!/usr/bin/env python
1243
script: null
1244
skipReload: false
1245
# This is needed if skipReload is true, to load any datasources defined at startup time.
1246
# Deploy the datasources sidecar as an initContainer.
1247
initDatasources: false
1248
# Use native sidecar https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/
1249
# restartPolicy: Always
1250
# # only applies to native sidecars
1251
# startupProbe:
1252
# httpGet:
1253
# path: /healthz
1254
# port: 8081
1255
# initialDelaySeconds: 5
1256
# periodSeconds: 5
1257
# failureThreshold: 60 # 5 minutes
1258
# Additional datasources sidecar volume mounts
1259
extraMounts: []
1260
# Sets the size limit of the datasource sidecar emptyDir volume
1261
sizeLimit: ""
1262
plugins:
1263
enabled: false
1264
# Additional environment variables for the plugins sidecar
1265
env: {}
1266
# Do not reprocess already processed unchanged resources on k8s API reconnect.
1267
# ignoreAlreadyProcessed: true
1268
# label that the configmaps with plugins are marked with (can be templated)
1269
label: grafana_plugin
1270
# value of label that the configmaps with plugins are set to (can be templated)
1271
labelValue: ""
1272
# Log level. Can be one of: DEBUG, INFO, WARN, ERROR, CRITICAL.
1273
# logLevel: INFO
1274
# If specified, the sidecar will search for plugin config-maps inside this namespace.
1275
# Otherwise the namespace in which the sidecar is running will be used.
1276
# It's also possible to specify ALL to search in all namespaces
1277
searchNamespace: null
1278
# Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds.
1279
watchMethod: WATCH
1280
# search in configmap, secret or both
1281
resource: both
1282
#
1283
# resourceName: comma separated list of resource names to be fetched/checked by this sidecar.
1284
# per default all resources of the type defined in {{ .Values.sidecar.plugins.resource }} will be checked.
1285
# This e.g. allows stricter RBAC rules which are limited to the resources meant for the sidecars.
1286
# resourceName: "secret/plugins-0,configmap/plugins-1"
1287
resourceName: ""
1288
#
1289
# watchServerTimeout: request to the server, asking it to cleanly close the connection after that.
1290
# defaults to 60sec; much higher values like 3600 seconds (1h) are feasible for non-Azure K8S
1291
# watchServerTimeout: 3600
1292
#
1293
# watchClientTimeout: is a client-side timeout, configuring your local socket.
1294
# If you have a network outage dropping all packets with no RST/FIN,
1295
# this is how long your client waits before realizing & dropping the connection.
1296
# defaults to 66sec (sic!)
1297
# watchClientTimeout: 60
1298
#
1299
# maxTotalRetries: Total number of retries to allow for any http request.
1300
# Takes precedence over other counts. Applies to all requests to reloadURL and k8s api requests.
1301
# Set to 0 to fail on the first retry.
1302
# maxTotalRetries: 5
1303
#
1304
# maxConnectRetries: How many connection-related errors to retry on for any http request.
1305
# These are errors raised before the request is sent to the remote server, which we assume has not triggered the server to process the request.
1306
# Applies to all requests to reloadURL and k8s api requests.
1307
# Set to 0 to fail on the first retry of this type.
1308
# maxConnectRetries: 10
1309
#
1310
# maxReadRetries: How many times to retry on read errors for any http request
1311
# These errors are raised after the request was sent to the server, so the request may have side-effects.
1312
# Applies to all requests to reloadURL and k8s api requests.
1313
# Set to 0 to fail on the first retry of this type.
1314
# maxReadRetries: 5
1315
#
1316
# Endpoint to send request to reload plugins
1317
reloadURL: "http://localhost:3000/api/admin/provisioning/plugins/reload"
1318
# Absolute path to a script to execute after a configmap got reloaded.
1319
# It runs before calls to REQ_URI. If the file is not executable it will be passed to sh.
1320
# Otherwise, it's executed as is. Shebangs known to work are #!/bin/sh and #!/usr/bin/env python
1321
script: null
1322
skipReload: false
1323
# Deploy the datasource sidecar as an initContainer in addition to a container.
1324
# This is needed if skipReload is true, to load any plugins defined at startup time.
1325
initPlugins: false
1326
# Additional plugins sidecar volume mounts
1327
extraMounts: []
1328
# Sets the size limit of the plugin sidecar emptyDir volume
1329
sizeLimit: ""
1330
notifiers:
1331
enabled: false
1332
# Additional environment variables for the notifierssidecar
1333
env: {}
1334
# Do not reprocess already processed unchanged resources on k8s API reconnect.
1335
# ignoreAlreadyProcessed: true
1336
# label that the configmaps with notifiers are marked with (can be templated)
1337
label: grafana_notifier
1338
# value of label that the configmaps with notifiers are set to (can be templated)
1339
labelValue: ""
1340
# Log level. Can be one of: DEBUG, INFO, WARN, ERROR, CRITICAL.
1341
# logLevel: INFO
1342
# If specified, the sidecar will search for notifier config-maps inside this namespace.
1343
# Otherwise the namespace in which the sidecar is running will be used.
1344
# It's also possible to specify ALL to search in all namespaces
1345
searchNamespace: null
1346
# Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds.
1347
watchMethod: WATCH
1348
# search in configmap, secret or both
1349
resource: both
1350
#
1351
# resourceName: comma separated list of resource names to be fetched/checked by this sidecar.
1352
# per default all resources of the type defined in {{ .Values.sidecar.notifiers.resource }} will be checked.
1353
# This e.g. allows stricter RBAC rules which are limited to the resources meant for the sidecars.
1354
# resourceName: "secret/notifiers-2,configmap/notifiers-1"
1355
resourceName: ""
1356
#
1357
# watchServerTimeout: request to the server, asking it to cleanly close the connection after that.
1358
# defaults to 60sec; much higher values like 3600 seconds (1h) are feasible for non-Azure K8S
1359
# watchServerTimeout: 3600
1360
#
1361
# watchClientTimeout: is a client-side timeout, configuring your local socket.
1362
# If you have a network outage dropping all packets with no RST/FIN,
1363
# this is how long your client waits before realizing & dropping the connection.
1364
# defaults to 66sec (sic!)
1365
# watchClientTimeout: 60
1366
#
1367
# maxTotalRetries: Total number of retries to allow for any http request.
1368
# Takes precedence over other counts. Applies to all requests to reloadURL and k8s api requests.
1369
# Set to 0 to fail on the first retry.
1370
# maxTotalRetries: 5
1371
#
1372
# maxConnectRetries: How many connection-related errors to retry on for any http request.
1373
# These are errors raised before the request is sent to the remote server, which we assume has not triggered the server to process the request.
1374
# Applies to all requests to reloadURL and k8s api requests.
1375
# Set to 0 to fail on the first retry of this type.
1376
# maxConnectRetries: 10
1377
#
1378
# maxReadRetries: How many times to retry on read errors for any http request
1379
# These errors are raised after the request was sent to the server, so the request may have side-effects.
1380
# Applies to all requests to reloadURL and k8s api requests.
1381
# Set to 0 to fail on the first retry of this type.
1382
# maxReadRetries: 5
1383
#
1384
# Endpoint to send request to reload notifiers
1385
reloadURL: "http://localhost:3000/api/admin/provisioning/notifications/reload"
1386
# Absolute path to a script to execute after a configmap got reloaded.
1387
# It runs before calls to REQ_URI. If the file is not executable it will be passed to sh.
1388
# Otherwise, it's executed as is. Shebangs known to work are #!/bin/sh and #!/usr/bin/env python
1389
script: null
1390
skipReload: false
1391
# Deploy the notifier sidecar as an initContainer in addition to a container.
1392
# This is needed if skipReload is true, to load any notifiers defined at startup time.
1393
initNotifiers: false
1394
# Use native sidecar https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/
1395
# restartPolicy: Always
1396
# # only applies to native sidecars
1397
# startupProbe:
1398
# httpGet:
1399
# path: /healthz
1400
# port: 8082
1401
# initialDelaySeconds: 5
1402
# periodSeconds: 5
1403
# failureThreshold: 60 # 5 minutes
1404
# Additional notifiers sidecar volume mounts
1405
extraMounts: []
1406
# Sets the size limit of the notifier sidecar emptyDir volume
1407
sizeLimit: ""
1408
## Override the deployment namespace
1409
##
1410
namespaceOverride: ""
1411
## Number of old ReplicaSets to retain
1412
##
1413
revisionHistoryLimit: 10
1414
## Add a separate remote image renderer deployment/service
1415
imageRenderer:
1416
deploymentStrategy: {}
1417
## The maximum time in seconds for the image renderer Deployment to make progress before it is
1418
## considered to be failed.
1419
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#progress-deadline-seconds
1420
progressDeadlineSeconds: null
1421
# Enable the image-renderer deployment & service
1422
enabled: false
1423
replicas: 1
1424
autoscaling:
1425
enabled: false
1426
minReplicas: 1
1427
maxReplicas: 5
1428
targetCPU: "60"
1429
targetMemory: ""
1430
behavior: {}
1431
# The url of remote image renderer if it is not in the same namespace with the grafana instance
1432
serverURL: ""
1433
# The callback url of grafana instances if it is not in the same namespace with the remote image renderer
1434
renderingCallbackURL: ""
1435
# Token used for authentication between Grafana and the remote image renderer.
1436
token: ""
1437
# Use an existing secret for the image renderer token. Must contain a key named "token".
1438
existingSecret: ""
1439
image:
1440
# -- The Docker registry
1441
registry: cgr.dev
1442
# image-renderer Image repository
1443
repository: scratch-images/test-tmp/grafana-image-renderer
1444
# image-renderer Image tag
1445
tag: 5.8.8-r2
1446
# image-renderer Image sha (optional)
1447
sha: sha256:e3cbcdf11756d974c6eab9580d197416b45ecf33c0b7e4e1c18747c9ddc8dc05
1448
# image-renderer Image pull secrets (optional)
1449
pullSecrets: []
1450
# image-renderer ImagePullPolicy
1451
pullPolicy: Always
1452
dnsPolicy: ~
1453
dnsConfig: {}
1454
# nameservers:
1455
# - 8.8.8.8
1456
# options:
1457
# - name: ndots
1458
# value: "2"
1459
# - name: edns0
1460
# extra environment variables
1461
env:
1462
HTTP_HOST: "0.0.0.0"
1463
# Fixes "Error: Failed to launch the browser process!\nchrome_crashpad_handler: --database is required"
1464
XDG_CONFIG_HOME: /tmp/.chromium
1465
XDG_CACHE_HOME: /tmp/.chromium
1466
# RENDERING_ARGS: --no-sandbox,--disable-gpu,--window-size=1280x758
1467
# RENDERING_MODE: clustered
1468
# IGNORE_HTTPS_ERRORS: true
1469
## "valueFrom" environment variable references that will be added to deployment pods. Name is templated.
1470
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#envvarsource-v1-core
1471
## Renders in container spec as:
1472
## env:
1473
## ...
1474
## - name: <key>
1475
## valueFrom:
1476
## <value rendered as YAML>
1477
envValueFrom: {}
1478
# ENV_NAME:
1479
# configMapKeyRef:
1480
# name: configmap-name
1481
# key: value_key
1482
1483
# image-renderer deployment serviceAccount
1484
serviceAccountName: ""
1485
automountServiceAccountToken: false
1486
# image-renderer deployment hostUsers
1487
hostUsers: ~
1488
# image-renderer deployment securityContext
1489
securityContext: {}
1490
# image-renderer deployment container securityContext
1491
containerSecurityContext:
1492
seccompProfile:
1493
type: RuntimeDefault
1494
capabilities:
1495
drop: ['ALL']
1496
allowPrivilegeEscalation: false
1497
readOnlyRootFilesystem: true
1498
## image-renderer pod annotation
1499
podAnnotations: {}
1500
# image-renderer deployment Host Aliases
1501
hostAliases: []
1502
# image-renderer deployment priority class
1503
priorityClassName: ''
1504
# Path to the healthcheck endpoint. On Image Renderer v5.0.0 or newer, this is '/healthz'. Older versions use '/'.
1505
healthcheckPath: '/healthz'
1506
service:
1507
# Enable the image-renderer service
1508
enabled: true
1509
# image-renderer service port name
1510
portName: 'http'
1511
# image-renderer service port used by both service and deployment
1512
port: 8081
1513
targetPort: 8081
1514
# Adds the appProtocol field to the image-renderer service. This allows to work with istio protocol selection. Ex: "http" or "tcp"
1515
appProtocol: ""
1516
serviceMonitor:
1517
## If true, a ServiceMonitor CRD is created for a prometheus operator
1518
## https://github.com/coreos/prometheus-operator
1519
##
1520
enabled: false
1521
path: /metrics
1522
# namespace: monitoring (defaults to use the namespace this chart is deployed to)
1523
labels: {}
1524
# Set these to override the Prometheus global scrape interval/timeout.
1525
# interval: 1m
1526
# scrapeTimeout: 30s
1527
scheme: http
1528
tlsConfig: {}
1529
relabelings: []
1530
# See: https://doc.crds.dev/github.com/prometheus-operator/kube-prometheus/monitoring.coreos.com/ServiceMonitor/v1@v0.11.0#spec-targetLabels
1531
targetLabels: []
1532
# - targetLabel1
1533
# - targetLabel2
1534
# If https is enabled in Grafana, this needs to be set as 'https' to correctly configure the callback used in Grafana
1535
grafanaProtocol: http
1536
# In case a sub_path is used this needs to be added to the image renderer callback
1537
grafanaSubPath: ""
1538
# name of the image-renderer port on the pod
1539
podPortName: http
1540
# number of image-renderer replica sets to keep
1541
revisionHistoryLimit: 10
1542
networkPolicy:
1543
# Enable a NetworkPolicy to limit inbound traffic to only the created grafana pods
1544
limitIngress: true
1545
# Enable a NetworkPolicy to limit outbound traffic to only the created grafana pods
1546
limitEgress: false
1547
# Allow additional services to access image-renderer (eg. Prometheus operator when ServiceMonitor is enabled)
1548
extraIngressSelectors: []
1549
resources: {}
1550
# limits:
1551
# cpu: 100m
1552
# memory: 100Mi
1553
# requests:
1554
# cpu: 50m
1555
# memory: 50Mi
1556
## Node labels for pod assignment
1557
## ref: https://kubernetes.io/docs/user-guide/node-selection/
1558
#
1559
nodeSelector: {}
1560
## Tolerations for pod assignment
1561
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1562
##
1563
tolerations: []
1564
## Affinity for pod assignment (evaluated as template)
1565
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
1566
##
1567
affinity: {}
1568
## Use an alternate scheduler, e.g. "stork".
1569
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
1570
##
1571
# schedulerName: "default-scheduler"
1572
1573
# Extra configmaps to mount in image-renderer pods
1574
extraConfigmapMounts: []
1575
# Extra secrets to mount in image-renderer pods
1576
extraSecretMounts: []
1577
# Extra volumes to mount in image-renderer pods
1578
extraVolumeMounts: []
1579
# Extra volumes for image-renderer pods
1580
extraVolumes: []
1581
networkPolicy:
1582
# -- networkPolicy.enabled Enable creation of NetworkPolicy resources. Only Ingress traffic is filtered for now.
1583
enabled: false
1584
# --networkPolicy.allowExternal Don't require client label for connections
1585
# The Policy model to apply. When set to false, only pods with the correct
1586
# client label will have network access to grafana port defined.
1587
# When true, grafana will accept connections from any source
1588
# (with the correct destination port).
1589
#
1590
ingress: true
1591
# -- networkPolicy.ingress When true enables the creation
1592
# an ingress network policy
1593
allowExternal: true
1594
# -- networkPolicy.explicitNamespacesSelector A Kubernetes LabelSelector to explicitly select namespaces from which traffic could be allowed
1595
# If explicitNamespacesSelector is missing or set to {}, only client Pods that are in the networkPolicy's namespace
1596
# and that match other criteria, the ones that have the good label, can reach the grafana.
1597
# But sometimes, we want the grafana to be accessible to clients from other namespaces, in this case, we can use this
1598
# LabelSelector to select these namespaces, note that the networkPolicy's namespace should also be explicitly added.
1599
# </br>
1600
#
1601
# Example:
1602
#
1603
# ```
1604
# explicitNamespacesSelector:
1605
# matchLabels:
1606
# role: frontend
1607
# matchExpressions:
1608
# - {key: role, operator: In, values: [frontend]}
1609
# ```
1610
explicitNamespacesSelector: {}
1611
# -- networkPolicy.explicitIpBlocks List of CIDR blocks allowed as ingress sources.
1612
# Each entry must be a valid CIDR notation string (e.g. 10.0.0.0/8).
1613
# When defined, the specified CIDR ranges are added to the ingress `from` rules
1614
# using `ipBlock` entries and complement the other configured ingress sources.
1615
# </br>
1616
#
1617
# Example:
1618
#
1619
# ```
1620
# explicitIpBlocks:
1621
# - 35.191.0.0/16
1622
# - 130.211.0.0/22
1623
# ```
1624
#
1625
explicitIpBlocks: []
1626
egress:
1627
# -- networkPolicy.egress.enabled When enabled, an egress network policy will be
1628
# created allowing grafana to connect to external data sources from kubernetes cluster.
1629
enabled: false
1630
# -- networkPolicy.egress.blockDNSResolution When enabled, DNS resolution will be blocked
1631
# for all pods in the grafana namespace.
1632
blockDNSResolution: false
1633
# -- networkPolicy.egress.ports Add individual ports to be allowed by the egress
1634
ports: []
1635
# Add ports to the egress by specifying - port: <port number>
1636
# E.X.
1637
# - port: 80
1638
# - port: 443
1639
#
1640
# -- networkPolicy.egress.to Allow egress traffic to specific destinations
1641
to: []
1642
# -- destinations to the egress by specifying - ipBlock: <CIDR>
1643
# E.X.
1644
# to:
1645
# - namespaceSelector:
1646
# matchExpressions:
1647
# - {key: role, operator: In, values: [grafana]}
1648
# Enable backward compatibility of kubernetes where version below 1.13 doesn't have the enableServiceLinks option
1649
enableKubeBackwardCompatibility: false
1650
useStatefulSet: false
1651
# extraObjects could be utilized to add dynamic manifests via values
1652
extraObjects: []
1653
# Examples:
1654
# extraObjects:
1655
# - apiVersion: kubernetes-client.io/v1
1656
# kind: ExternalSecret
1657
# metadata:
1658
# name: grafana-secrets-{{ .Release.Name }}
1659
# spec:
1660
# backendType: gcpSecretsManager
1661
# data:
1662
# - key: grafana-admin-password
1663
# name: adminPassword
1664
# Alternatively, you can use strings, which lets you use additional templating features:
1665
# extraObjects:
1666
# - |
1667
# apiVersion: kubernetes-client.io/v1
1668
# kind: ExternalSecret
1669
# metadata:
1670
# name: grafana-secrets-{{ .Release.Name }}
1671
# spec:
1672
# backendType: gcpSecretsManager
1673
# data:
1674
# - key: grafana-admin-password
1675
# name: {{ include "some-other-template" }}
1676
1677
# assertNoLeakedSecrets is a helper function defined in _helpers.tpl that checks if secret
1678
# values are not exposed in the rendered grafana.ini configmap. It is enabled by default.
1679
#
1680
# To pass values into grafana.ini without exposing them in a configmap, use variable expansion:
1681
# https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#variable-expansion
1682
#
1683
# Alternatively, if you wish to allow secret values to be exposed in the rendered grafana.ini configmap,
1684
# you can disable this check by setting assertNoLeakedSecrets to false.
1685
assertNoLeakedSecrets: true
1686
# updateMode options are:
1687
# Off: n the Off update mode, the VPA recommender still analyzes resource usage and generates recommendations, but these recommendations are not automatically applied to Pods. The recommendations are only stored in the VPA object's .status field.
1688
# Initial: In Initial mode, VPA only sets resource requests when Pods are first created. It does not update resources for already running Pods, even if recommendations change over time. The recommendations apply only during Pod creation.
1689
# Recreate: In Recreate mode, VPA actively manages Pod resources by evicting Pods when their current resource requests differ significantly from recommendations. When a Pod is evicted, the workload controller (managing a Deployment, StatefulSet, etc) creates a replacement Pod, and the VPA admission controller applies the updated resource requests to the new Pod.
1690
# InPlaceOrRecreate: In Recreate mode, VPA actively manages Pod resources by evicting Pods when their current resource requests differ significantly from recommendations. When a Pod is evicted, the workload controller (managing a Deployment, StatefulSet, etc) creates a replacement Pod, and the VPA admission controller applies the updated resource requests to the new Pod.
1691
# Auto (deprecated): The Auto update mode is deprecated since VPA version 1.4.0. Use Recreate for eviction-based updates, or InPlaceOrRecreate for in-place updates with eviction fallback.
1692
verticalPodAutoscaler:
1693
enabled: false
1694
updateMode: "Off"
1695
controlledResources:
1696
cpu: true
1697
memory: true
1698
# Default safety bounds
1699
minAllowed:
1700
cpu: "25m"
1701
memory: "128Mi"
1702
maxAllowed:
1703
cpu: "1000m"
1704
memory: "1Gi"
1705

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.