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
19## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20## @param global.storageClass DEPRECATED: use global.defaultStorageClass instead
27 ## - myRegistryKeySecretName
30 defaultStorageClass: ""
32 ## Security parameters
35 ## @param global.security.allowInsecureImages Allows skipping image verification
36 allowInsecureImages: false
37 ## Compatibility adaptations for Kubernetes platforms
40 ## Compatibility adaptations for Openshift
43 ## @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)
45 adaptSecurityContext: auto
47## @section Common parameters
50## @param kubeVersion Override Kubernetes version
53## @param nameOverride String to partially override common.names.name
56## @param fullnameOverride String to fully override common.names.fullname
59## @param namespaceOverride String to fully override common.names.namespace
62## @param commonLabels Labels to add to all deployed objects
65## @param commonAnnotations Annotations to add to all deployed objects
68## @param clusterDomain Kubernetes cluster domain name
70clusterDomain: cluster.local
71## @param extraDeploy Array of extra objects to deploy with the release
74## Enable diagnostic mode in the deployment
77 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
80 ## @param diagnosticMode.command Command to override all containers in the deployment
84 ## @param diagnosticMode.args Args to override all containers in the deployment
88## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
92## @section Alertmanager Parameters
94## Iamguarded Alertmanager image
95## @param alertmanager.enabled Alertmanager enabled
96## @param alertmanager.image.registry [default: REGISTRY_NAME] Alertmanager image registry
97## @param alertmanager.image.repository [default: REPOSITORY_NAME/alertmanager] Alertmanager image repository
98## @skip alertmanager.image.tag Alertmanager image tag (immutable tags are recommended)
99## @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)
100## @param alertmanager.image.pullPolicy Alertmanager image pull policy
101## @param alertmanager.image.pullSecrets Alertmanager image pull secrets
107 repository: chainguard-private/prometheus-alertmanager-iamguarded
110 ## Specify a imagePullPolicy
111 ## ref: http://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
113 pullPolicy: IfNotPresent
114 ## Optionally specify an array of imagePullSecrets.
115 ## Secrets must be manually created in the namespace.
116 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
119 ## - myRegistryKeySecretName
122 ## @param alertmanager.configuration [string] Alertmanager configuration. This content will be stored in the the alertmanager.yaml file and the content can be a template.
123 ## ref: <https://github.com/prometheus-community/helm-charts/blob/8f2743ed3a9c93c56978a95b62a63e84c52f5748/charts/alertmanager/values.yaml#L171-L188>
127 - name: default-receiver
131 receiver: default-receiver
133 ## @param alertmanager.replicaCount Number of Alertmanager replicas to deploy
136 ## @param alertmanager.containerPorts.http Alertmanager HTTP container port
137 ## @param alertmanager.containerPorts.cluster Alertmanager Cluster HA port
142 ## Configure extra options for Alertmanager containers' liveness and readiness probes
143 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
144 ## @param alertmanager.livenessProbe.enabled Enable livenessProbe on Alertmanager containers
145 ## @param alertmanager.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
146 ## @param alertmanager.livenessProbe.periodSeconds Period seconds for livenessProbe
147 ## @param alertmanager.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
148 ## @param alertmanager.livenessProbe.failureThreshold Failure threshold for livenessProbe
149 ## @param alertmanager.livenessProbe.successThreshold Success threshold for livenessProbe
153 initialDelaySeconds: 5
158 ## @param alertmanager.readinessProbe.enabled Enable readinessProbe on Alertmanager containers
159 ## @param alertmanager.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
160 ## @param alertmanager.readinessProbe.periodSeconds Period seconds for readinessProbe
161 ## @param alertmanager.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
162 ## @param alertmanager.readinessProbe.failureThreshold Failure threshold for readinessProbe
163 ## @param alertmanager.readinessProbe.successThreshold Success threshold for readinessProbe
167 initialDelaySeconds: 5
172 ## @param alertmanager.startupProbe.enabled Enable startupProbe on Alertmanager containers
173 ## @param alertmanager.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
174 ## @param alertmanager.startupProbe.periodSeconds Period seconds for startupProbe
175 ## @param alertmanager.startupProbe.timeoutSeconds Timeout seconds for startupProbe
176 ## @param alertmanager.startupProbe.failureThreshold Failure threshold for startupProbe
177 ## @param alertmanager.startupProbe.successThreshold Success threshold for startupProbe
181 initialDelaySeconds: 2
186 ## @param alertmanager.customLivenessProbe Custom livenessProbe that overrides the default one
188 customLivenessProbe: {}
189 ## @param alertmanager.customReadinessProbe Custom readinessProbe that overrides the default one
191 customReadinessProbe: {}
192 ## @param alertmanager.customStartupProbe Custom startupProbe that overrides the default one
194 customStartupProbe: {}
195 ## Alertmanager resource requests and limits
196 ## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
197 ## @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).
199 resourcesPreset: "nano"
200 ## @param alertmanager.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
211 ## Configure Pods Security Context
212 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
213 ## @param alertmanager.podSecurityContext.enabled Enabled Alertmanager pods' Security Context
214 ## @param alertmanager.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
215 ## @param alertmanager.podSecurityContext.sysctls Set kernel settings using the sysctl interface
216 ## @param alertmanager.podSecurityContext.supplementalGroups Set filesystem extra groups
217 ## @param alertmanager.podSecurityContext.fsGroup Set Alertmanager pod's Security Context fsGroup
221 fsGroupChangePolicy: Always
223 supplementalGroups: []
225 ## Configure Container Security Context
226 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
227 ## @param alertmanager.containerSecurityContext.enabled Enabled containers' Security Context
228 ## @param alertmanager.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
229 ## @param alertmanager.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
230 ## @param alertmanager.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
231 ## @param alertmanager.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
232 ## @param alertmanager.containerSecurityContext.privileged Set container's Security Context privileged
233 ## @param alertmanager.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
234 ## @param alertmanager.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
235 ## @param alertmanager.containerSecurityContext.capabilities.drop List of capabilities to be dropped
236 ## @param alertmanager.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
238 containerSecurityContext:
245 readOnlyRootFilesystem: true
246 allowPrivilegeEscalation: false
250 type: "RuntimeDefault"
251 ## @param alertmanager.existingConfigmap The name of an existing ConfigMap with your custom configuration for Alertmanager
253 existingConfigmap: ""
254 ## @param alertmanager.existingConfigmapKey The name of the key with the Alertmanager config file
256 existingConfigmapKey: ""
257 ## @param alertmanager.command Override default container command (useful when using custom images)
260 ## @param alertmanager.args Override default container args (useful when using custom images)
263 ## @param alertmanager.extraArgs Additional arguments passed to the Prometheus server container
265 ## - --log.level=debug
266 ## - --tsdb.path=/data/
269 ## @param alertmanager.automountServiceAccountToken Mount Service Account token in pod
271 automountServiceAccountToken: false
272 ## @param alertmanager.hostAliases Alertmanager pods host aliases
273 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
276 ## @param alertmanager.podLabels Extra labels for Alertmanager pods
277 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
280 ## @param alertmanager.podAnnotations Annotations for Alertmanager pods
281 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
284 ## @param alertmanager.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
285 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
287 podAffinityPreset: ""
288 ## @param alertmanager.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
289 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
291 podAntiAffinityPreset: soft
292 ## Pod Disruption Budget configuration
293 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
294 ## @param alertmanager.pdb.create Enable/disable a Pod Disruption Budget creation
295 ## @param alertmanager.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
296 ## @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.
302 ## Node affinity preset
303 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
306 ## @param alertmanager.nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
309 ## @param alertmanager.nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set
312 ## @param alertmanager.nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set
319 ## @param alertmanager.affinity Affinity for Alertmanager pods assignment
320 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
321 ## NOTE: `podAffinityPreset`, `podAntiAffinityPreset`, and `nodeAffinityPreset` will be ignored when it's set
324 ## @param alertmanager.nodeSelector Node labels for Alertmanager pods assignment
325 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
328 ## @param alertmanager.tolerations Tolerations for Alertmanager pods assignment
329 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
332 ## @param alertmanager.updateStrategy.type Alertmanager statefulset strategy type
333 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
337 ## Can be set to RollingUpdate or OnDelete
340 ## @param alertmanager.podManagementPolicy Statefulset Pod management policy, it needs to be Parallel to be able to complete the cluster join
341 ## Ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
343 podManagementPolicy: OrderedReady
344 ## @param alertmanager.priorityClassName Alertmanager pods' priorityClassName
346 priorityClassName: ""
347 ## @param alertmanager.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
348 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
350 topologySpreadConstraints: []
351 ## @param alertmanager.schedulerName Name of the k8s scheduler (other than default) for Alertmanager pods
352 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
355 ## @param alertmanager.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
356 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
358 terminationGracePeriodSeconds: ""
359 ## @param alertmanager.lifecycleHooks for the Alertmanager container(s) to automate configuration before or after startup
362 ## @param alertmanager.extraEnvVars Array with extra environment variables to add to Alertmanager nodes
369 ## @param alertmanager.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Alertmanager nodes
372 ## @param alertmanager.extraEnvVarsSecret Name of existing Secret containing extra env vars for Alertmanager nodes
374 extraEnvVarsSecret: ""
375 ## @param alertmanager.extraVolumes Optionally specify extra list of additional volumes for the Alertmanager pod(s)
378 ## @param alertmanager.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Alertmanager container(s)
380 extraVolumeMounts: []
381 ## @param alertmanager.sidecars Add additional sidecar containers to the Alertmanager pod(s)
384 ## - name: your-image-name
386 ## imagePullPolicy: Always
389 ## containerPort: 1234
392 ## @param alertmanager.initContainers Add additional init containers to the Alertmanager pod(s)
393 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
396 ## - name: your-image-name
398 ## imagePullPolicy: Always
399 ## command: ['sh', '-c', 'echo "hello world"']
402 ## Alertmanager ingress parameters
403 ## ref: http://kubernetes.io/docs/concepts/services-networking/ingress/
406 ## @param alertmanager.ingress.enabled Enable ingress record generation for Alertmanager
409 ## @param alertmanager.ingress.pathType Ingress path type
411 pathType: ImplementationSpecific
412 ## @param alertmanager.ingress.hostname Default host for the ingress record
414 hostname: alertmanager.prometheus.local
415 ## @param alertmanager.ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
416 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
417 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
420 ## @param alertmanager.ingress.path Default path for the ingress record
421 ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
424 ## @param alertmanager.ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
425 ## Use this parameter to set the required annotations for cert-manager, see
426 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
429 ## kubernetes.io/ingress.class: nginx
430 ## cert-manager.io/cluster-issuer: cluster-issuer-name
433 ## @param alertmanager.ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
434 ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
436 ## - Use the `ingress.secrets` parameter to create this TLS secret
437 ## - Rely on cert-manager to create it by setting the corresponding annotations
438 ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
441 ## @param alertmanager.ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
444 ## @param alertmanager.ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
447 ## - name: prometheus.local
451 ## @param alertmanager.ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
456 ## serviceName: ssl-redirect
457 ## servicePort: use-annotation
460 ## @param alertmanager.ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
461 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
465 ## - prometheus.local
466 ## secretName: prometheus.local-tls
469 ## @param alertmanager.ingress.secrets Custom TLS certificates as secrets
470 ## NOTE: 'key' and 'certificate' are expected in PEM format
471 ## NOTE: 'name' should line up with a 'secretName' set further up
472 ## 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
473 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
474 ## It is also possible to create and manage the certificates outside of this helm chart
475 ## Please see README.md for more information
478 ## - name: prometheus.local-tls
480 ## -----BEGIN RSA PRIVATE KEY-----
482 ## -----END RSA PRIVATE KEY-----
484 ## -----BEGIN CERTIFICATE-----
486 ## -----END CERTIFICATE-----
489 ## @param alertmanager.ingress.extraRules Additional rules to be covered with this ingress record
490 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
493 ## - host: example.local
503 ## ServiceAccount configuration
506 ## @param alertmanager.serviceAccount.create Specifies whether a ServiceAccount should be created
509 ## @param alertmanager.serviceAccount.name The name of the ServiceAccount to use.
510 ## If not set and create is true, a name is generated using the common.names.fullname template
513 ## @param alertmanager.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
516 ## @param alertmanager.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
518 automountServiceAccountToken: false
520 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
523 ## @param alertmanager.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
526 ## @param alertmanager.networkPolicy.allowExternal Don't require alertmanager label for connections
527 ## The Policy model to apply. When set to false, only pods with the correct
528 ## alertmanager label will have network access to the ports alertmanager is listening
529 ## on. When true, alertmanager will accept connections from any source
530 ## (with the correct destination port).
533 ## @param alertmanager.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
535 allowExternalEgress: true
536 ## @param alertmanager.networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `alertmanager.networkPolicy.allowExternal` is true.
538 addExternalClientAccess: true
539 ## @param alertmanager.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
549 ## - matchExpressions:
555 ## @param alertmanager.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
565 ## - matchExpressions:
572 ## @param alertmanager.networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `alertmanager.networkPolicy.allowExternal` is true.
574 ## ingressPodMatchLabels:
577 ingressPodMatchLabels: {}
578 ## @param alertmanager.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces. Ignored if `alertmanager.networkPolicy.allowExternal` is true.
579 ## @param alertmanager.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces. Ignored if `alertmanager.networkPolicy.allowExternal` is true.
581 ingressNSMatchLabels: {}
582 ingressNSPodMatchLabels: {}
583 ## Alertmanager service parameters
586 ## @param alertmanager.service.type Alertmanager service type
589 ## @param alertmanager.service.ports.http Alertmanager service HTTP port
590 ## @param alertmanager.service.ports.cluster Alertmanager cluster HA port
595 ## Node ports to expose
596 ## @param alertmanager.service.nodePorts.http Node port for HTTP
597 ## NOTE: choose port between <30000-32767>
601 ## @param alertmanager.service.clusterIP Alertmanager service Cluster IP
606 ## @param alertmanager.service.loadBalancerIP Alertmanager service Load Balancer IP
607 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
610 ## @param alertmanager.service.loadBalancerClass Alertmanager service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
611 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
613 loadBalancerClass: ""
614 ## @param alertmanager.service.loadBalancerSourceRanges Alertmanager service Load Balancer sources
615 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
617 ## loadBalancerSourceRanges:
620 loadBalancerSourceRanges: []
621 ## @param alertmanager.service.externalTrafficPolicy Alertmanager service external traffic policy
622 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
624 externalTrafficPolicy: Cluster
625 ## @param alertmanager.service.annotations Additional custom annotations for Alertmanager service
628 ## @param alertmanager.service.extraPorts Extra ports to expose in Alertmanager service (normally used with the `sidecars` value)
631 ## @param alertmanager.service.sessionAffinity Control where client requests go, to the same pod or round-robin
632 ## Values: ClientIP or None
633 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
635 sessionAffinity: None
636 ## @param alertmanager.service.sessionAffinityConfig Additional settings for the sessionAffinity
637 ## sessionAffinityConfig:
639 ## timeoutSeconds: 300
641 sessionAffinityConfig: {}
643 ## @param alertmanager.persistence.enabled Enable Alertmanager data persistence using VolumeClaimTemplates
646 ## @param alertmanager.persistence.mountPath Path to mount the volume at.
648 mountPath: /iamguarded/alertmanager/data
649 ## @param alertmanager.persistence.subPath The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services
652 ## @param alertmanager.persistence.storageClass PVC Storage Class for Concourse worker data volume
653 ## If defined, storageClassName: <storageClass>
654 ## If set to "-", storageClassName: "", which disables dynamic provisioning
655 ## If undefined (the default) or set to null, no storageClassName spec is
656 ## set, choosing the default provisioner. (gp2 on AWS, standard on
657 ## GKE, AWS & OpenStack)
660 ## @param alertmanager.persistence.accessModes PVC Access Mode for Concourse worker volume
664 ## @param alertmanager.persistence.size PVC Storage Request for Concourse worker volume
667 ## @param alertmanager.persistence.annotations Annotations for the PVC
670 ## @param alertmanager.persistence.selector Selector to match an existing Persistent Volume (this value is evaluated as a template)
676## @section Prometheus server Parameters
678## Iamguarded Prometheus image
679## @param server.image.registry [default: REGISTRY_NAME] Prometheus image registry
680## @param server.image.repository [default: REPOSITORY_NAME/prometheus] Prometheus image repository
681## @skip server.image.tag Prometheus image tag (immutable tags are recommended)
682## @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)
683## @param server.image.pullPolicy Prometheus image pull policy
684## @param server.image.pullSecrets Prometheus image pull secrets
689 repository: chainguard-private/prometheus-iamguarded
692 ## Specify a imagePullPolicy
693 ## ref: http://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
695 pullPolicy: IfNotPresent
696 ## Optionally specify an array of imagePullSecrets.
697 ## Secrets must be manually created in the namespace.
698 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
701 ## - myRegistryKeySecretName
704 ## @param server.scrapePrometheusHost Specifies whether to include prometheus host scraping job
706 scrapePrometheusHost: true
707 ## @param server.scrapeAlertmanagerHost Specifies whether to include alertmanager host scraping job
709 scrapeAlertmanagerHost: true
710 ## @param server.configuration [string] Promethus configuration. This content will be stored in the the prometheus.yaml file and the content can be a template.
711 ## ref: <https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus/values.yaml>
715 {{- if .Values.server.scrapeInterval }}
716 scrape_interval: {{ .Values.server.scrapeInterval }}
718 {{- if .Values.server.scrapeTimeout }}
719 scrape_timeout: {{ .Values.server.scrapeTimeout }}
721 {{- if .Values.server.evaluationInterval }}
722 evaluation_interval: {{ .Values.server.evaluationInterval }}
725 monitor: {{ template "common.names.fullname" . }}
726 {{- if .Values.server.externalLabels }}
727 {{- include "common.tplvalues.render" (dict "value" .Values.server.externalLabels "context" $) | nindent 4 }}
729 {{- if .Values.server.remoteWrite }}
730 remote_write: {{- include "common.tplvalues.render" (dict "value" .Values.server.remoteWrite "context" $) | nindent 4 }}
733 {{- if .Values.server.scrapePrometheusHost }}
734 - job_name: prometheus
735 {{- include "prometheus.scrape_config" (dict "component" "server" "context" $) | nindent 4 }}
737 {{- if and .Values.alertmanager.enabled .Values.server.scrapeAlertmanagerHost }}
738 - job_name: alertmanager
739 {{- include "prometheus.scrape_config" (dict "component" "alertmanager" "context" $) | nindent 4 }}
741 {{- if .Values.server.extraScrapeConfigs}}
742 {{- include "common.tplvalues.render" (dict "value" .Values.server.extraScrapeConfigs "context" $) | nindent 2 }}
744 {{- if or .Values.alertmanager.enabled .Values.server.alertingEndpoints}}
747 {{- if .Values.server.alertingEndpoints }}
748 {{- include "common.tplvalues.render" (dict "value" .Values.server.alertingEndpoints "context" $) | nindent 4 }}
752 - targets: [ "{{ printf "%s.%s.svc.%s:%d" (include "prometheus.alertmanager.fullname" .) (include "common.names.namespace" .) .Values.clusterDomain (int .Values.alertmanager.service.ports.http) }}" ]
756 ## @param server.alertingRules Prometheus alerting rules. This content will be stored in the the rules.yaml file and the content can be a template.
757 ## ref: <https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/>
760 ## @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.
761 ## ref: <https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config>
763 extraScrapeConfigs: []
764 ## @param server.replicaCount Number of Prometheus replicas to deploy
767 ## @param server.containerPorts.http Prometheus HTTP container port
771 ## Configure extra options for Prometheus containers' liveness and readiness probes
772 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
773 ## @param server.livenessProbe.enabled Enable livenessProbe on Prometheus containers
774 ## @param server.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
775 ## @param server.livenessProbe.periodSeconds Period seconds for livenessProbe
776 ## @param server.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
777 ## @param server.livenessProbe.failureThreshold Failure threshold for livenessProbe
778 ## @param server.livenessProbe.successThreshold Success threshold for livenessProbe
782 initialDelaySeconds: 5
787 ## @param server.readinessProbe.enabled Enable readinessProbe on Prometheus containers
788 ## @param server.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
789 ## @param server.readinessProbe.periodSeconds Period seconds for readinessProbe
790 ## @param server.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
791 ## @param server.readinessProbe.failureThreshold Failure threshold for readinessProbe
792 ## @param server.readinessProbe.successThreshold Success threshold for readinessProbe
796 initialDelaySeconds: 5
801 ## @param server.startupProbe.enabled Enable startupProbe on Prometheus containers
802 ## @param server.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
803 ## @param server.startupProbe.periodSeconds Period seconds for startupProbe
804 ## @param server.startupProbe.timeoutSeconds Timeout seconds for startupProbe
805 ## @param server.startupProbe.failureThreshold Failure threshold for startupProbe
806 ## @param server.startupProbe.successThreshold Success threshold for startupProbe
810 initialDelaySeconds: 2
815 ## @param server.customLivenessProbe Custom livenessProbe that overrides the default one
817 customLivenessProbe: {}
818 ## @param server.customReadinessProbe Custom readinessProbe that overrides the default one
820 customReadinessProbe: {}
821 ## @param server.customStartupProbe Custom startupProbe that overrides the default one
823 customStartupProbe: {}
824 ## Prometheus resource requests and limits
825 ## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
826 ## @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).
828 resourcesPreset: "nano"
829 ## @param server.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
840 ## Configure Pods Security Context
841 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
842 ## @param server.podSecurityContext.enabled Enabled Prometheus pods' Security Context
843 ## @param server.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
844 ## @param server.podSecurityContext.sysctls Set kernel settings using the sysctl interface
845 ## @param server.podSecurityContext.supplementalGroups Set filesystem extra groups
846 ## @param server.podSecurityContext.fsGroup Set Prometheus pod's Security Context fsGroup
850 fsGroupChangePolicy: Always
852 supplementalGroups: []
854 ## Configure Container Security Context
855 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
856 ## @param server.containerSecurityContext.enabled Enabled containers' Security Context
857 ## @param server.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
858 ## @param server.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
859 ## @param server.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
860 ## @param server.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
861 ## @param server.containerSecurityContext.privileged Set container's Security Context privileged
862 ## @param server.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
863 ## @param server.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
864 ## @param server.containerSecurityContext.capabilities.drop List of capabilities to be dropped
865 ## @param server.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
867 containerSecurityContext:
874 readOnlyRootFilesystem: true
875 allowPrivilegeEscalation: false
879 type: "RuntimeDefault"
880 ## @param server.existingConfigmap The name of an existing ConfigMap with your custom configuration for Prometheus
882 existingConfigmap: ""
883 ## @param server.existingConfigmapKey The name of the key with the Prometheus config file
885 existingConfigmapKey: ""
886 ## @param server.command Override default container command (useful when using custom images)
889 ## @param server.args Override default container args (useful when using custom images)
892 ## @param server.extraArgs Additional arguments passed to the Prometheus server container
894 ## - --log.level=debug
895 ## - --tsdb.path=/data/
898 ## @param server.automountServiceAccountToken Mount Service Account token in pod
900 automountServiceAccountToken: true
901 ## @param server.hostAliases Prometheus pods host aliases
902 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
905 ## @param server.podLabels Extra labels for Prometheus pods
906 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
909 ## @param server.podAnnotations Annotations for Prometheus pods
910 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
913 ## @param server.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
914 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
916 podAffinityPreset: ""
917 ## @param server.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
918 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
920 podAntiAffinityPreset: soft
921 ## Pod Disruption Budget configuration
922 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
923 ## @param server.pdb.create Enable/disable a Pod Disruption Budget creation
924 ## @param server.pdb.minAvailable [object] Minimum number/percentage of pods that should remain scheduled
925 ## @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.
931 ## Node affinity preset
932 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
935 ## @param server.nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
938 ## @param server.nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set
941 ## @param server.nodeAffinityPreset.values Node label values to match. Ignored if `affinity` is set
948 ## @param server.affinity Affinity for Prometheus pods assignment
949 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
950 ## NOTE: `podAffinityPreset`, `podAntiAffinityPreset`, and `nodeAffinityPreset` will be ignored when it's set
953 ## @param server.nodeSelector Node labels for Prometheus pods assignment
954 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
957 ## @param server.tolerations Tolerations for Prometheus pods assignment
958 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
961 ## @param server.updateStrategy.type Prometheus deployment strategy type. If persistence is enabled, strategy type should be set to Recreate to avoid dead locks.
962 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
966 ## Can be set to RollingUpdate or Recreate
969 ## @param server.priorityClassName Prometheus pods' priorityClassName
971 priorityClassName: ""
972 ## @param server.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
973 ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
975 topologySpreadConstraints: []
976 ## @param server.schedulerName Name of the k8s scheduler (other than default) for Prometheus pods
977 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
980 ## @param server.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
981 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
983 terminationGracePeriodSeconds: ""
984 ## @param server.lifecycleHooks for the Prometheus container(s) to automate configuration before or after startup
987 ## @param server.extraEnvVars Array with extra environment variables to add to Prometheus nodes
994 ## @param server.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Prometheus nodes
997 ## @param server.extraEnvVarsSecret Name of existing Secret containing extra env vars for Prometheus nodes
999 extraEnvVarsSecret: ""
1000 ## @param server.extraVolumes Optionally specify extra list of additional volumes for the Prometheus pod(s)
1003 ## @param server.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Prometheus container(s)
1005 extraVolumeMounts: []
1006 ## @param server.sidecars Add additional sidecar containers to the Prometheus pod(s)
1009 ## - name: your-image-name
1010 ## image: your-image
1011 ## imagePullPolicy: Always
1014 ## containerPort: 1234
1017 ## @param server.initContainers Add additional init containers to the Prometheus pod(s)
1018 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
1021 ## - name: your-image-name
1022 ## image: your-image
1023 ## imagePullPolicy: Always
1024 ## command: ['sh', '-c', 'echo "hello world"']
1027 ## @param server.routePrefix Prefix for the internal routes of web endpoints
1030 ## @param server.remoteWrite The remote_write spec configuration for Prometheus
1033 ## @param server.scrapeInterval Interval between consecutive scrapes. Example: "1m"
1036 ## @param server.scrapeTimeout Interval between consecutive scrapes. Example: "10s"
1039 ## @param server.evaluationInterval Interval between consecutive evaluations. Example: "1m"
1041 evaluationInterval: ""
1042 ## @param server.enableAdminAPI Enable Prometheus adminitrative API
1043 ## ref: https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis
1045 enableAdminAPI: false
1046 ## @param server.enableRemoteWriteReceiver Enable Prometheus to be used as a receiver for the Prometheus remote write protocol.
1048 enableRemoteWriteReceiver: false
1049 ## @param server.enableFeatures Enable access to Prometheus disabled features.
1050 ## ref: https://prometheus.io/docs/prometheus/latest/disabled_features/
1053 ## @param server.logLevel Log level for Prometheus
1056 ## @param server.logFormat Log format for Prometheus
1059 ## @param server.retention Metrics retention days
1062 ## @param server.retentionSize Maximum size of metrics
1065 ## @param server.alertingEndpoints Alertmanagers to which alerts will be sent
1066 ## ref: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config
1068 alertingEndpoints: []
1069 ## @param server.externalLabels External labels to add to any time series or alerts when communicating with external systems
1072 ## Thanos sidecar container configuration
1075 ## @param server.thanos.create Create a Thanos sidecar container
1078 ## Iamguarded Thanos image
1079 ## @param server.thanos.image.registry [default: REGISTRY_NAME] Thanos image registry
1080 ## @param server.thanos.image.repository [default: REPOSITORY_NAME/thanos] Thanos image name
1081 ## @skip server.thanos.image.tag Thanos image tag
1082 ## @param server.thanos.image.digest Thanos image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1083 ## @param server.thanos.image.pullPolicy Thanos image pull policy
1084 ## @param server.thanos.image.pullSecrets Specify docker-registry secret names as an array
1088 repository: chainguard-private/thanos-iamguarded
1091 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
1093 pullPolicy: IfNotPresent
1094 ## Optionally specify an array of imagePullSecrets.
1095 ## Secrets must be manually created in the namespace.
1096 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1099 ## - myRegistryKeySecretName
1102 ## Thanos Sidecar container's securityContext
1103 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1104 ## @param server.thanos.containerSecurityContext.enabled Enabled containers' Security Context
1105 ## @param server.thanos.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1106 ## @param server.thanos.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1107 ## @param server.thanos.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1108 ## @param server.thanos.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1109 ## @param server.thanos.containerSecurityContext.privileged Set container's Security Context privileged
1110 ## @param server.thanos.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1111 ## @param server.thanos.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1112 ## @param server.thanos.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1113 ## @param server.thanos.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1115 containerSecurityContext:
1122 readOnlyRootFilesystem: true
1123 allowPrivilegeEscalation: false
1127 type: "RuntimeDefault"
1128 ## @param server.thanos.prometheusUrl Override default prometheus url `http://localhost:9090`
1131 ## @param server.thanos.extraArgs Additional arguments passed to the thanos sidecar container
1133 ## - --log.level=debug
1134 ## - --tsdb.path=/data/
1137 ## @param server.thanos.objectStorageConfig.secretName Support mounting a Secret for the objectStorageConfig of the sideCar container.
1138 ## @param server.thanos.objectStorageConfig.secretKey Secret key with the configuration file.
1139 ## ref: https://github.com/thanos-io/thanos/blob/main/docs/storage.md
1140 ## objectStorageConfig:
1141 ## secretName: thanos-objstore-config
1142 ## secretKey: thanos.yaml
1144 objectStorageConfig:
1146 secretKey: thanos.yaml
1147 ## ref: https://github.com/thanos-io/thanos/blob/main/docs/components/sidecar.md
1148 ## @param server.thanos.extraVolumeMounts Additional volumeMounts from `server.volumes` for thanos sidecar container
1149 ## extraVolumeMounts:
1150 ## - name: my-secret-volume
1151 ## mountPath: /etc/thanos/secrets/my-secret
1153 extraVolumeMounts: []
1154 ## Thanos sidecar container resource requests and limits.
1155 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1156 ## We usually recommend not to specify default resources and to leave this as a conscious
1157 ## choice for the user. This also increases chances charts run on environments with little
1158 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1159 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1160 ## @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).
1162 resourcesPreset: "nano"
1163 ## @param server.thanos.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1174 ## Configure extra options for liveness probe
1175 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1176 ## @param server.thanos.livenessProbe.enabled Turn on and off liveness probe
1177 ## @param server.thanos.livenessProbe.initialDelaySeconds Delay before liveness probe is initiated
1178 ## @param server.thanos.livenessProbe.periodSeconds How often to perform the probe
1179 ## @param server.thanos.livenessProbe.timeoutSeconds When the probe times out
1180 ## @param server.thanos.livenessProbe.failureThreshold Minimum consecutive failures for the probe
1181 ## @param server.thanos.livenessProbe.successThreshold Minimum consecutive successes for the probe
1185 initialDelaySeconds: 0
1188 failureThreshold: 120
1190 ## Configure extra options for readiness probe
1191 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1192 ## @param server.thanos.readinessProbe.enabled Turn on and off readiness probe
1193 ## @param server.thanos.readinessProbe.initialDelaySeconds Delay before readiness probe is initiated
1194 ## @param server.thanos.readinessProbe.periodSeconds How often to perform the probe
1195 ## @param server.thanos.readinessProbe.timeoutSeconds When the probe times out
1196 ## @param server.thanos.readinessProbe.failureThreshold Minimum consecutive failures for the probe
1197 ## @param server.thanos.readinessProbe.successThreshold Minimum consecutive successes for the probe
1201 initialDelaySeconds: 0
1204 failureThreshold: 120
1206 ## @param server.thanos.customLivenessProbe Custom livenessProbe that overrides the default one
1208 customLivenessProbe: {}
1209 ## @param server.thanos.customReadinessProbe Custom readinessProbe that overrides the default one
1211 customReadinessProbe: {}
1212 ## Thanos Sidecar Service
1215 ## @param server.thanos.service.type Kubernetes service type
1218 ## @param server.thanos.service.ports.grpc Thanos service port
1222 ## @param server.thanos.service.clusterIP Specific cluster IP when service type is cluster IP. Use `None` to create headless service by default.
1223 ## Use a "headless" service by default so it returns every pod's IP instead of loadbalancing requests.
1226 ## @param server.thanos.service.nodePorts.grpc Specify the nodePort value for the LoadBalancer and NodePort service types.
1227 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1233 ## @param server.thanos.service.loadBalancerIP `loadBalancerIP` if service type is `LoadBalancer`
1234 ## Set the LoadBalancer service type to internal only
1235 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1238 ## @param server.thanos.service.loadBalancerClass Thanos service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1239 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1241 loadBalancerClass: ""
1242 ## @param server.thanos.service.loadBalancerSourceRanges Address that are allowed when svc is `LoadBalancer`
1243 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1245 ## loadBalancerSourceRanges:
1248 loadBalancerSourceRanges: []
1249 ## @param server.thanos.service.annotations Additional annotations for Prometheus service
1252 ## @param server.thanos.service.extraPorts Additional ports to expose from the Thanos sidecar container
1260 ## @param server.thanos.service.externalTrafficPolicy Prometheus service external traffic policy
1261 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1263 externalTrafficPolicy: Cluster
1264 ## @param server.thanos.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1265 ## If "ClientIP", consecutive client requests will be directed to the same Pod
1266 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1268 sessionAffinity: None
1269 ## @param server.thanos.service.sessionAffinityConfig Additional settings for the sessionAffinity
1270 ## sessionAffinityConfig:
1272 ## timeoutSeconds: 300
1274 sessionAffinityConfig: {}
1275 ## Configure the ingress resource that allows you to access the
1276 ## Thanos Sidecar installation. Set up the URL
1277 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
1280 ## @param server.thanos.ingress.enabled Enable ingress controller resource
1283 ## @param server.thanos.ingress.pathType Ingress path type
1285 pathType: ImplementationSpecific
1286 ## @param server.thanos.ingress.hostname Default host for the ingress record
1288 hostname: thanos.prometheus.local
1289 ## @param server.thanos.ingress.path Default path for the ingress record
1290 ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
1293 ## @param server.thanos.ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
1294 ## For a full list of possible ingress annotations, please see
1295 ## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
1296 ## Use this parameter to set the required annotations for cert-manager, see
1297 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
1300 ## kubernetes.io/ingress.class: nginx
1301 ## cert-manager.io/cluster-issuer: cluster-issuer-name
1304 ## @param server.thanos.ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
1305 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
1306 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
1308 ingressClassName: ""
1309 ## @param server.thanos.ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
1310 ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
1312 ## - Use the `ingress.secrets` parameter to create this TLS secret
1313 ## - Relay on cert-manager to create it by setting `ingress.certManager=true`
1314 ## - Relay on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
1317 ## @param server.thanos.ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
1320 ## @param server.thanos.ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
1323 ## - name: thanos.prometheus.local
1327 ## @param server.thanos.ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
1332 ## serviceName: ssl-redirect
1333 ## servicePort: use-annotation
1336 ## @param server.thanos.ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
1337 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
1341 ## - thanos.prometheus.local
1342 ## secretName: thanos.prometheus.local-tls
1345 ## @param server.thanos.ingress.secrets Custom TLS certificates as secrets
1346 ## NOTE: 'key' and 'certificate' are expected in PEM format
1347 ## NOTE: 'name' should line up with a 'secretName' set further up
1348 ## 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
1349 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
1350 ## It is also possible to create and manage the certificates outside of this helm chart
1351 ## Please see README.md for more information
1354 ## - name: thanos.prometheus.local-tls
1356 ## -----BEGIN RSA PRIVATE KEY-----
1358 ## -----END RSA PRIVATE KEY-----
1360 ## -----BEGIN CERTIFICATE-----
1362 ## -----END CERTIFICATE-----
1365 ## @param server.thanos.ingress.extraRules The list of additional rules to be added to this ingress record. Evaluated as a template
1366 ## Useful when looking for additional customization, such as using different backend
1369 ## Prometheus Server ingress parameters
1370 ## ref: http://kubernetes.io/docs/concepts/services-networking/ingress/
1373 ## @param server.ingress.enabled Enable ingress record generation for Prometheus
1376 ## @param server.ingress.pathType Ingress path type
1378 pathType: ImplementationSpecific
1379 ## @param server.ingress.hostname Default host for the ingress record
1381 hostname: server.prometheus.local
1382 ## @param server.ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
1383 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
1384 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
1386 ingressClassName: ""
1387 ## @param server.ingress.path Default path for the ingress record
1388 ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
1391 ## @param server.ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
1392 ## Use this parameter to set the required annotations for cert-manager, see
1393 ## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
1396 ## kubernetes.io/ingress.class: nginx
1397 ## cert-manager.io/cluster-issuer: cluster-issuer-name
1400 ## @param server.ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
1401 ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
1403 ## - Use the `ingress.secrets` parameter to create this TLS secret
1404 ## - Rely on cert-manager to create it by setting the corresponding annotations
1405 ## - Rely on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
1408 ## @param server.ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
1411 ## @param server.ingress.extraHosts An array with additional hostname(s) to be covered with the ingress record
1414 ## - name: prometheus.local
1418 ## @param server.ingress.extraPaths An array with additional arbitrary paths that may need to be added to the ingress under the main host
1423 ## serviceName: ssl-redirect
1424 ## servicePort: use-annotation
1427 ## @param server.ingress.extraTls TLS configuration for additional hostname(s) to be covered with this ingress record
1428 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
1432 ## - prometheus.local
1433 ## secretName: prometheus.local-tls
1436 ## @param server.ingress.secrets Custom TLS certificates as secrets
1437 ## NOTE: 'key' and 'certificate' are expected in PEM format
1438 ## NOTE: 'name' should line up with a 'secretName' set further up
1439 ## 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
1440 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
1441 ## It is also possible to create and manage the certificates outside of this helm chart
1442 ## Please see README.md for more information
1445 ## - name: prometheus.local-tls
1447 ## -----BEGIN RSA PRIVATE KEY-----
1449 ## -----END RSA PRIVATE KEY-----
1451 ## -----BEGIN CERTIFICATE-----
1453 ## -----END CERTIFICATE-----
1456 ## @param server.ingress.extraRules Additional rules to be covered with this ingress record
1457 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
1460 ## - host: example.local
1465 ## name: example-svc
1470 ## ServiceAccount configuration
1473 ## @param server.serviceAccount.create Specifies whether a ServiceAccount should be created
1476 ## @param server.serviceAccount.name The name of the ServiceAccount to use.
1477 ## If not set and create is true, a name is generated using the common.names.fullname template
1480 ## @param server.serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
1483 ## @param server.serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1485 automountServiceAccountToken: false
1487 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1490 ## @param server.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
1493 ## @param server.networkPolicy.allowExternal Don't require server label for connections
1494 ## The Policy model to apply. When set to false, only pods with the correct
1495 ## server label will have network access to the ports server is listening
1496 ## on. When true, server will accept connections from any source
1497 ## (with the correct destination port).
1500 ## @param server.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1502 allowExternalEgress: true
1503 ## @param server.networkPolicy.addExternalClientAccess Allow access from pods with client label set to "true". Ignored if `server.networkPolicy.allowExternal` is true.
1505 addExternalClientAccess: true
1506 ## @param server.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1516 ## - matchExpressions:
1522 ## @param server.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1532 ## - matchExpressions:
1539 ## @param server.networkPolicy.ingressPodMatchLabels [object] Labels to match to allow traffic from other pods. Ignored if `server.networkPolicy.allowExternal` is true.
1541 ## ingressPodMatchLabels:
1542 ## my-client: "true"
1544 ingressPodMatchLabels: {}
1545 ## @param server.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces. Ignored if `server.networkPolicy.allowExternal` is true.
1546 ## @param server.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces. Ignored if `server.networkPolicy.allowExternal` is true.
1548 ingressNSMatchLabels: {}
1549 ingressNSPodMatchLabels: {}
1550 ## Prometheus service parameters
1553 ## @param server.service.type Prometheus service type
1556 ## @param server.service.ports.http Prometheus service HTTP port
1560 ## Node ports to expose
1561 ## @param server.service.nodePorts.http Node port for HTTP
1562 ## NOTE: choose port between <30000-32767>
1566 ## @param server.service.clusterIP Prometheus service Cluster IP
1571 ## @param server.service.loadBalancerIP Prometheus service Load Balancer IP
1572 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1575 ## @param server.service.loadBalancerClass Prometheus service Load Balancer class if service type is `LoadBalancer` (optional, cloud specific)
1576 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
1578 loadBalancerClass: ""
1579 ## @param server.service.loadBalancerSourceRanges Prometheus service Load Balancer sources
1580 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1582 ## loadBalancerSourceRanges:
1585 loadBalancerSourceRanges: []
1586 ## @param server.service.externalTrafficPolicy Prometheus service external traffic policy
1587 ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1589 externalTrafficPolicy: Cluster
1590 ## @param server.service.annotations Additional custom annotations for Prometheus service
1593 ## @param server.service.extraPorts Extra ports to expose in Prometheus service (normally used with the `sidecars` value)
1596 ## @param server.service.sessionAffinity Control where client requests go, to the same pod or round-robin. ClientIP by default.
1597 ## Values: ClientIP or None
1598 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
1600 sessionAffinity: ClientIP
1601 ## @param server.service.sessionAffinityConfig Additional settings for the sessionAffinity
1602 ## sessionAffinityConfig:
1604 ## timeoutSeconds: 300
1606 sessionAffinityConfig: {}
1607 ## Persistence Parameters
1610 ## Enable persistence using Persistent Volume Claims
1611 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1614 ## @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
1617 ## @param server.persistence.mountPath Path to mount the volume at.
1619 mountPath: /iamguarded/prometheus/data
1620 ## @param server.persistence.subPath The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services
1623 ## @param server.persistence.storageClass Storage class of backing PVC
1624 ## If defined, storageClassName: <storageClass>
1625 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1626 ## If undefined (the default) or set to null, no storageClassName spec is
1627 ## set, choosing the default provisioner. (gp2 on AWS, standard on
1628 ## GKE, AWS & OpenStack)
1631 ## @param server.persistence.annotations Persistent Volume Claim annotations
1634 ## @param server.persistence.accessModes Persistent Volume Access Modes
1638 ## @param server.persistence.size Size of data volume
1641 ## @param server.persistence.existingClaim The name of an existing PVC to use for persistence
1644 ## @param server.persistence.selector Selector to match an existing Persistent Volume for Prometheus data PVC
1645 ## If set, the PVC can't have a PV dynamically provisioned for it
1652 ## @param server.persistence.dataSource Custom PVC data source
1655 # RBAC configuration
1658 ## @param server.rbac.create Specifies whether RBAC resources should be created
1661 ## @param server.rbac.includeDefaultRules Specifies whether to include default rules from official prometheus helm chart
1662 ## ref: https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus/templates/clusterrole.yaml
1664 includeDefaultRules: true
1665 ## @param server.rbac.rules Custom RBAC rules to set
1677## @section Init Container Parameters
1680## 'volumePermissions' init container parameters
1681## Changes the owner and group of the persistent volume mount point to runAsUser:fsGroup values
1682## based on the *podSecurityContext/*containerSecurityContext parameters
1685 ## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
1688 ## OS Shell + Utility image
1689 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] OS Shell + Utility image registry
1690 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] OS Shell + Utility image repository
1691 ## @skip volumePermissions.image.tag OS Shell + Utility image tag (immutable tags are recommended)
1692 ## @param volumePermissions.image.pullPolicy OS Shell + Utility image pull policy
1693 ## @param volumePermissions.image.pullSecrets OS Shell + Utility image pull secrets
1697 repository: chainguard-private/os-shell-iamguarded
1699 pullPolicy: IfNotPresent
1701 ## Optionally specify an array of imagePullSecrets.
1702 ## Secrets must be manually created in the namespace.
1703 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1706 ## - myRegistryKeySecretName
1709 ## Init container's resource requests and limits
1710 ## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1711 ## @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).
1713 resourcesPreset: "nano"
1714 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1725 ## Init container Container Security Context
1726 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1727 ## @param volumePermissions.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1728 ## @param volumePermissions.containerSecurityContext.runAsUser Set init container's Security Context runAsUser
1729 ## NOTE: when runAsUser is set to special value "auto", init container will try to chown the
1730 ## data folder to auto-determined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
1731 ## "auto" is especially useful for OpenShift which has scc with dynamic user ids (and 0 is not allowed)
1733 containerSecurityContext: