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.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
25 ## - myRegistryKeySecretName
28 defaultStorageClass: ""
30 ## Security parameters
33 ## @param global.security.allowInsecureImages Allows skipping image verification
34 allowInsecureImages: false
35 ## Compatibility adaptations for Kubernetes platforms
38 ## Compatibility adaptations for Openshift
41 ## @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)
43 adaptSecurityContext: auto
45## @section Common parameters
48## @param kubeVersion Override Kubernetes version
51## @param nameOverride String to partially override common.names.name
54## @param fullnameOverride String to fully override common.names.fullname
57## @param namespaceOverride String to fully override common.names.namespace
60## @param commonLabels Labels to add to all deployed objects
63## @param commonAnnotations Annotations to add to all deployed objects
66## @param clusterDomain Kubernetes cluster domain name
68clusterDomain: cluster.local
69## @param extraDeploy Array of extra objects to deploy with the release
72## Enable diagnostic mode in the deployment
75 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
78 ## @param diagnosticMode.command Command to override all containers in the deployment
82 ## @param diagnosticMode.args Args to override all containers in the deployment
86## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
90## @section Alertmanager Parameters
92## Iamguarded Alertmanager image
93## @param alertmanager.enabled Alertmanager enabled
94## @param alertmanager.image.registry [default: REGISTRY_NAME] Alertmanager image registry
95## @param alertmanager.image.repository [default: REPOSITORY_NAME/alertmanager] Alertmanager image repository
96## @skip alertmanager.image.tag Alertmanager image tag (immutable tags are recommended)
97## @param alertmanager.image.digest Alertmanager image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended)
98## @param alertmanager.image.pullPolicy Alertmanager image pull policy
99## @param alertmanager.image.pullSecrets Alertmanager image pull secrets
105 repository: chainguard-private/prometheus-alertmanager-iamguarded
108 ## Specify a imagePullPolicy
109 ## ref: http://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
111 pullPolicy: IfNotPresent
112 ## Optionally specify an array of imagePullSecrets.
113 ## Secrets must be manually created in the namespace.
114 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
117 ## - myRegistryKeySecretName
120 ## @param alertmanager.configuration [string] Alertmanager configuration. This content will be stored in the the alertmanager.yaml file and the content can be a template.
121 ## ref: <https://github.com/prometheus-community/helm-charts/blob/8f2743ed3a9c93c56978a95b62a63e84c52f5748/charts/alertmanager/values.yaml#L171-L188>
125 - name: default-receiver
129 receiver: default-receiver
131 ## @param alertmanager.replicaCount Number of Alertmanager replicas to deploy
134 ## @param alertmanager.containerPorts.http Alertmanager HTTP container port
135 ## @param alertmanager.containerPorts.cluster Alertmanager Cluster HA port
140 ## Configure extra options for Alertmanager containers' liveness and readiness probes
141 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
142 ## @param alertmanager.livenessProbe.enabled Enable livenessProbe on Alertmanager containers
143 ## @param alertmanager.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
144 ## @param alertmanager.livenessProbe.periodSeconds Period seconds for livenessProbe
145 ## @param alertmanager.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
146 ## @param alertmanager.livenessProbe.failureThreshold Failure threshold for livenessProbe
147 ## @param alertmanager.livenessProbe.successThreshold Success threshold for livenessProbe
151 initialDelaySeconds: 5
156 ## @param alertmanager.readinessProbe.enabled Enable readinessProbe on Alertmanager containers
157 ## @param alertmanager.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
158 ## @param alertmanager.readinessProbe.periodSeconds Period seconds for readinessProbe
159 ## @param alertmanager.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
160 ## @param alertmanager.readinessProbe.failureThreshold Failure threshold for readinessProbe
161 ## @param alertmanager.readinessProbe.successThreshold Success threshold for readinessProbe
165 initialDelaySeconds: 5
170 ## @param alertmanager.startupProbe.enabled Enable startupProbe on Alertmanager containers
171 ## @param alertmanager.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
172 ## @param alertmanager.startupProbe.periodSeconds Period seconds for startupProbe
173 ## @param alertmanager.startupProbe.timeoutSeconds Timeout seconds for startupProbe
174 ## @param alertmanager.startupProbe.failureThreshold Failure threshold for startupProbe
175 ## @param alertmanager.startupProbe.successThreshold Success threshold for startupProbe
179 initialDelaySeconds: 2
184 ## @param alertmanager.customLivenessProbe Custom livenessProbe that overrides the default one
186 customLivenessProbe: {}
187 ## @param alertmanager.customReadinessProbe Custom readinessProbe that overrides the default one
189 customReadinessProbe: {}
190 ## @param alertmanager.customStartupProbe Custom startupProbe that overrides the default one
192 customStartupProbe: {}
193 ## Alertmanager resource requests and limits
194 ## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
195 ## @param alertmanager.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if alertmanager.resources is set (alertmanager.resources is recommended for production).
197 resourcesPreset: "nano"
198 ## @param alertmanager.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
209 ## Configure Pods Security Context
210 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
211 ## @param alertmanager.podSecurityContext.enabled Enabled Alertmanager pods' Security Context
212 ## @param alertmanager.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
213 ## @param alertmanager.podSecurityContext.sysctls Set kernel settings using the sysctl interface
214 ## @param alertmanager.podSecurityContext.supplementalGroups Set filesystem extra groups
215 ## @param alertmanager.podSecurityContext.fsGroup Set Alertmanager pod's Security Context fsGroup
219 fsGroupChangePolicy: Always
221 supplementalGroups: []
223 ## Configure Container Security Context
224 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
225 ## @param alertmanager.containerSecurityContext.enabled Enabled containers' Security Context
226 ## @param alertmanager.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
227 ## @param alertmanager.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
228 ## @param alertmanager.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
229 ## @param alertmanager.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
230 ## @param alertmanager.containerSecurityContext.privileged Set container's Security Context privileged
231 ## @param alertmanager.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
232 ## @param alertmanager.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
233 ## @param alertmanager.containerSecurityContext.capabilities.drop List of capabilities to be dropped
234 ## @param alertmanager.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
236 containerSecurityContext:
243 readOnlyRootFilesystem: true
244 allowPrivilegeEscalation: false
248 type: "RuntimeDefault"
249 ## @param alertmanager.existingConfigmap The name of an existing ConfigMap with your custom configuration for Alertmanager
251 existingConfigmap: ""
252 ## @param alertmanager.existingConfigmapKey The name of the key with the Alertmanager config file
254 existingConfigmapKey: ""
255 ## @param alertmanager.command Override default container command (useful when using custom images)
258 ## @param alertmanager.args Override default container args (useful when using custom images)
261 ## @param alertmanager.extraArgs Additional arguments passed to the Prometheus server container
263 ## - --log.level=debug
264 ## - --tsdb.path=/data/
267 ## @param alertmanager.automountServiceAccountToken Mount Service Account token in pod
269 automountServiceAccountToken: false
270 ## @param alertmanager.hostAliases Alertmanager pods host aliases
271 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
274 ## @param alertmanager.podLabels Extra labels for Alertmanager pods
275 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
278 ## @param alertmanager.podAnnotations Annotations for Alertmanager pods
279 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
282 ## @param alertmanager.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
283 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
285 podAffinityPreset: ""
286 ## @param alertmanager.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
287 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
289 podAntiAffinityPreset: soft
290 ## Pod Disruption Budget configuration
291 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
292 ## @param alertmanager.pdb.create Enable/disable a Pod Disruption Budget creation
293 ## @param alertmanager.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
294 ## @param alertmanager.pdb.maxUnavailable [object] Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `alertmanager.pdb.minAvailable` and `alertmanager.pdb.maxUnavailable` are empty.
300 ## Node affinity preset
301 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
304 ## @param alertmanager.nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
307 ## @param alertmanager.nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set
310 ## @param alertmanager.nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set
317 ## @param alertmanager.affinity Affinity for Alertmanager pods assignment
318 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
319 ## NOTE: `podAffinityPreset`, `podAntiAffinityPreset`, and `nodeAffinityPreset` will be ignored when it's set
322 ## @param alertmanager.nodeSelector Node labels for Alertmanager pods assignment
323 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
326 ## @param alertmanager.tolerations Tolerations for Alertmanager pods assignment
327 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
330 ## @param alertmanager.updateStrategy.type Alertmanager statefulset strategy type
331 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
335 ## Can be set to RollingUpdate or OnDelete
338 ## @param alertmanager.podManagementPolicy Statefulset Pod management policy, it needs to be Parallel to be able to complete the cluster join
339 ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
341 podManagementPolicy: OrderedReady
342 ## @param alertmanager.priorityClassName Alertmanager pods' priorityClassName
344 priorityClassName: ""
345 ## @param alertmanager.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
346 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
348 topologySpreadConstraints: []
349 ## @param alertmanager.schedulerName Name of the k8s scheduler (other than default) for Alertmanager pods
350 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
353 ## @param alertmanager.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
354 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
356 terminationGracePeriodSeconds: ""
357 ## @param alertmanager.lifecycleHooks for the Alertmanager container(s) to automate configuration before or after startup
360 ## @param alertmanager.extraEnvVars Array with extra environment variables to add to Alertmanager nodes
367 ## @param alertmanager.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Alertmanager nodes
370 ## @param alertmanager.extraEnvVarsSecret Name of existing Secret containing extra env vars for Alertmanager nodes
372 extraEnvVarsSecret: ""
373 ## @param alertmanager.extraVolumes Optionally specify extra list of additional volumes for the Alertmanager pod(s)
376 ## @param alertmanager.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Alertmanager container(s)
378 extraVolumeMounts: []
379 ## @param alertmanager.sidecars Add additional sidecar containers to the Alertmanager pod(s)
382 ## - name: your-image-name
384 ## imagePullPolicy: Always
387 ## containerPort: 1234
390 ## @param alertmanager.initContainers Add additional init containers to the Alertmanager pod(s)
391 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
394 ## - name: your-image-name
396 ## imagePullPolicy: Always
397 ## command: ['sh', '-c', 'echo "hello world"']
400 ## Alertmanager ingress parameters
401 ## ref: http://kubernetes.io/docs/concepts/services-networking/ingress/
404 ## @param alertmanager.ingress.enabled Enable ingress record generation for Alertmanager
407 ## @param alertmanager.ingress.pathType Ingress path type
409 pathType: ImplementationSpecific
410 ## @param alertmanager.ingress.hostname Default host for the ingress record
412 hostname: alertmanager.prometheus.local
413 ## @param alertmanager.ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
414 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
415 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
418 ## @param alertmanager.ingress.path Default path for the ingress record
419 ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
422 ## @param alertmanager.ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
423 ## Use this parameter to set the required annotations for cert-manager, see
424 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
427 ## kubernetes.io/ingress.class: nginx
428 ## cert-manager.io/cluster-issuer: cluster-issuer-name
431 ## @param alertmanager.ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
432 ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
434 ## - Use the `ingress.secrets` parameter to create this TLS secret
435 ## - Rely on cert-manager to create it by setting the corresponding annotations
436 ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
439 ## @param alertmanager.ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
442 ## @param alertmanager.ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
445 ## - name: prometheus.local
449 ## @param alertmanager.ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
454 ## serviceName: ssl-redirect
455 ## servicePort: use-annotation
458 ## @param alertmanager.ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
459 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
463 ## - prometheus.local
464 ## secretName: prometheus.local-tls
467 ## @param alertmanager.ingress.secrets Custom TLS certificates as secrets
468 ## NOTE: 'key' and 'certificate' are expected in PEM format
469 ## NOTE: 'name' should line up with a 'secretName' set further up
470 ## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates
471 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
472 ## It is also possible to create and manage the certificates outside of this helm chart
473 ## Please see README.md for more information
476 ## - name: prometheus.local-tls
478 ## -----BEGIN RSA PRIVATE KEY-----
480 ## -----END RSA PRIVATE KEY-----
482 ## -----BEGIN CERTIFICATE-----
484 ## -----END CERTIFICATE-----
487 ## @param alertmanager.ingress.extraRules Additional rules to be covered with this ingress record
488 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
491 ## - host: example.local
501 ## ServiceAccount configuration
504 ## @param alertmanager.serviceAccount.create Specifies whether a ServiceAccount should be created
507 ## @param alertmanager.serviceAccount.name The name of the ServiceAccount to use.
508 ## If not set and create is true, a name is generated using the common.names.fullname template
511 ## @param alertmanager.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
514 ## @param alertmanager.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
516 automountServiceAccountToken: false
518 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
521 ## @param alertmanager.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
524 ## @param alertmanager.networkPolicy.allowExternal Don't require alertmanager label for connections
525 ## The Policy model to apply. When set to false, only pods with the correct
526 ## alertmanager label will have network access to the ports alertmanager is listening
527 ## on. When true, alertmanager will accept connections from any source
528 ## (with the correct destination port).
531 ## @param alertmanager.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
533 allowExternalEgress: true
534 ## @param alertmanager.networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `alertmanager.networkPolicy.allowExternal` is true.
536 addExternalClientAccess: true
537 ## @param alertmanager.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
547 ## - matchExpressions:
553 ## @param alertmanager.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
563 ## - matchExpressions:
570 ## @param alertmanager.networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `alertmanager.networkPolicy.allowExternal` is true.
572 ## ingressPodMatchLabels:
575 ingressPodMatchLabels: {}
576 ## @param alertmanager.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces. Ignored if `alertmanager.networkPolicy.allowExternal` is true.
577 ## @param alertmanager.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces. Ignored if `alertmanager.networkPolicy.allowExternal` is true.
579 ingressNSMatchLabels: {}
580 ingressNSPodMatchLabels: {}
581 ## Alertmanager service parameters
584 ## @param alertmanager.service.type Alertmanager service type
587 ## @param alertmanager.service.ports.http Alertmanager service HTTP port
588 ## @param alertmanager.service.ports.cluster Alertmanager cluster HA port
593 ## Node ports to expose
594 ## @param alertmanager.service.nodePorts.http Node port for HTTP
595 ## NOTE: choose port between <30000-32767>
599 ## @param alertmanager.service.clusterIP Alertmanager service Cluster IP
604 ## @param alertmanager.service.loadBalancerIP Alertmanager service Load Balancer IP
605 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
608 ## @param alertmanager.service.loadBalancerClass Alertmanager service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
609 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
611 loadBalancerClass: ""
612 ## @param alertmanager.service.loadBalancerSourceRanges Alertmanager service Load Balancer sources
613 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
615 ## loadBalancerSourceRanges:
618 loadBalancerSourceRanges: []
619 ## @param alertmanager.service.externalTrafficPolicy Alertmanager service external traffic policy
620 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
622 externalTrafficPolicy: Cluster
623 ## @param alertmanager.service.annotations Additional custom annotations for Alertmanager service
626 ## @param alertmanager.service.extraPorts Extra ports to expose in Alertmanager service (normally used with the `sidecars` value)
629 ## @param alertmanager.service.sessionAffinity Control where client requests go, to the same pod or round-robin
630 ## Values: ClientIP or None
631 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
633 sessionAffinity: None
634 ## @param alertmanager.service.sessionAffinityConfig Additional settings for the sessionAffinity
635 ## sessionAffinityConfig:
637 ## timeoutSeconds: 300
639 sessionAffinityConfig: {}
641 ## @param alertmanager.persistence.enabled Enable Alertmanager data persistence using VolumeClaimTemplates
644 ## @param alertmanager.persistence.mountPath Path to mount the volume at.
646 mountPath: /iamguarded/alertmanager/data
647 ## @param alertmanager.persistence.subPath The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services
650 ## @param alertmanager.persistence.storageClass PVC Storage Class for Concourse worker data volume
651 ## If defined, storageClassName: <storageClass>
652 ## If set to "-", storageClassName: "", which disables dynamic provisioning
653 ## If undefined (the default) or set to null, no storageClassName spec is
654 ## set, choosing the default provisioner. (gp2 on AWS, standard on
655 ## GKE, AWS & OpenStack)
658 ## @param alertmanager.persistence.accessModes PVC Access Mode for Concourse worker volume
662 ## @param alertmanager.persistence.size PVC Storage Request for Concourse worker volume
665 ## @param alertmanager.persistence.annotations Annotations for the PVC
668 ## @param alertmanager.persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
674## @section Prometheus server Parameters
676## Iamguarded Prometheus image
677## @param server.image.registry [default: REGISTRY_NAME] Prometheus image registry
678## @param server.image.repository [default: REPOSITORY_NAME/prometheus] Prometheus image repository
679## @skip server.image.tag Prometheus image tag (immutable tags are recommended)
680## @param server.image.digest Prometheus image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended)
681## @param server.image.pullPolicy Prometheus image pull policy
682## @param server.image.pullSecrets Prometheus image pull secrets
687 repository: chainguard-private/prometheus-iamguarded
690 ## Specify a imagePullPolicy
691 ## ref: http://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
693 pullPolicy: IfNotPresent
694 ## Optionally specify an array of imagePullSecrets.
695 ## Secrets must be manually created in the namespace.
696 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
699 ## - myRegistryKeySecretName
702 ## @param server.scrapePrometheusHost Specifies whether to include prometheus host scraping job
704 scrapePrometheusHost: true
705 ## @param server.scrapeAlertmanagerHost Specifies whether to include alertmanager host scraping job
707 scrapeAlertmanagerHost: true
708 ## @param server.configuration [string] Promethus configuration. This content will be stored in the the prometheus.yaml file and the content can be a template.
709 ## ref: <https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus/values.yaml>
713 {{- if .Values.server.scrapeInterval }}
714 scrape_interval: {{ .Values.server.scrapeInterval }}
716 {{- if .Values.server.scrapeTimeout }}
717 scrape_timeout: {{ .Values.server.scrapeTimeout }}
719 {{- if .Values.server.evaluationInterval }}
720 evaluation_interval: {{ .Values.server.evaluationInterval }}
723 monitor: {{ template "common.names.fullname" . }}
724 {{- if .Values.server.externalLabels }}
725 {{- include "common.tplvalues.render" (dict "value" .Values.server.externalLabels "context" $) | nindent 4 }}
727 {{- if .Values.server.remoteWrite }}
728 remote_write: {{- include "common.tplvalues.render" (dict "value" .Values.server.remoteWrite "context" $) | nindent 4 }}
731 {{- if .Values.server.scrapePrometheusHost }}
732 - job_name: prometheus
733 {{- include "prometheus.scrape_config" (dict "component" "server" "context" $) | nindent 4 }}
735 {{- if and .Values.alertmanager.enabled .Values.server.scrapeAlertmanagerHost }}
736 - job_name: alertmanager
737 {{- include "prometheus.scrape_config" (dict "component" "alertmanager" "context" $) | nindent 4 }}
739 {{- if .Values.server.extraScrapeConfigs}}
740 {{- include "common.tplvalues.render" (dict "value" .Values.server.extraScrapeConfigs "context" $) | nindent 2 }}
742 {{- if or .Values.alertmanager.enabled .Values.server.alertingEndpoints}}
745 {{- if .Values.server.alertingEndpoints }}
746 {{- include "common.tplvalues.render" (dict "value" .Values.server.alertingEndpoints "context" $) | nindent 4 }}
750 - targets: [ "{{ printf "%s.%s.svc.%s:%d" (include "prometheus.alertmanager.fullname" .) (include "common.names.namespace" .) .Values.clusterDomain (int .Values.alertmanager.service.ports.http) }}" ]
754 ## @param server.alertingRules Prometheus alerting rules. This content will be stored in the the rules.yaml file and the content can be a template.
755 ## ref: <https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/>
758 ## @param server.extraScrapeConfigs Promethus configuration, useful to declare new scrape_configs. This content will be merged with the 'server.configuration' value and stored in the the prometheus.yaml file.
759 ## ref: <https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config>
761 extraScrapeConfigs: []
762 ## @param server.replicaCount Number of Prometheus replicas to deploy
765 ## @param server.containerPorts.http Prometheus HTTP container port
769 ## Configure extra options for Prometheus containers' liveness and readiness probes
770 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
771 ## @param server.livenessProbe.enabled Enable livenessProbe on Prometheus containers
772 ## @param server.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
773 ## @param server.livenessProbe.periodSeconds Period seconds for livenessProbe
774 ## @param server.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
775 ## @param server.livenessProbe.failureThreshold Failure threshold for livenessProbe
776 ## @param server.livenessProbe.successThreshold Success threshold for livenessProbe
780 initialDelaySeconds: 5
785 ## @param server.readinessProbe.enabled Enable readinessProbe on Prometheus containers
786 ## @param server.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
787 ## @param server.readinessProbe.periodSeconds Period seconds for readinessProbe
788 ## @param server.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
789 ## @param server.readinessProbe.failureThreshold Failure threshold for readinessProbe
790 ## @param server.readinessProbe.successThreshold Success threshold for readinessProbe
794 initialDelaySeconds: 5
799 ## @param server.startupProbe.enabled Enable startupProbe on Prometheus containers
800 ## @param server.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
801 ## @param server.startupProbe.periodSeconds Period seconds for startupProbe
802 ## @param server.startupProbe.timeoutSeconds Timeout seconds for startupProbe
803 ## @param server.startupProbe.failureThreshold Failure threshold for startupProbe
804 ## @param server.startupProbe.successThreshold Success threshold for startupProbe
808 initialDelaySeconds: 2
813 ## @param server.customLivenessProbe Custom livenessProbe that overrides the default one
815 customLivenessProbe: {}
816 ## @param server.customReadinessProbe Custom readinessProbe that overrides the default one
818 customReadinessProbe: {}
819 ## @param server.customStartupProbe Custom startupProbe that overrides the default one
821 customStartupProbe: {}
822 ## Prometheus resource requests and limits
823 ## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
824 ## @param server.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if server.resources is set (server.resources is recommended for production).
826 resourcesPreset: "nano"
827 ## @param server.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
838 ## Configure Pods Security Context
839 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
840 ## @param server.podSecurityContext.enabled Enabled Prometheus pods' Security Context
841 ## @param server.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
842 ## @param server.podSecurityContext.sysctls Set kernel settings using the sysctl interface
843 ## @param server.podSecurityContext.supplementalGroups Set filesystem extra groups
844 ## @param server.podSecurityContext.fsGroup Set Prometheus pod's Security Context fsGroup
848 fsGroupChangePolicy: Always
850 supplementalGroups: []
852 ## Configure Container Security Context
853 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
854 ## @param server.containerSecurityContext.enabled Enabled containers' Security Context
855 ## @param server.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
856 ## @param server.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
857 ## @param server.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
858 ## @param server.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
859 ## @param server.containerSecurityContext.privileged Set container's Security Context privileged
860 ## @param server.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
861 ## @param server.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
862 ## @param server.containerSecurityContext.capabilities.drop List of capabilities to be dropped
863 ## @param server.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
865 containerSecurityContext:
872 readOnlyRootFilesystem: true
873 allowPrivilegeEscalation: false
877 type: "RuntimeDefault"
878 ## @param server.existingConfigmap The name of an existing ConfigMap with your custom configuration for Prometheus
880 existingConfigmap: ""
881 ## @param server.existingConfigmapKey The name of the key with the Prometheus config file
883 existingConfigmapKey: ""
884 ## @param server.command Override default container command (useful when using custom images)
887 ## @param server.args Override default container args (useful when using custom images)
890 ## @param server.extraArgs Additional arguments passed to the Prometheus server container
892 ## - --log.level=debug
893 ## - --tsdb.path=/data/
896 ## @param server.automountServiceAccountToken Mount Service Account token in pod
898 automountServiceAccountToken: true
899 ## @param server.hostAliases Prometheus pods host aliases
900 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
903 ## @param server.podLabels Extra labels for Prometheus pods
904 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
907 ## @param server.podAnnotations Annotations for Prometheus pods
908 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
911 ## @param server.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
912 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
914 podAffinityPreset: ""
915 ## @param server.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
916 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
918 podAntiAffinityPreset: soft
919 ## Pod Disruption Budget configuration
920 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
921 ## @param server.pdb.create Enable/disable a Pod Disruption Budget creation
922 ## @param server.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
923 ## @param server.pdb.maxUnavailable [object] Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `server.pdb.minAvailable` and `server.pdb.maxUnavailable` are empty.
929 ## Node affinity preset
930 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
933 ## @param server.nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
936 ## @param server.nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set
939 ## @param server.nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set
946 ## @param server.affinity Affinity for Prometheus pods assignment
947 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
948 ## NOTE: `podAffinityPreset`, `podAntiAffinityPreset`, and `nodeAffinityPreset` will be ignored when it's set
951 ## @param server.nodeSelector Node labels for Prometheus pods assignment
952 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
955 ## @param server.tolerations Tolerations for Prometheus pods assignment
956 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
959 ## @param server.updateStrategy.type Prometheus deployment strategy type. If persistence is enabled, strategy type should be set to Recreate to avoid dead locks.
960 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
964 ## Can be set to RollingUpdate or Recreate
967 ## @param server.priorityClassName Prometheus pods' priorityClassName
969 priorityClassName: ""
970 ## @param server.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
971 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
973 topologySpreadConstraints: []
974 ## @param server.schedulerName Name of the k8s scheduler (other than default) for Prometheus pods
975 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
978 ## @param server.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
979 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
981 terminationGracePeriodSeconds: ""
982 ## @param server.lifecycleHooks for the Prometheus container(s) to automate configuration before or after startup
985 ## @param server.extraEnvVars Array with extra environment variables to add to Prometheus nodes
992 ## @param server.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Prometheus nodes
995 ## @param server.extraEnvVarsSecret Name of existing Secret containing extra env vars for Prometheus nodes
997 extraEnvVarsSecret: ""
998 ## @param server.extraVolumes Optionally specify extra list of additional volumes for the Prometheus pod(s)
1001 ## @param server.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Prometheus container(s)
1003 extraVolumeMounts: []
1004 ## @param server.sidecars Add additional sidecar containers to the Prometheus pod(s)
1007 ## - name: your-image-name
1008 ## image: your-image
1009 ## imagePullPolicy: Always
1012 ## containerPort: 1234
1015 ## @param server.initContainers Add additional init containers to the Prometheus pod(s)
1016 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
1019 ## - name: your-image-name
1020 ## image: your-image
1021 ## imagePullPolicy: Always
1022 ## command: ['sh', '-c', 'echo "hello world"']
1025 ## @param server.routePrefix Prefix for the internal routes of web endpoints
1028 ## @param server.remoteWrite The remote_write spec configuration for Prometheus
1031 ## @param server.scrapeInterval Interval between consecutive scrapes. Example: "1m"
1034 ## @param server.scrapeTimeout Interval between consecutive scrapes. Example: "10s"
1037 ## @param server.evaluationInterval Interval between consecutive evaluations. Example: "1m"
1039 evaluationInterval: ""
1040 ## @param server.enableAdminAPI Enable Prometheus adminitrative API
1041 ## ref: https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis
1043 enableAdminAPI: false
1044 ## @param server.enableRemoteWriteReceiver Enable Prometheus to be used as a receiver for the Prometheus remote write protocol.
1046 enableRemoteWriteReceiver: false
1047 ## @param server.enableFeatures Enable access to Prometheus disabled features.
1048 ## ref: https://prometheus.io/docs/prometheus/latest/disabled_features/
1051 ## @param server.logLevel Log level for Prometheus
1054 ## @param server.logFormat Log format for Prometheus
1057 ## @param server.retention Metrics retention days
1060 ## @param server.retentionSize Maximum size of metrics
1063 ## @param server.alertingEndpoints Alertmanagers to which alerts will be sent
1064 ## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config
1066 alertingEndpoints: []
1067 ## @param server.externalLabels External labels to add to any time series or alerts when communicating with external systems
1070 ## Thanos sidecar container configuration
1073 ## @param server.thanos.create Create a Thanos sidecar container
1076 ## Iamguarded Thanos image
1077 ## @param server.thanos.image.registry [default: REGISTRY_NAME] Thanos image registry
1078 ## @param server.thanos.image.repository [default: REPOSITORY_NAME/thanos] Thanos image name
1079 ## @skip server.thanos.image.tag Thanos image tag
1080 ## @param server.thanos.image.digest Thanos image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1081 ## @param server.thanos.image.pullPolicy Thanos image pull policy
1082 ## @param server.thanos.image.pullSecrets Specify docker-registry secret names as an array
1086 repository: chainguard-private/thanos-iamguarded
1089 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1091 pullPolicy: IfNotPresent
1092 ## Optionally specify an array of imagePullSecrets.
1093 ## Secrets must be manually created in the namespace.
1094 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1097 ## - myRegistryKeySecretName
1100 ## Thanos Sidecar container's securityContext
1101 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1102 ## @param server.thanos.containerSecurityContext.enabled Enabled containers' Security Context
1103 ## @param server.thanos.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1104 ## @param server.thanos.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1105 ## @param server.thanos.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1106 ## @param server.thanos.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1107 ## @param server.thanos.containerSecurityContext.privileged Set container's Security Context privileged
1108 ## @param server.thanos.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1109 ## @param server.thanos.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1110 ## @param server.thanos.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1111 ## @param server.thanos.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1113 containerSecurityContext:
1120 readOnlyRootFilesystem: true
1121 allowPrivilegeEscalation: false
1125 type: "RuntimeDefault"
1126 ## @param server.thanos.prometheusUrl Override default prometheus url `http://localhost:9090`
1129 ## @param server.thanos.extraArgs Additional arguments passed to the thanos sidecar container
1131 ## - --log.level=debug
1132 ## - --tsdb.path=/data/
1135 ## @param server.thanos.objectStorageConfig.secretName Support mounting a Secret for the objectStorageConfig of the sideCar container.
1136 ## @param server.thanos.objectStorageConfig.secretKey Secret key with the configuration file.
1137 ## ref: https://github.com/thanos-io/thanos/blob/main/docs/storage.md
1138 ## objectStorageConfig:
1139 ## secretName: thanos-objstore-config
1140 ## secretKey: thanos.yaml
1142 objectStorageConfig:
1144 secretKey: thanos.yaml
1145 ## ref: https://github.com/thanos-io/thanos/blob/main/docs/components/sidecar.md
1146 ## @param server.thanos.extraVolumeMounts Additional volumeMounts from `server.volumes` for thanos sidecar container
1147 ## extraVolumeMounts:
1148 ## - name: my-secret-volume
1149 ## mountPath: /etc/thanos/secrets/my-secret
1151 extraVolumeMounts: []
1152 ## Thanos sidecar container resource requests and limits.
1153 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1154 ## We usually recommend not to specify default resources and to leave this as a conscious
1155 ## choice for the user. This also increases chances charts run on environments with little
1156 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1157 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1158 ## @param server.thanos.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if server.thanos.resources is set (server.thanos.resources is recommended for production).
1160 resourcesPreset: "nano"
1161 ## @param server.thanos.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1172 ## Configure extra options for liveness probe
1173 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1174 ## @param server.thanos.livenessProbe.enabled Turn on and off liveness probe
1175 ## @param server.thanos.livenessProbe.initialDelaySeconds Delay before liveness probe is initiated
1176 ## @param server.thanos.livenessProbe.periodSeconds How often to perform the probe
1177 ## @param server.thanos.livenessProbe.timeoutSeconds When the probe times out
1178 ## @param server.thanos.livenessProbe.failureThreshold Minimum consecutive failures for the probe
1179 ## @param server.thanos.livenessProbe.successThreshold Minimum consecutive successes for the probe
1183 initialDelaySeconds: 0
1186 failureThreshold: 120
1188 ## Configure extra options for readiness probe
1189 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1190 ## @param server.thanos.readinessProbe.enabled Turn on and off readiness probe
1191 ## @param server.thanos.readinessProbe.initialDelaySeconds Delay before readiness probe is initiated
1192 ## @param server.thanos.readinessProbe.periodSeconds How often to perform the probe
1193 ## @param server.thanos.readinessProbe.timeoutSeconds When the probe times out
1194 ## @param server.thanos.readinessProbe.failureThreshold Minimum consecutive failures for the probe
1195 ## @param server.thanos.readinessProbe.successThreshold Minimum consecutive successes for the probe
1199 initialDelaySeconds: 0
1202 failureThreshold: 120
1204 ## @param server.thanos.customLivenessProbe Custom livenessProbe that overrides the default one
1206 customLivenessProbe: {}
1207 ## @param server.thanos.customReadinessProbe Custom readinessProbe that overrides the default one
1209 customReadinessProbe: {}
1210 ## Thanos Sidecar Service
1213 ## @param server.thanos.service.type Kubernetes service type
1216 ## @param server.thanos.service.ports.grpc Thanos service port
1220 ## @param server.thanos.service.clusterIP Specific cluster IP when service type is cluster IP. Use `None` to create headless service by default.
1221 ## Use a "headless" service by default so it returns every pod's IP instead of loadbalancing requests.
1224 ## @param server.thanos.service.nodePorts.grpc Specify the nodePort value for the LoadBalancer and NodePort service types.
1225 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1231 ## @param server.thanos.service.loadBalancerIP `loadBalancerIP` if service type is `LoadBalancer`
1232 ## Set the LoadBalancer service type to internal only
1233 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1236 ## @param server.thanos.service.loadBalancerClass Thanos service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1237 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1239 loadBalancerClass: ""
1240 ## @param server.thanos.service.loadBalancerSourceRanges Address that are allowed when svc is `LoadBalancer`
1241 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1243 ## loadBalancerSourceRanges:
1246 loadBalancerSourceRanges: []
1247 ## @param server.thanos.service.annotations Additional annotations for Prometheus service
1250 ## @param server.thanos.service.extraPorts Additional ports to expose from the Thanos sidecar container
1258 ## @param server.thanos.service.externalTrafficPolicy Prometheus service external traffic policy
1259 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1261 externalTrafficPolicy: Cluster
1262 ## @param server.thanos.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1263 ## If "ClientIP", consecutive client requests will be directed to the same Pod
1264 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1266 sessionAffinity: None
1267 ## @param server.thanos.service.sessionAffinityConfig Additional settings for the sessionAffinity
1268 ## sessionAffinityConfig:
1270 ## timeoutSeconds: 300
1272 sessionAffinityConfig: {}
1273 ## Configure the ingress resource that allows you to access the
1274 ## Thanos Sidecar installation. Set up the URL
1275 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
1278 ## @param server.thanos.ingress.enabled Enable ingress controller resource
1281 ## @param server.thanos.ingress.pathType Ingress path type
1283 pathType: ImplementationSpecific
1284 ## @param server.thanos.ingress.hostname Default host for the ingress record
1286 hostname: thanos.prometheus.local
1287 ## @param server.thanos.ingress.path Default path for the ingress record
1288 ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
1291 ## @param server.thanos.ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
1292 ## For a full list of possible ingress annotations, please see
1293 ## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
1294 ## Use this parameter to set the required annotations for cert-manager, see
1295 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
1298 ## kubernetes.io/ingress.class: nginx
1299 ## cert-manager.io/cluster-issuer: cluster-issuer-name
1302 ## @param server.thanos.ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
1303 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
1304 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
1306 ingressClassName: ""
1307 ## @param server.thanos.ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
1308 ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
1310 ## - Use the `ingress.secrets` parameter to create this TLS secret
1311 ## - Relay on cert-manager to create it by setting `ingress.certManager=true`
1312 ## - Relay on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
1315 ## @param server.thanos.ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
1318 ## @param server.thanos.ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
1321 ## - name: thanos.prometheus.local
1325 ## @param server.thanos.ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
1330 ## serviceName: ssl-redirect
1331 ## servicePort: use-annotation
1334 ## @param server.thanos.ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
1335 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
1339 ## - thanos.prometheus.local
1340 ## secretName: thanos.prometheus.local-tls
1343 ## @param server.thanos.ingress.secrets Custom TLS certificates as secrets
1344 ## NOTE: 'key' and 'certificate' are expected in PEM format
1345 ## NOTE: 'name' should line up with a 'secretName' set further up
1346 ## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates
1347 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
1348 ## It is also possible to create and manage the certificates outside of this helm chart
1349 ## Please see README.md for more information
1352 ## - name: thanos.prometheus.local-tls
1354 ## -----BEGIN RSA PRIVATE KEY-----
1356 ## -----END RSA PRIVATE KEY-----
1358 ## -----BEGIN CERTIFICATE-----
1360 ## -----END CERTIFICATE-----
1363 ## @param server.thanos.ingress.extraRules The list of additional rules to be added to this ingress record. Evaluated as a template
1364 ## Useful when looking for additional customization, such as using different backend
1367 ## Prometheus Server ingress parameters
1368 ## ref: http://kubernetes.io/docs/concepts/services-networking/ingress/
1371 ## @param server.ingress.enabled Enable ingress record generation for Prometheus
1374 ## @param server.ingress.pathType Ingress path type
1376 pathType: ImplementationSpecific
1377 ## @param server.ingress.hostname Default host for the ingress record
1379 hostname: server.prometheus.local
1380 ## @param server.ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
1381 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
1382 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
1384 ingressClassName: ""
1385 ## @param server.ingress.path Default path for the ingress record
1386 ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
1389 ## @param server.ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
1390 ## Use this parameter to set the required annotations for cert-manager, see
1391 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
1394 ## kubernetes.io/ingress.class: nginx
1395 ## cert-manager.io/cluster-issuer: cluster-issuer-name
1398 ## @param server.ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
1399 ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
1401 ## - Use the `ingress.secrets` parameter to create this TLS secret
1402 ## - Rely on cert-manager to create it by setting the corresponding annotations
1403 ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
1406 ## @param server.ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
1409 ## @param server.ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
1412 ## - name: prometheus.local
1416 ## @param server.ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
1421 ## serviceName: ssl-redirect
1422 ## servicePort: use-annotation
1425 ## @param server.ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
1426 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
1430 ## - prometheus.local
1431 ## secretName: prometheus.local-tls
1434 ## @param server.ingress.secrets Custom TLS certificates as secrets
1435 ## NOTE: 'key' and 'certificate' are expected in PEM format
1436 ## NOTE: 'name' should line up with a 'secretName' set further up
1437 ## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates
1438 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
1439 ## It is also possible to create and manage the certificates outside of this helm chart
1440 ## Please see README.md for more information
1443 ## - name: prometheus.local-tls
1445 ## -----BEGIN RSA PRIVATE KEY-----
1447 ## -----END RSA PRIVATE KEY-----
1449 ## -----BEGIN CERTIFICATE-----
1451 ## -----END CERTIFICATE-----
1454 ## @param server.ingress.extraRules Additional rules to be covered with this ingress record
1455 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
1458 ## - host: example.local
1463 ## name: example-svc
1468 ## ServiceAccount configuration
1471 ## @param server.serviceAccount.create Specifies whether a ServiceAccount should be created
1474 ## @param server.serviceAccount.name The name of the ServiceAccount to use.
1475 ## If not set and create is true, a name is generated using the common.names.fullname template
1478 ## @param server.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1481 ## @param server.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1483 automountServiceAccountToken: false
1485 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1488 ## @param server.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1491 ## @param server.networkPolicy.allowExternal Don't require server label for connections
1492 ## The Policy model to apply. When set to false, only pods with the correct
1493 ## server label will have network access to the ports server is listening
1494 ## on. When true, server will accept connections from any source
1495 ## (with the correct destination port).
1498 ## @param server.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1500 allowExternalEgress: true
1501 ## @param server.networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `server.networkPolicy.allowExternal` is true.
1503 addExternalClientAccess: true
1504 ## @param server.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1514 ## - matchExpressions:
1520 ## @param server.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1530 ## - matchExpressions:
1537 ## @param server.networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `server.networkPolicy.allowExternal` is true.
1539 ## ingressPodMatchLabels:
1540 ## my-client: "true"
1542 ingressPodMatchLabels: {}
1543 ## @param server.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces. Ignored if `server.networkPolicy.allowExternal` is true.
1544 ## @param server.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces. Ignored if `server.networkPolicy.allowExternal` is true.
1546 ingressNSMatchLabels: {}
1547 ingressNSPodMatchLabels: {}
1548 ## Prometheus service parameters
1551 ## @param server.service.type Prometheus service type
1554 ## @param server.service.ports.http Prometheus service HTTP port
1558 ## Node ports to expose
1559 ## @param server.service.nodePorts.http Node port for HTTP
1560 ## NOTE: choose port between <30000-32767>
1564 ## @param server.service.clusterIP Prometheus service Cluster IP
1569 ## @param server.service.loadBalancerIP Prometheus service Load Balancer IP
1570 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1573 ## @param server.service.loadBalancerClass Prometheus service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1574 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1576 loadBalancerClass: ""
1577 ## @param server.service.loadBalancerSourceRanges Prometheus service Load Balancer sources
1578 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1580 ## loadBalancerSourceRanges:
1583 loadBalancerSourceRanges: []
1584 ## @param server.service.externalTrafficPolicy Prometheus service external traffic policy
1585 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1587 externalTrafficPolicy: Cluster
1588 ## @param server.service.annotations Additional custom annotations for Prometheus service
1591 ## @param server.service.extraPorts Extra ports to expose in Prometheus service (normally used with the `sidecars` value)
1594 ## @param server.service.sessionAffinity Control where client requests go, to the same pod or round-robin. ClientIP by default.
1595 ## Values: ClientIP or None
1596 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1598 sessionAffinity: ClientIP
1599 ## @param server.service.sessionAffinityConfig Additional settings for the sessionAffinity
1600 ## sessionAffinityConfig:
1602 ## timeoutSeconds: 300
1604 sessionAffinityConfig: {}
1605 ## Persistence Parameters
1608 ## Enable persistence using Persistent Volume Claims
1609 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1612 ## @param server.persistence.enabled Enable persistence using Persistent Volume Claims. If you have multiple instances (server.repicacount > 1), please considere using an external storage service like Thanos or Grafana Mimir
1615 ## @param server.persistence.mountPath Path to mount the volume at.
1617 mountPath: /iamguarded/prometheus/data
1618 ## @param server.persistence.subPath The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services
1621 ## @param server.persistence.storageClass Storage class of backing PVC
1622 ## If defined, storageClassName: <storageClass>
1623 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1624 ## If undefined (the default) or set to null, no storageClassName spec is
1625 ## set, choosing the default provisioner. (gp2 on AWS, standard on
1626 ## GKE, AWS & OpenStack)
1629 ## @param server.persistence.annotations Persistent Volume Claim annotations
1632 ## @param server.persistence.accessModes Persistent Volume Access Modes
1636 ## @param server.persistence.size Size of data volume
1639 ## @param server.persistence.existingClaim The name of an existing PVC to use for persistence
1642 ## @param server.persistence.selector Selector to match an existing Persistent Volume for Prometheus data PVC
1643 ## If set, the PVC can't have a PV dynamically provisioned for it
1650 ## @param server.persistence.dataSource Custom PVC data source
1653 # RBAC configuration
1656 ## @param server.rbac.create Specifies whether RBAC resources should be created
1659 ## @param server.rbac.includeDefaultRules Specifies whether to include default rules from official prometheus helm chart
1660 ## ref: https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus/templates/clusterrole.yaml
1662 includeDefaultRules: true
1663 ## @param server.rbac.rules Custom RBAC rules to set
1675## @section Init Container Parameters
1678## 'volumePermissions' init container parameters
1679## Changes the owner and group of the persistent volume mount point to runAsUser:fsGroup values
1680## based on the *podSecurityContext/*containerSecurityContext parameters
1683 ## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
1686 ## OS Shell + Utility image
1687 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] OS Shell + Utility image registry
1688 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] OS Shell + Utility image repository
1689 ## @skip volumePermissions.image.tag OS Shell + Utility image tag (immutable tags are recommended)
1690 ## @param volumePermissions.image.pullPolicy OS Shell + Utility image pull policy
1691 ## @param volumePermissions.image.pullSecrets OS Shell + Utility image pull secrets
1695 repository: chainguard-private/os-shell-iamguarded
1697 pullPolicy: IfNotPresent
1699 ## Optionally specify an array of imagePullSecrets.
1700 ## Secrets must be manually created in the namespace.
1701 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1704 ## - myRegistryKeySecretName
1707 ## Init container's resource requests and limits
1708 ## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1709 ## @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).
1711 resourcesPreset: "nano"
1712 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1723 ## Init container Container Security Context
1724 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1725 ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1726 ## @param volumePermissions.containerSecurityContext.runAsUser Set init container's Security Context runAsUser
1727 ## NOTE: when runAsUser is set to special value "auto", init container will try to chown the
1728 ## data folder to auto-determined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
1729 ## "auto" is especially useful for OpenShift which has scc with dynamic user ids (and 0 is not allowed)
1731 containerSecurityContext: