1# This file has been modified by Chainguard, Inc.
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
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
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
15## @param global.imageRegistry Global Docker image registry
16## @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.
17## @param global.imagePullSecrets Global Docker registry secret names as an array
18## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
19## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
26 ## - myRegistryKeySecretName
29 defaultStorageClass: ""
31 ## Security parameters
34 ## @param global.security.allowInsecureImages Allows skipping image verification
35 allowInsecureImages: false
36 ## Compatibility adaptations for Kubernetes platforms
39 ## Compatibility adaptations for Openshift
42 ## @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)
44 adaptSecurityContext: auto
46## @section Common parameters
48## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
51## @param extraDeploy Array of extra objects to deploy with the release
54## @param nameOverride String to partially override grafana.fullname template (will maintain the release name)
57## @param fullnameOverride String to fully override grafana.fullname template
60## @param namespaceOverride String to fully override common.names.namespace
63## @param clusterDomain Default Kubernetes cluster domain
65clusterDomain: cluster.local
66## @param commonLabels Labels to add to all deployed objects
69## @param commonAnnotations Annotations to add to all deployed objects
72## @param usePasswordFiles Mount credentials as files instead of using environment variables
75## @section Grafana parameters
77## Iamguarded Grafana image version
78## @param image.registry [default: REGISTRY_NAME] Grafana image registry
79## @param image.repository [default: REPOSITORY_NAME/grafana] Grafana image repository
80## @skip image.tag Grafana image tag (immutable tags are recommended)
81## @param image.digest Grafana image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
82## @param image.pullPolicy Grafana image pull policy
83## @param image.pullSecrets Grafana image pull secrets
87 repository: chainguard-private/grafana-iamguarded
90 ## Specify a imagePullPolicy
91 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
93 pullPolicy: IfNotPresent
94 ## Optionally specify an array of imagePullSecrets.
95 ## Secrets must be manually created in the namespace.
96 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
99 ## - myRegistryKeySecretName
101## Admin credentials configuration
104 ## @param admin.user Grafana admin username
107 ## @param admin.password Admin password. If a password is not provided a random password will be generated
110 ## @param admin.existingSecret Name of the existing secret containing admin password
113 ## @param admin.existingSecretPasswordKey Password key on the existing secret
115 existingSecretPasswordKey: password
119 ## @param smtp.enabled Enable SMTP configuration
122 ## @param smtp.user SMTP user
125 ## @param smtp.password SMTP password
128 ## @param smtp.host Custom host for the smtp server
130 ## host: mysmtphost.com
133 ## @param smtp.fromAddress From address
136 ## @param smtp.fromName From name
139 ## @param smtp.skipVerify Enable skip verify
142 ## @param smtp.existingSecret Name of existing secret containing SMTP credentials (user and password)
145 ## @param smtp.existingSecretUserKey User key on the existing secret
147 existingSecretUserKey: user
148 ## @param smtp.existingSecretPasswordKey Password key on the existing secret
150 existingSecretPasswordKey: password
151## @param plugins Grafana plugins to be installed in deployment time separated by commas
152## Specify plugins as a list separated by commas ( you will need to scape them when specifying from command line )
154## plugins: grafana-kubernetes-app,grafana-example-app
157## Ldap configuration for Grafana
160 ## @param ldap.enabled Enable LDAP for Grafana
163 ## @param ldap.allowSignUp Allows LDAP sign up for Grafana
166 ## @param ldap.configuration Specify content for ldap.toml configuration file
170 ## host = "127.0.0.1"
176 ## @param ldap.configMapName Name of the ConfigMap with the ldap.toml configuration file for Grafana
177 ## NOTE: When it's set the ldap.configuration parameter is ignored
180 ## @param ldap.secretName Name of the Secret with the ldap.toml configuration file for Grafana
181 ## NOTE: When it's set the ldap.configuration parameter is ignored
184 ## @param ldap.uri Server URI, eg. ldap://ldap_server:389
187 ## @param ldap.binddn DN of the account used to search in the LDAP server.
190 ## @param ldap.bindpw Password for binddn account.
193 ## @param ldap.basedn Base DN path where binddn account will search for the users.
196 ## @param ldap.searchAttribute Field used to match with the user name (uid, samAccountName, cn, etc). This value will be ignored if 'ldap.searchFilter' is set
198 searchAttribute: "uid"
199 ## @param ldap.searchFilter User search filter, for example "(cn=%s)" or "(sAMAccountName=%s)" or "(|(sAMAccountName=%s)(userPrincipalName=%s)"
202 ## @param ldap.extraConfiguration Extra ldap configuration.
204 ## extraConfiguration: |-
205 ## # set to true if you want to skip SSL cert validation
206 ## ssl_skip_verify = false
207 ## # group_search_filter = "(&(objectClass=posixGroup)(memberUid=%s))"
208 ## # group_search_filter_user_attribute = "distinguishedName"
209 ## # group_search_base_dns = ["ou=groups,dc=grafana,dc=org"]
210 ## # Specify names of the LDAP attributes your LDAP uses
211 ## [servers.attributes]
212 ## # member_of = "memberOf"
215 extraConfiguration: ""
216 ## @param ldap.tls.enabled Enabled TLS configuration.
217 ## @param ldap.tls.startTls Use STARTTLS instead of LDAPS.
218 ## @param ldap.tls.skipVerify Skip any SSL verification (hostanames or certificates)
219 ## @param ldap.tls.certificatesMountPath Where LDAP certifcates are mounted.
220 ## @param ldap.tls.certificatesSecret Secret with LDAP certificates.
221 ## @param ldap.tls.CAFilename CA certificate filename. Should match with the CA entry key in the ldap.tls.certificatesSecret.
222 ## @param ldap.tls.certFilename Client certificate filename to authenticate against the LDAP server. Should match with certificate the entry key in the ldap.tls.certificatesSecret.
223 ## @param ldap.tls.certKeyFilename Client Key filename to authenticate against the LDAP server. Should match with certificate the entry key in the ldap.tls.certificatesSecret.
229 certificatesMountPath: /opt/iamguarded/grafana/conf/ldap/
230 certificatesSecret: ""
234## Grafana Image Renderer configuration for Grafana
237 ## @param imageRenderer.enabled Enable using a remote rendering service to render PNG images
240 ## @param imageRenderer.serverURL URL of the remote rendering service
243 ## @param imageRenderer.callbackURL URL of the callback service
246## Parameters to override the default grafana.ini file.
247## It is needed to create a configmap or a secret containing the grafana.ini file.
248## @param config.useGrafanaIniFile Allows to load a `grafana.ini` file
249## @param config.grafanaIniConfigMap Name of the ConfigMap containing the `grafana.ini` file
250## @param config.grafanaIniSecret Name of the Secret containing the `grafana.ini` file
253 useGrafanaIniFile: false
254 grafanaIniConfigMap: ""
256## Create dasboard provider to load dashboards, a default one is created to load dashboards
257## from "/opt/iamguarded/grafana/dashboards"
258## @param dashboardsProvider.enabled Enable the use of a Grafana dashboard provider
259## @param dashboardsProvider.configMapName Name of a ConfigMap containing a custom dashboard provider
263 ## Important to set the Path to "/opt/iamguarded/grafana/dashboards"
264 ## Evaluated as a template.
267## @param dashboardsConfigMaps Array with the names of a series of ConfigMaps containing dashboards files
268## They will be mounted by the default dashboard provider if it is enabled
269## Use an array with the configMap names.
270## In order to use subfolders, uncomment "#foldersFromFilesStructure: true" line in default provider config. or create your own dashboard provider.
272## dashboardsConfigMaps:
273## - configMapName: mydashboard
275## fileName: mydashboard.json
276## - configMapName: myotherdashboard
278## fileName: myotherdashboard.json
280dashboardsConfigMaps: []
281## Import datasources from an externally-managed secret, or a secret definition set via Helm values.
284 ## @param datasources.secretName The name of an externally-managed secret containing custom datasource files.
287 ## @param datasources.secretDefinition The contents of a secret defining a custom datasource file. Only used if datasources.secretName is empty or not defined.
292 ## - name: Prometheus
294 ## url: http://prometheus-prometheus-server
299## Create notifiers from a configMap
300## The notifiersName must contain the files
301## @param notifiers.configMapName Name of a ConfigMap containing Grafana notifiers configuration
305## Create alerting rules, contact points, notification policies, templates, and mute timings from a configMap
306## @param alerting.configMapName Name of a ConfigMap containing Grafana alerting configuration
310## @section Grafana Deployment parameters
312 ## @param grafana.replicaCount Number of Grafana nodes
315 ## @param grafana.kind Use either Deployment or StatefulSet (default)
316 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
319 ## @param grafana.podManagementPolicy StatefulSet pod management policy
320 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
322 podManagementPolicy: Parallel
323 ## @param grafana.updateStrategy.type Set up update strategy for Grafana installation.
324 ## 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.
325 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
328 ## type: RollingUpdate
331 ## maxUnavailable: 25%
335 ## @param grafana.automountServiceAccountToken Mount Service Account token in pod
337 automountServiceAccountToken: false
338 ## @param grafana.hostAliases Add deployment host aliases
339 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
342 ## @param grafana.schedulerName Alternative scheduler
343 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
346 ## @param grafana.terminationGracePeriodSeconds In seconds, time the given to the Grafana pod needs to terminate gracefully
347 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
349 terminationGracePeriodSeconds: ""
350 ## @param grafana.priorityClassName Priority class name
351 ## ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
353 priorityClassName: ""
354 ## @param grafana.podLabels Extra labels for Grafana pods
355 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
358 ## @param grafana.podAnnotations Grafana Pod annotations
359 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
362 ## @param grafana.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
363 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
365 podAffinityPreset: ""
366 ## @param grafana.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
367 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
369 podAntiAffinityPreset: soft
370 ## @param grafana.containerPorts.grafana Grafana container port
374 ## @param grafana.extraPorts Extra ports for Grafana deployment
377 ## Node affinity preset
378 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
379 ## @param grafana.nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
380 ## @param grafana.nodeAffinityPreset.key Node label key to match Ignored if `affinity` is set.
381 ## @param grafana.nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set.
386 ## key: "kubernetes.io/e2e-az-name"
395 ## @param grafana.affinity Affinity for pod assignment
396 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
397 ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
400 ## @param grafana.nodeSelector Node labels for pod assignment
401 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
404 ## @param grafana.tolerations Tolerations for pod assignment
405 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
408 ## @param grafana.topologySpreadConstraints Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in
409 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
411 ## topologySpreadConstraints:
413 ## topologyKey: failure-domain.beta.kubernetes.io/zone
414 ## whenUnsatisfiable: DoNotSchedule
416 topologySpreadConstraints: []
417 ## @param grafana.podSecurityContext.enabled Enable securityContext on for Grafana deployment
418 ## @param grafana.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
419 ## @param grafana.podSecurityContext.sysctls Set kernel settings using the sysctl interface
420 ## @param grafana.podSecurityContext.supplementalGroups Set filesystem extra groups
421 ## @param grafana.podSecurityContext.fsGroup Group to configure permissions for volumes
425 fsGroupChangePolicy: Always
427 supplementalGroups: []
429 ## Configure Container Security Context
430 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
431 ## @param grafana.containerSecurityContext.enabled Enabled containers' Security Context
432 ## @param grafana.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
433 ## @param grafana.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
434 ## @param grafana.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
435 ## @param grafana.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
436 ## @param grafana.containerSecurityContext.privileged Set container's Security Context privileged
437 ## @param grafana.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
438 ## @param grafana.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
439 ## @param grafana.containerSecurityContext.capabilities.drop List of capabilities to be dropped
440 ## @param grafana.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
442 containerSecurityContext:
449 readOnlyRootFilesystem: true
450 allowPrivilegeEscalation: false
454 type: "RuntimeDefault"
455 ## Grafana containers' resource requests and limits
456 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
457 ## We usually recommend not to specify default resources and to leave this as a conscious
458 ## choice for the user. This also increases chances charts run on environments with little
459 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
460 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
461 ## @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).
463 resourcesPreset: "nano"
464 ## @param grafana.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
475 ## Grafana containers' liveness probe
476 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
477 ## @param grafana.livenessProbe.enabled Enable livenessProbe
478 ## @param grafana.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
479 ## @param grafana.livenessProbe.periodSeconds Period seconds for livenessProbe
480 ## @param grafana.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
481 ## @param grafana.livenessProbe.failureThreshold Failure threshold for livenessProbe
482 ## @param grafana.livenessProbe.successThreshold Success threshold for livenessProbe
486 initialDelaySeconds: 120
491 ## Grafana containers' readinessProbe probe
492 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
493 ## @param grafana.readinessProbe.enabled Enable readinessProbe
494 ## @param grafana.readinessProbe.path Path for readinessProbe
495 ## @param grafana.readinessProbe.scheme Scheme for readinessProbe
496 ## @param grafana.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
497 ## @param grafana.readinessProbe.periodSeconds Period seconds for readinessProbe
498 ## @param grafana.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
499 ## @param grafana.readinessProbe.failureThreshold Failure threshold for readinessProbe
500 ## @param grafana.readinessProbe.successThreshold Success threshold for readinessProbe
506 initialDelaySeconds: 30
511 ## @param grafana.startupProbe.enabled Enable startupProbe
512 ## @param grafana.startupProbe.path Path for readinessProbe
513 ## @param grafana.startupProbe.scheme Scheme for readinessProbe
514 ## @param grafana.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
515 ## @param grafana.startupProbe.periodSeconds Period seconds for startupProbe
516 ## @param grafana.startupProbe.timeoutSeconds Timeout seconds for startupProbe
517 ## @param grafana.startupProbe.failureThreshold Failure threshold for startupProbe
518 ## @param grafana.startupProbe.successThreshold Success threshold for startupProbe
524 initialDelaySeconds: 30
529 ## @param grafana.customLivenessProbe Custom livenessProbe that overrides the default one
531 customLivenessProbe: {}
532 ## @param grafana.customReadinessProbe Custom readinessProbe that overrides the default one
534 customReadinessProbe: {}
535 ## @param grafana.customStartupProbe Custom startupProbe that overrides the default one
537 customStartupProbe: {}
538 ## @param grafana.lifecycleHooks for the Grafana container(s) to automate configuration before or after startup
541 ## @param grafana.sidecars Attach additional sidecar containers to the Grafana pod
544 ## - name: your-image-name
546 ## imagePullPolicy: Always
549 ## containerPort: 1234
552 ## @param grafana.initContainers Add additional init containers to the Grafana pod(s)
553 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
556 ## - name: your-image-name
558 ## imagePullPolicy: Always
559 ## command: ['sh', '-c', 'echo "hello world"']
562 ## @param grafana.enableServiceLinks Whether information about services should be injected into pod's environment variable
563 ## The environment variables injected by service links are not used, but can lead to slow boot times or slow running of the scripts when there are many services in the current namespace.
564 ## If you experience slow pod startups or slow running of the scripts you probably want to set this to `false`.
566 enableServiceLinks: true
567 ## @param grafana.extraVolumes Additional volumes for the Grafana pod
574 ## @param grafana.extraVolumeMounts Additional volume mounts for the Grafana container
576 ## extraVolumeMounts:
578 ## mountPath: /opt/iamguarded/grafana/my-stuff
580 extraVolumeMounts: []
581 ## @param grafana.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Grafana nodes
584 ## @param grafana.extraEnvVarsCMOptional Whether to still run the Grafana node if the ConfigMap does not exist
586 extraEnvVarsCMOptional: false
587 ## @param grafana.extraEnvVarsSecret Name of existing Secret containing extra env vars for Grafana nodes
589 extraEnvVarsSecret: ""
590 ## @param grafana.extraEnvVarsSecretOptional Whether to still run the Grafana node if the Secret does not exist
592 extraEnvVarsSecretOptional: false
593 ## @param grafana.extraEnvVars Array containing extra env vars to configure Grafana
596 ## - name: GF_DEFAULT_INSTANCE_NAME
597 ## value: my-instance
600 ## @param grafana.extraConfigmaps Array to mount extra ConfigMaps to configure Grafana
603 ## - name: myconfigmap
604 ## mountPath: /opt/iamguarded/desired-path
605 ## subPath: file-name.extension (optional)
609 ## @param grafana.command Override default container command (useful when using custom images)
612 ## @param grafana.args Override default container args (useful when using custom images)
615 ## Pod Disruption Budget configuration
616 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
617 ## @param grafana.pdb.create Enable/disable a Pod Disruption Budget creation
618 ## @param grafana.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
619 ## @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.
625## @section Persistence parameters
627## Enable persistence using Persistent Volume Claims
628## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
629## @param persistence.enabled Enable persistence
630## @param persistence.annotations Persistent Volume Claim annotations
631## @param persistence.accessMode Persistent Volume Access Mode
632## @param persistence.accessModes Persistent Volume Access Modes
633## @param persistence.storageClass Storage class to use with the PVC
634## @param persistence.existingClaim If you want to reuse an existing claim, you can pass the name of the PVC using the existingClaim variable. Please note that this setting will be ignored when `grafana.kind` is set to `StatefulSet`.
635## @param persistence.size Size for the PV
639 ## If defined, storageClassName: <storageClass>
640 ## If set to "-", storageClassName: "", which disables dynamic provisioning
641 ## If undefined (the default) or set to null, no storageClassName spec is
642 ## set, choosing the default provisioner. (gp2 on AWS, standard on
643 ## GKE, AWS & OpenStack)
648 accessMode: ReadWriteOnce
651## @section RBAC parameters
653## @param serviceAccount.create Specifies whether a ServiceAccount should be created
654## @param serviceAccount.name The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template
655## @param serviceAccount.annotations Annotations to add to the ServiceAccount Metadata
656## @param serviceAccount.automountServiceAccountToken Automount service account token for the application controller service account
661 automountServiceAccountToken: false
662## @section Traffic exposure parameters
667 ## @param service.type Kubernetes Service type
670 ## @param service.clusterIP Grafana service Cluster IP
675 ## @param service.ports.grafana Grafana service port
679 ## @param service.nodePorts.grafana Specify the nodePort value for the LoadBalancer and NodePort service types
680 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
684 ## @param service.loadBalancerIP loadBalancerIP if Grafana service type is `LoadBalancer` (optional, cloud specific)
685 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
688 ## @param service.loadBalancerClass loadBalancerClass if Grafana service type is `LoadBalancer` (optional, cloud specific)
689 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
691 loadBalancerClass: ""
692 ## @param service.loadBalancerSourceRanges loadBalancerSourceRanges if Grafana service type is `LoadBalancer` (optional, cloud specific)
693 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
695 ## loadBalancerSourceRanges:
698 loadBalancerSourceRanges: []
699 ## @param service.annotations Provide any additional annotations which may be required.
700 ## This can be used to set the LoadBalancer service type to internal only.
701 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
704 ## @param service.externalTrafficPolicy Grafana service external traffic policy
705 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
707 externalTrafficPolicy: Cluster
708 ## @param service.extraPorts Extra port to expose on Grafana service
711 ## @param service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
712 ## If "ClientIP", consecutive client requests will be directed to the same Pod
713 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
715 sessionAffinity: None
716 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
717 ## sessionAffinityConfig:
719 ## timeoutSeconds: 300
721 sessionAffinityConfig: {}
723## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
726 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
729 ## @param networkPolicy.allowExternal Don't require server label for connections
730 ## The Policy model to apply. When set to false, only pods with the correct
731 ## server label will have network access to the ports server is listening
732 ## on. When true, server will accept connections from any source
733 ## (with the correct destination port).
736 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
738 allowExternalEgress: true
739 ## @param networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `networkPolicy.allowExternal` is true.
741 addExternalClientAccess: true
742 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
752 ## - matchExpressions:
758 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
768 ## - matchExpressions:
775 ## @param networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `networkPolicy.allowExternal` is true.
777 ## ingressPodMatchLabels:
780 ingressPodMatchLabels: {}
781 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
782 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces. Ignored if `networkPolicy.allowExternal` is true.
784 ingressNSMatchLabels: {}
785 ingressNSPodMatchLabels: {}
786## Configure the ingress resource that allows you to access the
787## Grafana installation. Set up the URL
788## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
791 ## @param ingress.enabled Set to true to enable ingress record generation
794 ## DEPRECATED: Use ingress.annotations instead of ingress.certManager
795 ## certManager: false
798 ## @param ingress.pathType Ingress Path type
800 pathType: ImplementationSpecific
801 ## @param ingress.apiVersion Override API Version (automatically detected if not set)
804 ## @param ingress.hostname When the ingress is enabled, a host pointing to this will be created
806 hostname: grafana.local
807 ## @param ingress.path Default path for the ingress resource
808 ## The Path to Grafana. You may need to set this to '/*' in order to use this with ALB ingress controllers.
811 ## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
812 ## For a full list of possible ingress annotations, please see
813 ## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
814 ## Use this parameter to set the required annotations for cert-manager, see
815 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
819 ## kubernetes.io/ingress.class: nginx
820 ## cert-manager.io/cluster-issuer: cluster-issuer-name
823 ## @param ingress.tls Enable TLS configuration for the hostname defined at ingress.hostname parameter
824 ## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}
825 ## You can use the ingress.secrets parameter to create this TLS secret or relay on cert-manager to create it
828 ## @param ingress.extraHosts The list of additional hostnames to be covered with this ingress record.
829 ## Most likely the hostname above will be enough, but in the event more hosts are needed, this is an array
831 ## - name: grafana.local
835 ## @param ingress.extraPaths Any additional arbitrary paths that may need to be added to the ingress under the main host.
836 ## For example: The ALB ingress controller requires a special rule for handling SSL redirection.
840 ## serviceName: ssl-redirect
841 ## servicePort: use-annotation
844 ## @param ingress.extraTls The tls configuration for additional hostnames to be covered with this ingress record.
845 ## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
849 ## secretName: grafana.local-tls
852 ## @param ingress.secrets If you're providing your own certificates, please use this to add the certificates as secrets
853 ## key and certificate should start with -----BEGIN CERTIFICATE----- or
854 ## -----BEGIN RSA PRIVATE KEY-----
856 ## name should line up with a tlsSecret set further up
857 ## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set
859 ## @param ingress.secrets It is also possible to create and manage the certificates outside of this helm chart
860 ## Please see README.md for more information
862 ## - name: grafana.local-tls
867 ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
870 ## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
872 ## @param ingress.extraRules Additional rules to be covered with this ingress record
873 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
876 ## - host: example.local
886## @section Metrics parameters
891 ## @param metrics.enabled Enable the export of Prometheus metrics
894 ## Prometheus Operator ServiceMonitor configuration
895 ## @param metrics.service.annotations [object] Annotations for Prometheus metrics service
899 prometheus.io/scrape: "true"
900 prometheus.io/port: "3000"
901 prometheus.io/path: "/metrics"
903 ## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
906 ## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
909 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
910 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
915 ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
916 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
918 ## scrapeTimeout: 10s
921 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
924 ## prometheus: my-prometheus
927 ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
928 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
931 ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
932 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
934 metricRelabelings: []
935 ## @param metrics.serviceMonitor.honorLabels Labels to honor to add to the scrape endpoint
938 ## DEPRECATED metrics.serviceMonitor.additionalLabels - It will be removed in a future release, please use metrics.serviceMonitor.labels instead
939 ## @param metrics.serviceMonitor.labels Additional custom labels for the ServiceMonitor
942 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
945 ## Prometheus Operator PrometheusRule configuration
948 ## @param metrics.prometheusRule.enabled if `true`, creates a Prometheus Operator PrometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`)
951 ## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
954 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
957 ## @param metrics.prometheusRule.rules PrometheusRule rules to configure
959 ## - alert: Grafana-Down
961 ## message: 'Grafana instance is down'
962 ## summary: Grafana instance is down
963 ## expr: absent(up{job="grafana"} == 1)
970## @section Volume permissions init Container Parameters
972## 'volumePermissions' init container parameters
973## Changes the owner and group of the persistent volume mount point to runAsUser:fsGroup values
974## based on the `grafana:podSecurityContext`/`grafana:containerSecurityContext`` parameters
975## May require setting `grafana:podSecurityContext:runAsNonRoot` to false
978 ## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
981 ## OS Shell + Utility image
982 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] OS Shell + Utility image registry
983 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] OS Shell + Utility image repository
984 ## @skip volumePermissions.image.tag OS Shell + Utility image tag (immutable tags are recommended)
985 ## @param volumePermissions.image.digest OS Shell + Utility image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
986 ## @param volumePermissions.image.pullPolicy OS Shell + Utility image pull policy
987 ## @param volumePermissions.image.pullSecrets OS Shell + Utility image pull secrets
991 repository: chainguard-private/os-shell-iamguarded
994 pullPolicy: IfNotPresent
995 ## Optionally specify an array of imagePullSecrets.
996 ## Secrets must be manually created in the namespace.
997 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1000 ## - myRegistryKeySecretName
1003 ## Init container's resource requests and limits
1004 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1005 ## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
1007 resourcesPreset: "nano"
1008 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1019 ## Init container Container Security Context
1020 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1021 ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1022 ## @param volumePermissions.containerSecurityContext.runAsUser Set init container's Security Context runAsUser
1023 ## NOTE: when runAsUser is set to special value "auto", init container will try to chown the
1024 ## data folder to auto-determined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
1025 ## "auto" is especially useful for OpenShift which has scc with dynamic user ids (and 0 is not allowed)
1027 containerSecurityContext:
1030## @section Diagnostic Mode Parameters
1032## Enable diagnostic mode in the deployment
1035 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
1038 ## @param diagnosticMode.command Command to override all containers in the deployment
1042 ## @param diagnosticMode.args Args to override all containers in the deployment