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
16## @param global.imageRegistry Global Docker image registry
17## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18## @param global.imagePullSecrets Global Docker registry secret names as an array
25 ## - myRegistryKeySecretName
28 ## Security parameters
31 ## @param global.security.allowInsecureImages Allows skipping image verification
32 allowInsecureImages: false
33 ## Compatibility adaptations for Kubernetes platforms
36 ## Compatibility adaptations for Openshift
39 ## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
41 adaptSecurityContext: disabled
43## @section Common parameters
46## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
49## @param nameOverride String to partially override common.names.fullname template with a string (will prepend the release name)
52## @param fullnameOverride String to fully override common.names.fullname template with a string
55## @param namespaceOverride String to fully override common.names.namespace
58## @param extraDeploy Array of extra objects to deploy with the release
61## @param commonLabels Common Labels which are applied to every resource deployed
64## @param commonAnnotations Common Annotations which are applied to every ressource deployed
67## @param clusterDomain Kubernetes cluster domain name
69clusterDomain: cluster.local
70## @section Grafana Operator parameters
73## This contains all configuration options for the Grafana Operator.
74## Ref: https://grafana.github.io/grafana-operator/docs/installation/helm/
75## Constants it is using for creating instances:
76## Ref: https://github.com/grafana/grafana-operator/blob/master/controllers/config/operator_constants.go
79 ## @param operator.enabled Enable the deployment of the Grafana Operator
82 ## @param operator.command [array] Default container command (useful when using custom images)
85 ## @param operator.args [array] Default container args (useful when using custom images)
88 ## @param operator.schedulerName Alternative scheduler
91 ## @param operator.lifecycleHooks for the grafana-operator container to automate configuration before or after startup
94 ## @param operator.replicaCount Number of grafana-operator Pod replicas
97 ## @param operator.customLivenessProbe [object] Override default liveness probe
99 customLivenessProbe: {}
100 ## @param operator.customReadinessProbe [object] Override default readiness probe
102 customReadinessProbe: {}
103 ## @param operator.customStartupProbe [object] Override default startup probe
105 customStartupProbe: {}
106 ## @param operator.extraVolumes [array] Optionally specify extra list of additional volumes for Grafana Operator pods
109 ## @param operator.extraVolumeMounts [array] Optionally specify extra list of additional volumeMounts for Grafana Operator container(s)
111 extraVolumeMounts: []
112 ## @param operator.initContainers [array] Add additional init containers to the Grafana Operator pods
115 ## - name: your-image-name
117 ## imagePullPolicy: Always
120 ## containerPort: 1234
123 ## Pod Disruption Budget configuration
124 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
125 ## @param operator.pdb.create Enable/disable a Pod Disruption Budget creation
126 ## @param operator.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
127 ## @param operator.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `operator.pdb.minAvailable` and `operator.pdb.maxUnavailable` are empty.
133 ## @param operator.sidecars [array] Add additional sidecar containers to the Grafana Operator pods
136 ## - name: your-image-name
138 ## imagePullPolicy: Always
141 ## containerPort: 1234
144 ## @param operator.namespaceScope If the operator should run in namespace-scope mode or not,
145 ## if true the operator will only be able to manage instances in the same namespace
147 namespaceScope: false
148 ## @param operator.watchNamespace Override the namespace to watch
151 ## @param operator.topologySpreadConstraints Topology Spread Constraints for pod assignment
152 ## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
153 ## The value is evaluated as a template
155 topologySpreadConstraints: []
156 ## @param operator.priorityClassName %%MAIN_CONTAINER_NAME%% pods' priorityClassName
158 priorityClassName: ""
159 ## @param operator.terminationGracePeriodSeconds In seconds, time the given to the %%MAIN_CONTAINER_NAME%% pod needs to terminate gracefully
160 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
162 terminationGracePeriodSeconds: ""
163 ## @param operator.updateStrategy.type Set up update strategy for Grafana Operator installation.
164 ## Set to Recreate if you use persistent volume that cannot be mounted by more than one pods to make sure the pods is destroyed first.
165 ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
168 ## type: RollingUpdate
171 ## maxUnavailable: 25%
175 ## @param operator.image.registry [default: REGISTRY_NAME] Grafana Operator image registry
176 ## @param operator.image.repository [default: REPOSITORY_NAME/grafana-operator] Grafana Operator image name
177 ## @skip operator.image.tag Grafana Operator image tag
178 ## @param operator.image.digest Grafana Operator image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
179 ## @param operator.image.pullPolicy Grafana Operator image pull policy
180 ## @param operator.image.pullSecrets Grafana Operator image pull secrets
184 repository: chainguard-private/grafana-operator-iamguarded
186 digest: sha256:7b7d4c8c51f636de99ebbec6e5e553d0e598ec701be0e421d817de4386a12968
187 ## Specify a imagePullPolicy
188 ## Ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
190 pullPolicy: IfNotPresent
191 ## Optionally specify an array of imagePullSecrets.
192 ## Secrets must be manually created in the namespace.
193 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
196 ## - myRegistryKeySecretName
199 ## @param operator.leaderElect Enables or disables the operator leader Election.
200 ## @param operator.zapDevel Enable zap development mode (changes defaults to console encoder, debug log level, disables sampling and stacktrace from 'warning' level)
201 ## @param operator.zapEncoder Zap log encoding ('json' or 'console')
202 ## @param operator.zapLevel Zap log level (one of 'debug', 'info', 'error' or any integer value > 0) (default info)
203 ## @param operator.zapSample Enable zap log sampling. Sampling will be disabled for integer log levels > 1
204 ## @param operator.zapStacktraceLevel Set the minimum log level that triggers stacktrace generation (default error)
205 ## @param operator.zapTimeEncoding Sets the zap time format ('epoch', 'millis', 'nano', or 'iso8601') (default )
206 ## @param operator.extraArgs Extra arguments for the grafana operator (Evaluated as a template)
208 ## This enabled leader election for the operator and creates a Role for the leader election.
211 ## If one of these options is set a clusterRole and clusterRoleBinding is created to
212 ## ensure that the operator is able to get data from other namespaces.
213 ## The options are mutually exclusive.
219 zapStacktraceLevel: ""
222 ## @param operator.rbac.create Create specifies whether to install and use RBAC rules
227 ## @param operator.serviceAccount.create Specifies whether a service account should be created
230 ## @param operator.serviceAccount.name The name of the service account to use. If not set and create is true, a name is generated using the fullname template
233 ## @param operator.serviceAccount.annotations Add annotations
236 ## @param operator.serviceAccount.automountServiceAccountToken Automount API credentials for a service account.
238 automountServiceAccountToken: false
239 ## Pod securityContext
240 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
241 ## @param operator.podSecurityContext.enabled Enable pods security context
242 ## @param operator.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
243 ## @param operator.podSecurityContext.sysctls Set kernel settings using the sysctl interface
244 ## @param operator.podSecurityContext.supplementalGroups Set filesystem extra groups
245 ## @param operator.podSecurityContext.fsGroup Group ID for the pods
249 fsGroupChangePolicy: Always
251 supplementalGroups: []
253 ## Container securityContext
254 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
255 ## @param operator.containerSecurityContext.enabled Enabled containers' Security Context
256 ## @param operator.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
257 ## @param operator.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
258 ## @param operator.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
259 ## @param operator.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
260 ## @param operator.containerSecurityContext.privileged Set container's Security Context privileged
261 ## @param operator.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
262 ## @param operator.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
263 ## @param operator.containerSecurityContext.capabilities.drop List of capabilities to be dropped
264 ## @param operator.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
266 containerSecurityContext:
273 readOnlyRootFilesystem: true
274 allowPrivilegeEscalation: false
278 type: "RuntimeDefault"
279 ## @param operator.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if operator.resources is set (operator.resources is recommended for production).
281 resourcesPreset: "nano"
282 ## @param operator.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
291 ## We usually recommend not to specify default resources and to leave this as a conscious
292 ## choice for the user. This also increases chances charts run on environments with little
293 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
294 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
303 ## @param operator.containerPorts.metrics Grafana Operator container port (used for metrics)
304 ## @param operator.containerPorts.health Grafana Operator container port (used for health probes)
309 ## @param operator.automountServiceAccountToken Mount Service Account token in pod
311 automountServiceAccountToken: true
312 ## @param operator.hostAliases Add deployment host aliases
313 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
316 ## @param operator.extraEnvVars Array with extra environment variables to add to RabbitMQ Cluster Operator nodes
323 ## @param operator.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for RabbitMQ Cluster Operator nodes
326 ## @param operator.extraEnvVarsSecret Name of existing Secret containing extra env vars for RabbitMQ Cluster Operator nodes
328 extraEnvVarsSecret: ""
329 ## @param operator.podAntiAffinityPreset Pod anti-affinity preset. Allowed values: `soft` or `hard`
330 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
332 podAntiAffinityPreset: soft
333 ## Node affinity preset
334 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
337 ## @param operator.nodeAffinityPreset.type Node affinity preset type. Allowed values: `soft` or `hard`
340 ## @param operator.nodeAffinityPreset.key Set nodeAffinity preset key
342 ## key: "kubernetes.io/e2e-az-name"
345 ## @param operator.nodeAffinityPreset.values Set nodeAffinity preset values
352 ## @param operator.podAnnotations Pod annotations
353 ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
356 ## @param operator.podLabels Additional pod labels
357 ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
360 ## @param operator.nodeSelector Node labels for pod assignment
361 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
364 ## @param operator.tolerations Tolerations for controller pod assignment
365 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
368 ## @param operator.affinity Affinity for controller pod assignment
369 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
373 ## Prometheus Operator service monitors
376 ## @param operator.prometheus.serviceMonitor.enabled Specify if a ServiceMonitor will be deployed for prometheus-operator
379 ## @param operator.prometheus.serviceMonitor.namespace Namespace for the ServiceMonitor Resource (defaults to the Release Namespace)
382 ## @param operator.prometheus.serviceMonitor.jobLabel Specify the jobLabel to use for the prometheus-operator
384 jobLabel: app.kubernetes.io/name
385 ## @param operator.prometheus.serviceMonitor.interval Scrape interval. If not set, the Prometheus default scrape interval is used
388 ## @param operator.prometheus.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
389 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
392 ## @param operator.prometheus.serviceMonitor.metricRelabelings Specify additional relabeling of metrics
394 metricRelabelings: []
395 ## @param operator.prometheus.serviceMonitor.relabelings Specify general relabeling
398 ## @param operator.prometheus.serviceMonitor.selector ServiceMonitor selector labels
401 ## prometheus: my-prometheus
404 ## @param operator.prometheus.serviceMonitor.labels Extra labels for the ServiceMonitor
407 ## @param operator.prometheus.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
410 ## Liveness probe value
411 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
412 ## @param operator.livenessProbe.enabled Enable livenessProbe
413 ## @param operator.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
414 ## @param operator.livenessProbe.periodSeconds Period seconds for livenessProbe
415 ## @param operator.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
416 ## @param operator.livenessProbe.failureThreshold Failure threshold for livenessProbe
417 ## @param operator.livenessProbe.successThreshold Success threshold for livenessProbe
422 initialDelaySeconds: 10
426 ## Readiness probe values
427 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
428 ## @param operator.readinessProbe.enabled Enable readinessProbe
429 ## @param operator.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
430 ## @param operator.readinessProbe.periodSeconds Period seconds for readinessProbe
431 ## @param operator.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
432 ## @param operator.readinessProbe.failureThreshold Failure threshold for readinessProbe
433 ## @param operator.readinessProbe.successThreshold Success threshold for readinessProbe
438 initialDelaySeconds: 10
442 ## Startup probe values
443 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-startup-probes/#configure-probes
444 ## @param operator.startupProbe.enabled Enable startupProbe
445 ## @param operator.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
446 ## @param operator.startupProbe.periodSeconds Period seconds for startupProbe
447 ## @param operator.startupProbe.timeoutSeconds Timeout seconds for startupProbe
448 ## @param operator.startupProbe.failureThreshold Failure threshold for startupProbe
449 ## @param operator.startupProbe.successThreshold Success threshold for startupProbe
454 initialDelaySeconds: 10
459 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
462 ## @param operator.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
465 ## @param operator.networkPolicy.allowExternal Don't require server label for connections
466 ## The Policy model to apply. When set to false, only pods with the correct
467 ## server label will have network access to the ports server is listening
468 ## on. When true, server will accept connections from any source
469 ## (with the correct destination port).
472 ## @param operator.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
474 allowExternalEgress: true
475 ## @param operator.networkPolicy.kubeAPIServerPorts [array] List of possible endpoints to kube-apiserver (limit to your cluster settings to increase security)
477 kubeAPIServerPorts: [443, 6443, 8443]
478 ## @param operator.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
488 ## - matchExpressions:
494 ## @param operator.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
504 ## - matchExpressions:
511 ## @param operator.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
512 ## @param operator.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
514 ingressNSMatchLabels: {}
515 ingressNSPodMatchLabels: {}
516## @section Grafana parameters
519 ## @param grafana.enabled Enabled the deployment of the Grafana CRD object into the cluster
522 ## @param grafana.image.registry [default: REGISTRY_NAME] Grafana image registry
523 ## @param grafana.image.repository [default: REPOSITORY_NAME/grafana] Grafana image name
524 ## @skip grafana.image.tag Grafana image tag
525 ## @param grafana.image.digest Grafana image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
526 ## @param grafana.image.pullPolicy Grafana image pull policy
527 ## @param grafana.image.pullSecrets Grafana image pull secrets
531 repository: chainguard-private/grafana-iamguarded
533 digest: sha256:e4df061920a07e34395c4de6d8c17daee5560a473ca83bd77f9dcb1f9bb24b0d
534 ## Specify a imagePullPolicy
535 ## Ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
537 pullPolicy: IfNotPresent
538 ## Optionally specify an array of imagePullSecrets.
539 ## Secrets must be manually created in the namespace.
540 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
543 ## - myRegistryKeySecretName
546 ## @param grafana.serviceAccount Additional service account configuration
547 ## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-serviceaccount
551 ## iam.gke.io/gcp-service-account: "grafana@preprodz.iam.gserviceaccount.com"
554 ## @param grafana.podLabels Additional pod labels to pods in the grafana deployment
555 ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
558 ## @param grafana.podAnnotations Additional pod annotations to pods in the grafana deployment
559 ## Ref https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
562 ## Pod securityContext
563 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
564 ## @param grafana.podSecurityContext.enabled Enable pods security context
565 ## @param grafana.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
566 ## @param grafana.podSecurityContext.sysctls Set kernel settings using the sysctl interface
567 ## @param grafana.podSecurityContext.supplementalGroups Set filesystem extra groups
568 ## @param grafana.podSecurityContext.fsGroup Group ID for the pods
572 fsGroupChangePolicy: Always
574 supplementalGroups: []
576 ## Container securityContext
577 ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
578 ## @param grafana.containerSecurityContext.enabled Enabled containers' Security Context
579 ## @param grafana.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
580 ## @param grafana.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
581 ## @param grafana.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
582 ## @param grafana.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
583 ## @param grafana.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
584 ## @param grafana.containerSecurityContext.privileged Set container's Security Context privileged
585 ## @param grafana.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
586 ## @param grafana.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
587 ## @param grafana.containerSecurityContext.capabilities.drop List of capabilities to be dropped
588 ## @param grafana.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
590 containerSecurityContext:
597 readOnlyRootFilesystem: false
598 allowPrivilegeEscalation: false
602 type: "RuntimeDefault"
603 ## Grafana containers' resource requests and limits
604 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
605 ## We usually recommend not to specify default resources and to leave this as a conscious
606 ## choice for the user. This also increases chances charts run on environments with little
607 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
608 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
609 ## @param grafana.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if grafana.resources is set (grafana.resources is recommended for production).
611 resourcesPreset: "none"
612 ## @param grafana.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
623 ## @param grafana.replicaCount Specify the amount of replicas running
624 ## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-deployment
625 ## NOTE: Number of replicas. If more than one is selected, a shared database should be configured.
628 ## @param grafana.podAffinityPreset Pod affinity preset
629 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
630 ## Allowed values: soft, hard
632 podAffinityPreset: ""
633 ## @param grafana.podAntiAffinityPreset Pod anti-affinity preset
634 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
635 ## Allowed values: soft, hard
637 podAntiAffinityPreset: soft
638 ## Node affinity preset
639 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
640 ## Allowed values: soft, hard
643 ## @param grafana.nodeAffinityPreset.type Set nodeAffinity preset type
644 ## Allowed values: soft, hard
647 ## @param grafana.nodeAffinityPreset.key Set nodeAffinity preset key
649 ## key: "kubernetes.io/e2e-az-name"
652 ## @param grafana.nodeAffinityPreset.values Set nodeAffinity preset values
659 ## @param grafana.affinity Affinity for controller pod assignment
660 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
661 ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
664 ## @param grafana.nodeSelector Node labels for controller pod assignment
665 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
668 ## @param grafana.tolerations Tolerations for controller pod assignment
669 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
672 ## Pod Disruption Budget configuration for the grafana instance
673 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
674 ## @param grafana.pdb.create Enable/disable a Pod Disruption Budget creation
675 ## @param grafana.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
676 ## @param grafana.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `grafana.pdb.minAvailable` and `grafana.pdb.maxUnavailable` are empty.
682 ## @param grafana.extraEnvVars Array containing extra env vars to configure Grafana
686 ## value: my-env-value
689 ## @param grafana.envFrom Extra environment variable to pass to the running container
690 ## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-deployment
694 ## name: grafana-configmap
696 ## name: grafana-secrets
699 ## The grafana-operator client-configuration for this grafana instance
700 ## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-grafana-api-access
701 ## @param grafana.client.timeout The timeout in seconds for the Grafana Rest API on that instance
705 ## @param grafana.labels Add additional labels to the grafana deployment, service and ingress resources
708 ## Configure the Service resource
709 ## Ref: https://github.com/grafana-operator/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-service
712 ## @param grafana.service.type Kubernetes Service type
715 ## @param grafana.service.annotations Additional custom annotations for Grafana service
718 ## @param grafana.service.extraPorts Extra ports to expose in the Grafana service
720 ## - name: grafana-proxy
723 ## targetPort: grafana-http
726 ## Configure the ingress resource that allows you to access the
727 ## Grafana web. Set up the URL
728 ## Ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
729 ## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#configuring-the-ingress-or-route
732 ## @param grafana.ingress.enabled If an ingress or OpenShift Route should be created
735 ## @param grafana.ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
736 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster.
737 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
740 ## @param grafana.ingress.host The host under which the grafana instance should be reachable. If empty the parameter will not be set.
743 ## @param grafana.ingress.path The path for the ingress instance to forward to the grafana app
746 ## @param grafana.ingress.pathType The pathType for the ingress instance to forward to the grafana app
748 pathType: ImplementationSpecific
749 ## @param grafana.ingress.labels Additional Labels for the ingress resource
752 ## @param grafana.ingress.annotations Additional Annotations for the ingress resource
753 ## For a full list of possible ingress annotations, please see
754 ## Ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
756 ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set
757 ## If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set
759 ## kubernetes.io/ingress.class: nginx
762 ## @param grafana.ingress.tls This enables tls support for the ingress resource
765 ## @param grafana.ingress.tlsSecret The name for the secret to use for the tls termination
767 tlsSecret: grafana.local-tls
768 ## Enable persistence using Persistent Volume Claims
769 ## Ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
772 ## @param grafana.persistence.enabled Enable persistent storage for the grafana deployment
773 ## NOTE: In order to avoid deployment failure due to multi-attach of the same volume,
774 ## you might also want to set `grafana.updateStrategy` to Recreate.
775 ## More information can be found here: https://github.com/grafana-operator/grafana-operator/issues/453
778 ## @param grafana.persistence.storageClass Define the storageClass for the persistent storage if not defined default is used
779 ## If defined, storageClassName: <storageClass>
780 ## If set to "-", storageClassName: "", which disables dynamic provisioning
781 ## If undefined (the default) or set to null, no storageClassName spec is
782 ## set, choosing the default provisioner. (gp2 on AWS, standard on
783 ## GKE, AWS & OpenStack)
786 ## @param grafana.persistence.existingVolume Define the existingVolume for the persistent storage provisioned outside this chart
787 ## https://github.com/grafana-operator/grafana-operator/blob/master/deploy/examppersistentvolume/Grafana-existingVolume.yaml
789 ## @param grafana.persistence.accessModes Define the accessModes for the persistent storage
793 ## @param grafana.persistence.annotations Add annotations to the persistent volume
796 ## @param grafana.persistence.size Define the size of the PersistentVolumeClaim to request for
799 ## @param grafana.config [object] grafana.ini configuration for the instance for this to configure please look at upstream docs
800 ## This is the configuration from the grafana pod itself. Every toml section is a root key
801 ## Ref: https://grafana.com/docs/grafana/latest/administration/configuration/
806 {{- if .Values.grafana.ingress.enabled }}
807 {{ if .Values.grafana.ingress.tls }}https{{ else }}http{{ end }}://{{ include "common.tplvalues.render" (dict "value" .Values.grafana.ingress.host "context" $) }}
809 http://localhost:3000
817 reporting_enabled: "false"
818 check_for_updates: "false"
820 # ## Grafana Admin credentials, if omitted they will be admin:<random_pass>
823 disable_gravatar: "false"
824 # ## OIDC configuration (all auth sections should be under config, not security)
827 # disable_login_form: "false"
828 # disable_signout_menu: "false"
829 # auth.generic_oauth:
832 # client_secret: a391df94-dd1f-46d6-b3ab-60e90f23e8a2
833 # scopes: profile email
834 # auth_url: https://keycloak.example.com/auth/realms/master/protocol/openid-connect/auth
835 # token_url: https://keycloak.example.com/auth/realms/master/protocol/openid-connect/token
836 # api_url: https://keycloak.example.com/auth/realms/master/protocol/openid-connect/userinfo
837 # ## Automatic role handling with OIDC
839 # # role_attribute_path: contains(groups[*], 'platform-readonly') && 'Viewer' || contains(groups[*], 'platform-admin') && 'Admin' || contains(groups[*], 'platform-emergency') && 'Admin' || contains(groups[*], 'customer-poweruser') && 'Admin' || contains(groups[*], 'customer-collaborator') && 'Editor' || contains(groups[*], 'customer-readonly') && 'Viewer'
840 # # allowed_domains: example.com
841 # allow_sign_up: "True"
842 ## @param grafana.jsonnetLibrarySelector [object] Configuring the read for jsonnetLibraries to pull in.
843 ## Ref: https://github.com/integr8ly/grafana-operator/blob/master/documentation/deploy_grafana.md#jsonnet-library-discovery
845 jsonnetLibrarySelector:
847 app.kubernetes.io/instance: "{{ .Release.Name }}"
848 ## Grafana containers' liveness probe
849 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
850 ## @param grafana.livenessProbe.enabled Enable livenessProbe
851 ## @param grafana.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
852 ## @param grafana.livenessProbe.periodSeconds Period seconds for livenessProbe
853 ## @param grafana.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
854 ## @param grafana.livenessProbe.failureThreshold Failure threshold for livenessProbe
855 ## @param grafana.livenessProbe.successThreshold Success threshold for livenessProbe
859 initialDelaySeconds: 120
864 ## Grafana containers' readiness probe
865 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
866 ## @param grafana.readinessProbe.enabled Enable readinessProbe
867 ## @param grafana.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
868 ## @param grafana.readinessProbe.periodSeconds Period seconds for readinessProbe
869 ## @param grafana.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
870 ## @param grafana.readinessProbe.failureThreshold Failure threshold for readinessProbe
871 ## @param grafana.readinessProbe.successThreshold Success threshold for readinessProbe
875 initialDelaySeconds: 30
880 ## @param grafana.updateStrategy Set up update strategy for Grafana installation.
881 ## Set to Recreate if you use persistent volume that cannot be mounted by more than one pods to make sure the pods is destroyed first.
882 ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
885 ## type: RollingUpdate
888 ## maxUnavailable: 25%
891 ## @param grafana.extraVolumes Optionally specify extra list of additional volumes for the grafana pod(s)
894 ## @param grafana.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the grafana container
896 extraVolumeMounts: []
897 ## @param grafana.secrets Optionally specify a list of secrets to be mounted to the grafana pod(s)
900 ## @param grafana.sidecars Add additional sidecar containers to the grafana pod(s)
903 ## - name: your-image-name
905 ## imagePullPolicy: Always
908 ## containerPort: 1234