1# Default values for prometheus-pushgateway.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
8# Provide a name in place of prometheus-pushgateway for `app:` labels
10# Provide a name to substitute for the full names of resources
12# Provide a namespace to substitute for the namespace on resources
16 repository: cgr.dev/chainguard-private/prometheus-pushgateway
17 # if not set appVersion field from Chart.yaml is used
18 tag: latest@sha256:fee1e56f387e92867c8ea9c76ccf072aef9ebdf0137d4b71fc367f7dabca8db1
19 pullPolicy: IfNotPresent
20# Optional pod imagePullSecrets
28 # Optional - Can be used for headless if value is "None"
32 ipFamilies: ["IPv6", "IPv4"]
33 ipFamilyPolicy: "PreferDualStack"
35 loadBalancerSourceRanges: []
36# Whether to automatically mount a service account token into the pod
37automountServiceAccountToken: true
38# Optional deployment annotations
39deploymentAnnotations: {}
40# Optional pod annotations
44# Optional service annotations
46# Optional service labels
48# Optional serviceAccount labels
49serviceAccountLabels: {}
50# Optional persistentVolume labels
51persistentVolumeLabels: {}
52# Optional additional environment variables
54## Additional pushgateway container arguments
58## - --persistence.file=/data/pushgateway.data
59## - --persistence.interval=5m
61## Additional InitContainers to initialize the pod
63extraInitContainers: []
64# Optional additional containers (sidecar)
68# - -https-address=:9092
69# - -upstream=http://localhost:9091
70# - -skip-auth-regex=^/metrics
71# - -openshift-delegate-urls={"/":{"group":"monitoring.coreos.com","resource":"prometheuses","verb":"get"}}
72# image: openshift/oauth-proxy:v1.1.0
74# - containerPort: 9092
83# - mountPath: /etc/prometheus/secrets/pushgateway-tls
84# name: secret-pushgateway-tls
87# We usually recommend not to specify default resources and to leave this as a conscious
88# choice for the user. This also increases chances charts run on environments with little
89# resources, such as Minikube. If you do want to specify resources, uncomment the following
90# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
98# -- Sets web configuration
99# To enable basic authentication, provide basicAuthUsers as a map
100# If serviceMonitor.enabled is set, a secret with these credentials will be created
101# and configured in serviceMonitor. serviceMonitor.basicAuth overrides this secret.
106# Alternatively, reference an existing Secret that already holds the web
107# configuration (e.g. managed by Sealed Secrets, Vault, ...) so that no
108# credentials are kept in plaintext here. The Secret must contain a key named
109# web-config.yaml, the file name Pushgateway expects. When existingSecret is
110# set the chart-managed web-config Secret is not rendered, and the liveness and
111# readiness probes switch to a tcpSocket check, because the chart cannot read
112# the credentials to authenticate HTTP probes.
114# name: pushgateway-web-config
123 initialDelaySeconds: 10
132 initialDelaySeconds: 10
135 # Specifies whether a ServiceAccount should be created
137 # The name of the ServiceAccount to use.
138 # If not set and create is true, a name is generated using the fullname template
140## Configure ingress resource that allow you to access the
141## pushgateway installation. Set up the URL
142## ref: http://kubernetes.io/docs/user-guide/ingress/
148 # AWS ALB requires path of /*
151 pathType: ImplementationSpecific
152 ## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
156 # serviceName: ssl-redirect
157 # servicePort: use-annotation
161# kubernetes.io/ingress.class: nginx
162# kubernetes.io/tls-acme: 'true'
165## Must be provided if Ingress is enabled.
168# - pushgateway.domain.com
171## Secrets must be manually created in the namespace.
174# - secretName: pushgateway-tls
176# - pushgateway.domain.com
178## route (map) allows configuration of HTTPRoute resources
179## Requires Gateway API resources and suitable controller installed within the cluster
180## Ref. https://gateway-api.sigs.k8s.io/guides/http-routing/
185 ## ApiVersion set by default to "gateway.networking.k8s.io/v1"
187 ## kind set by default to HTTPRoute
189 ## Annotations to attach to the HTTPRoute resource
191 ## Labels to attach to the HTTPRoute resource
193 ## ParentRefs refers to resources this HTTPRoute is to be attached to (Gateways)
198 ## Hostnames (templated) defines a set of hostnames that should match against the HTTP Host
199 ## header to select a HTTPRoute used to process the request
203 ## additionalRules (templated) allows adding custom rules to the route
205 ## Filters define the filters that are applied to requests that match
208 ## Matches define conditions used for matching the rule against incoming
214 ## httpsRedirect adds a filter for redirecting to https (HTTP 301 Moved Permanently).
215 ## To redirect HTTP traffic to HTTPS, you need to have a Gateway with both HTTP and HTTPS listeners.
216 ## Matches and filters do not take effect if enabled.
217 ## Ref. https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/
220# - effect: NoSchedule
223## Node labels for pushgateway pod assignment
224## Ref: https://kubernetes.io/docs/user-guide/node-selection/
238## When running more than one replica alongside with persistence, different volumes are needed
239## per replica, since sharing a `persistence.file` across replicas does not keep metrics synced.
240## For this purpose, you can enable the `runAsStatefulSet` to deploy the pushgateway as a
241## StatefulSet instead of as a Deployment.
242runAsStatefulSet: false
243## Security context to be added to push-gateway pods
249## Security context to be added to push-gateway containers
250## Having a separate variable as securityContext differs for pods and containers.
251containerSecurityContext: {}
252# allowPrivilegeEscalation: false
253# readOnlyRootFilesystem: true
257## Affinity for pod assignment
258## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
260## Pod anti-affinity can prevent the scheduler from placing pushgateway replicas on the same node.
261## The value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
262## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
263## The default value "" will disable pod anti-affinity so that no anti-affinity rules will be configured (unless set in `affinity`).
266## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
267## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
269podAntiAffinityTopologyKey: kubernetes.io/hostname
270## Topology spread constraints for pods
271## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
272topologySpreadConstraints: []
273# Enable this if you're using https://github.com/coreos/prometheus-operator
276 namespace: monitoring
277 # telemetryPath: HTTP resource path from which to fetch metrics.
278 # Telemetry path, default /metrics, has to be prefixed accordingly if pushgateway sets a route prefix at start-up.
280 telemetryPath: "/metrics"
281 # Fallback to the prometheus default unless specified
283 ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
285 ## Basic authentication
289 ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
290 ## Of type: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#tlsconfig
293 # Fallback to the prometheus default unless specified
295 ## Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with
296 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
298 # Retain the job and instance labels of the metrics pushed to the Pushgateway
299 # [Scraping Pushgateway](https://github.com/prometheus/pushgateway#configure-the-pushgateway-as-a-target-to-scrape)
301 ## Metric relabel configs to apply to samples before ingestion.
302 ## [Metric Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs)
303 metricRelabelings: []
305 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
306 # sourceLabels: [__name__]
308 ## Relabel configs to apply to samples before ingestion.
309 ## [Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config)
311 # - sourceLabels: [__meta_kubernetes_pod_node_name]
314 # targetLabel: nodename
317# The values to set in the PodDisruptionBudget spec (minAvailable/maxUnavailable)
318# If not set then a PodDisruptionBudget will not be created
319podDisruptionBudget: {}
321# Deployment Strategy type
325 ## If true, pushgateway will create/use a Persistent Volume Claim
326 ## If false, use emptyDir
329 ## pushgateway data Persistent Volume access modes
330 ## Must match those of existing PV or dynamic provisioner
331 ## Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
335 ## pushgateway data Persistent Volume Claim annotations
338 ## pushgateway data Persistent Volume existing claim name
339 ## Requires pushgateway.persistentVolume.enabled: true
340 ## If defined, PVC must be created manually before volume will be bound
342 ## pushgateway data Persistent Volume mount root path
345 ## pushgateway data Persistent Volume size
348 ## pushgateway data Persistent Volume Storage Class
349 ## If defined, storageClassName: <storageClass>
350 ## If set to "-", storageClassName: "", which disables dynamic provisioning
351 ## If undefined (the default) or set to null, no storageClassName spec is
352 ## set, choosing the default provisioner. (gp2 on AWS, standard on
353 ## GKE, AWS & OpenStack)
357 ## Subdirectory of pushgateway data Persistent Volume to mount
358 ## Useful if the volume's root directory is not empty
366# mountPath: /usr/share/extras
369# Configuration for clusters with restrictive network policies in place:
370# - allowAll allows access to the PushGateway from any namespace
371# - customSelector is a list of pod/namespaceSelectors to allow access from
372# These options are mutually exclusive and the latter will take precedence.
376# - namespaceSelector:
383# Array of extra K8s objects to deploy (evaluated as a template)
384# The value can hold an array of strings as well as objects
386# Lifecycle hooks configuration
390# command: ["/bin/sh", "-c", "sleep 30"]