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: 1.11.4-r2@sha256:3ba459b3c6a0cba4807ee66fc051a34fef32b95ef6679f67ed2c014677ffc5f0
19 pullPolicy: IfNotPresent
20# Optional pod imagePullSecrets
28 # Optional - Set the Service port appProtocol, e.g. "http" for Istio protocol selection
29 # Ref: https://kubernetes.io/docs/concepts/services-networking/service/#application-protocol
31 # Optional - Can be used for headless if value is "None"
35 ipFamilies: ["IPv6", "IPv4"]
36 ipFamilyPolicy: "PreferDualStack"
38 loadBalancerSourceRanges: []
39# Whether to automatically mount a service account token into the pod
40automountServiceAccountToken: true
41# Optional deployment annotations
42deploymentAnnotations: {}
43# Optional pod annotations
47# Optional service annotations
49# Optional service labels
51# Optional serviceAccount labels
52serviceAccountLabels: {}
53# Optional persistentVolume labels
54persistentVolumeLabels: {}
55# Optional additional environment variables
57## Additional pushgateway container arguments
61## - --persistence.file=/data/pushgateway.data
62## - --persistence.interval=5m
64## Additional InitContainers to initialize the pod
66extraInitContainers: []
67# Optional additional containers (sidecar)
71# - -https-address=:9092
72# - -upstream=http://localhost:9091
73# - -skip-auth-regex=^/metrics
74# - -openshift-delegate-urls={"/":{"group":"monitoring.coreos.com","resource":"prometheuses","verb":"get"}}
75# image: openshift/oauth-proxy:v1.1.0
77# - containerPort: 9092
86# - mountPath: /etc/prometheus/secrets/pushgateway-tls
87# name: secret-pushgateway-tls
90# We usually recommend not to specify default resources and to leave this as a conscious
91# choice for the user. This also increases chances charts run on environments with little
92# resources, such as Minikube. If you do want to specify resources, uncomment the following
93# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
101# -- Sets web configuration
102# To enable basic authentication, provide basicAuthUsers as a map
103# If serviceMonitor.enabled is set, a secret with these credentials will be created
104# and configured in serviceMonitor. serviceMonitor.basicAuth overrides this secret.
109# Alternatively, reference an existing Secret that already holds the web
110# configuration (e.g. managed by Sealed Secrets, Vault, ...) so that no
111# credentials are kept in plaintext here. The Secret must contain a key named
112# web-config.yaml, the file name Pushgateway expects. When existingSecret is
113# set the chart-managed web-config Secret is not rendered, and the liveness and
114# readiness probes switch to a tcpSocket check, because the chart cannot read
115# the credentials to authenticate HTTP probes.
117# name: pushgateway-web-config
126 initialDelaySeconds: 10
135 initialDelaySeconds: 10
138 # Specifies whether a ServiceAccount should be created
140 # The name of the ServiceAccount to use.
141 # If not set and create is true, a name is generated using the fullname template
143## Configure ingress resource that allow you to access the
144## pushgateway installation. Set up the URL
145## ref: http://kubernetes.io/docs/user-guide/ingress/
151 # AWS ALB requires path of /*
154 pathType: ImplementationSpecific
155 ## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
159 # serviceName: ssl-redirect
160 # servicePort: use-annotation
164# kubernetes.io/ingress.class: nginx
165# kubernetes.io/tls-acme: 'true'
168## Must be provided if Ingress is enabled.
171# - pushgateway.domain.com
174## Secrets must be manually created in the namespace.
177# - secretName: pushgateway-tls
179# - pushgateway.domain.com
181## route (map) allows configuration of HTTPRoute resources
182## Requires Gateway API resources and suitable controller installed within the cluster
183## Ref. https://gateway-api.sigs.k8s.io/guides/http-routing/
188 ## ApiVersion set by default to "gateway.networking.k8s.io/v1"
190 ## kind set by default to HTTPRoute
192 ## Optional name for the default rule in the rendered HTTPRoute.
194 ## Annotations to attach to the HTTPRoute resource
196 ## Labels to attach to the HTTPRoute resource
198 ## ParentRefs refers to resources this HTTPRoute is to be attached to (Gateways)
203 ## Hostnames (templated) defines a set of hostnames that should match against the HTTP Host
204 ## header to select a HTTPRoute used to process the request
208 ## additionalRules (templated) allows adding custom rules to the route
210 ## Filters define the filters that are applied to requests that match
213 ## Matches define conditions used for matching the rule against incoming
219 ## SessionPersistence defines and configures session persistence for the rule,
220 ## e.g. to keep a client on the same replica
221 ## Ref. https://gateway-api.sigs.k8s.io/geps/gep-1619/
222 sessionPersistence: {}
223 # sessionName: pushgateway-session
225 # absoluteTimeout: 24h
227 # lifetimeType: Permanent
229 ## httpsRedirect adds a filter for redirecting to https (HTTP 301 Moved Permanently).
230 ## To redirect HTTP traffic to HTTPS, you need to have a Gateway with both HTTP and HTTPS listeners.
231 ## Matches, filters and session persistence do not take effect if enabled.
232 ## Ref. https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/
235# - effect: NoSchedule
238## Node labels for pushgateway pod assignment
239## Ref: https://kubernetes.io/docs/user-guide/node-selection/
253## When running more than one replica alongside with persistence, different volumes are needed
254## per replica, since sharing a `persistence.file` across replicas does not keep metrics synced.
255## For this purpose, you can enable the `runAsStatefulSet` to deploy the pushgateway as a
256## StatefulSet instead of as a Deployment.
257runAsStatefulSet: false
258## Security context to be added to push-gateway pods
264## Security context to be added to push-gateway containers
265## Having a separate variable as securityContext differs for pods and containers.
266containerSecurityContext: {}
267# allowPrivilegeEscalation: false
268# readOnlyRootFilesystem: true
272## Affinity for pod assignment
273## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
275## Pod anti-affinity can prevent the scheduler from placing pushgateway replicas on the same node.
276## The value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
277## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
278## The default value "" will disable pod anti-affinity so that no anti-affinity rules will be configured (unless set in `affinity`).
281## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
282## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
284podAntiAffinityTopologyKey: kubernetes.io/hostname
285## Topology spread constraints for pods
286## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
287topologySpreadConstraints: []
288# Enable this if you're using https://github.com/coreos/prometheus-operator
291 namespace: monitoring
292 # telemetryPath: HTTP resource path from which to fetch metrics.
293 # Telemetry path, default /metrics, has to be prefixed accordingly if pushgateway sets a route prefix at start-up.
295 telemetryPath: "/metrics"
296 # Fallback to the prometheus default unless specified
298 ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
300 ## Basic authentication
304 ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
305 ## Of type: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#tlsconfig
308 # Fallback to the prometheus default unless specified
310 ## Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with
311 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
313 # Retain the job and instance labels of the metrics pushed to the Pushgateway
314 # [Scraping Pushgateway](https://github.com/prometheus/pushgateway#configure-the-pushgateway-as-a-target-to-scrape)
316 ## Metric relabel configs to apply to samples before ingestion.
317 ## [Metric Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs)
318 metricRelabelings: []
320 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
321 # sourceLabels: [__name__]
323 ## Relabel configs to apply to samples before ingestion.
324 ## [Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config)
326 # - sourceLabels: [__meta_kubernetes_pod_node_name]
329 # targetLabel: nodename
332# The values to set in the PodDisruptionBudget spec (minAvailable/maxUnavailable)
333# If not set then a PodDisruptionBudget will not be created
334podDisruptionBudget: {}
336# Deployment Strategy type
340 ## If true, pushgateway will create/use a Persistent Volume Claim
341 ## If false, use emptyDir
344 ## pushgateway data Persistent Volume access modes
345 ## Must match those of existing PV or dynamic provisioner
346 ## Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
350 ## pushgateway data Persistent Volume Claim annotations
353 ## pushgateway data Persistent Volume existing claim name
354 ## Requires pushgateway.persistentVolume.enabled: true
355 ## If defined, PVC must be created manually before volume will be bound
357 ## pushgateway data Persistent Volume mount root path
360 ## pushgateway data Persistent Volume size
363 ## pushgateway data Persistent Volume Storage Class
364 ## If defined, storageClassName: <storageClass>
365 ## If set to "-", storageClassName: "", which disables dynamic provisioning
366 ## If undefined (the default) or set to null, no storageClassName spec is
367 ## set, choosing the default provisioner. (gp2 on AWS, standard on
368 ## GKE, AWS & OpenStack)
372 ## Subdirectory of pushgateway data Persistent Volume to mount
373 ## Useful if the volume's root directory is not empty
376 ## pushgateway data EmptyDir configuration,
377 ## used when pushgateway.persistentVolume.enabled: false
385# mountPath: /usr/share/extras
388# Configuration for clusters with restrictive network policies in place:
389# - allowAll allows access to the PushGateway from any namespace
390# - customSelector is a list of pod/namespaceSelectors to allow access from
391# These options are mutually exclusive and the latter will take precedence.
395# - namespaceSelector:
402# Array of extra K8s objects to deploy (evaluated as a template)
403# The value can hold an array of strings as well as objects
405# Lifecycle hooks configuration
409# command: ["/bin/sh", "-c", "sleep 30"]