blob: 062711fb64c2e434c994a7bf64a1109536e9fbc9 [file] [log] [blame]
Mohammed Naser9ad0d462023-01-15 20:36:37 -05001# Default values for prometheus-pushgateway.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
4
5# Provide a name in place of prometheus-pushgateway for `app:` labels
6nameOverride: ""
7
8# Provide a name to substitute for the full names of resources
9fullnameOverride: ""
10
Mohammed Naser65cda132024-05-02 14:34:08 -040011# Provide a namespace to substitude for the namespace on resources
12namespaceOverride: ""
13
Mohammed Naser9ad0d462023-01-15 20:36:37 -050014image:
Mohammed Naser65cda132024-05-02 14:34:08 -040015 repository: quay.io/prometheus/pushgateway
16 # if not set appVersion field from Chart.yaml is used
17 tag: ""
Mohammed Naser9ad0d462023-01-15 20:36:37 -050018 pullPolicy: IfNotPresent
19
20# Optional pod imagePullSecrets
21imagePullSecrets: []
22
23service:
24 type: ClusterIP
25 port: 9091
26 targetPort: 9091
Mohammed Naser65cda132024-05-02 14:34:08 -040027 # nodePort: 32100
Mohammed Naser9ad0d462023-01-15 20:36:37 -050028
29 # Optional - Can be used for headless if value is "None"
30 clusterIP: ""
31
Mohammed Naser65cda132024-05-02 14:34:08 -040032 ipDualStack:
33 enabled: false
34 ipFamilies: ["IPv6", "IPv4"]
35 ipFamilyPolicy: "PreferDualStack"
36
Mohammed Naser9ad0d462023-01-15 20:36:37 -050037 loadBalancerIP: ""
38 loadBalancerSourceRanges: []
39
Mohammed Naser65cda132024-05-02 14:34:08 -040040# Whether to automatically mount a service account token into the pod
41automountServiceAccountToken: true
42
Mohammed Naser9ad0d462023-01-15 20:36:37 -050043# Optional pod annotations
44podAnnotations: {}
45
46# Optional pod labels
47podLabels: {}
48
49# Optional service annotations
50serviceAnnotations: {}
51
52# Optional service labels
53serviceLabels: {}
54
55# Optional serviceAccount labels
56serviceAccountLabels: {}
57
58# Optional persistentVolume labels
59persistentVolumeLabels: {}
60
61# Optional additional environment variables
62extraVars: []
63
64## Additional pushgateway container arguments
65##
66## example:
67## extraArgs:
68## - --persistence.file=/data/pushgateway.data
69## - --persistence.interval=5m
70extraArgs: []
71
Mohammed Naser65cda132024-05-02 14:34:08 -040072## Additional InitContainers to initialize the pod
73##
74extraInitContainers: []
75
76# Optional additional containers (sidecar)
77extraContainers: []
78 # - name: oAuth2-proxy
79 # args:
80 # - -https-address=:9092
81 # - -upstream=http://localhost:9091
82 # - -skip-auth-regex=^/metrics
83 # - -openshift-delegate-urls={"/":{"group":"monitoring.coreos.com","resource":"prometheuses","verb":"get"}}
84 # image: openshift/oauth-proxy:v1.1.0
85 # ports:
86 # - containerPort: 9092
87 # name: proxy
88 # resources:
89 # limits:
90 # memory: 16Mi
91 # requests:
92 # memory: 4Mi
93 # cpu: 20m
94 # volumeMounts:
95 # - mountPath: /etc/prometheus/secrets/pushgateway-tls
96 # name: secret-pushgateway-tls
97
Mohammed Naser9ad0d462023-01-15 20:36:37 -050098resources: {}
99 # We usually recommend not to specify default resources and to leave this as a conscious
100 # choice for the user. This also increases chances charts run on environments with little
101 # resources, such as Minikube. If you do want to specify resources, uncomment the following
102 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
103 # limits:
104 # cpu: 200m
Mohammed Naser65cda132024-05-02 14:34:08 -0400105 # memory: 50Mi
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500106 # requests:
107 # cpu: 100m
108 # memory: 30Mi
109
Mohammed Naser65cda132024-05-02 14:34:08 -0400110# -- Sets web configuration
111# To enable basic authentication, provide basicAuthUsers as a map
112webConfiguration: {}
113 # basicAuthUsers:
114 # username: password
115
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500116liveness:
117 enabled: true
118 probe:
119 httpGet:
Mohammed Naser65cda132024-05-02 14:34:08 -0400120 path: /-/healthy
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500121 port: 9091
122 initialDelaySeconds: 10
123 timeoutSeconds: 10
124
125readiness:
126 enabled: true
127 probe:
128 httpGet:
129 path: /-/ready
130 port: 9091
131 initialDelaySeconds: 10
132 timeoutSeconds: 10
133
134serviceAccount:
135 # Specifies whether a ServiceAccount should be created
136 create: true
137 # The name of the ServiceAccount to use.
138 # If not set and create is true, a name is generated using the fullname template
139 name:
140
141## Configure ingress resource that allow you to access the
142## pushgateway installation. Set up the URL
143## ref: http://kubernetes.io/docs/user-guide/ingress/
144##
145ingress:
146 ## Enable Ingress.
147 ##
148 enabled: false
149 # AWS ALB requires path of /*
150 className: ""
151 path: /
152 pathType: ImplementationSpecific
153
Mohammed Naser65cda132024-05-02 14:34:08 -0400154 ## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
155 extraPaths: []
156 # - path: /*
157 # backend:
158 # serviceName: ssl-redirect
159 # servicePort: use-annotation
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500160
Mohammed Naser65cda132024-05-02 14:34:08 -0400161 ## Annotations.
162 ##
163 # annotations:
164 # kubernetes.io/ingress.class: nginx
165 # kubernetes.io/tls-acme: 'true'
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500166
Mohammed Naser65cda132024-05-02 14:34:08 -0400167 ## Hostnames.
168 ## Must be provided if Ingress is enabled.
169 ##
170 # hosts:
171 # - pushgateway.domain.com
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500172
Mohammed Naser65cda132024-05-02 14:34:08 -0400173 ## TLS configuration.
174 ## Secrets must be manually created in the namespace.
175 ##
176 # tls:
177 # - secretName: pushgateway-tls
178 # hosts:
179 # - pushgateway.domain.com
180
181tolerations: []
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500182 # - effect: NoSchedule
183 # operator: Exists
184
185## Node labels for pushgateway pod assignment
186## Ref: https://kubernetes.io/docs/user-guide/node-selection/
187##
188nodeSelector: {}
189
190replicaCount: 1
191
Mohammed Naser65cda132024-05-02 14:34:08 -0400192hostAliases: []
193 # - ip: "127.0.0.1"
194 # hostnames:
195 # - "foo.local"
196 # - "bar.local"
197 # - ip: "10.1.2.3"
198 # hostnames:
199 # - "foo.remote"
200 # - "bar.remote"
201
202## When running more than one replica alongside with persistence, different volumes are needed
203## per replica, since sharing a `persistence.file` across replicas does not keep metrics synced.
204## For this purpose, you can enable the `runAsStatefulSet` to deploy the pushgateway as a
205## StatefulSet instead of as a Deployment.
206runAsStatefulSet: false
207
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500208## Security context to be added to push-gateway pods
209##
210securityContext:
211 fsGroup: 65534
212 runAsUser: 65534
213 runAsNonRoot: true
214
215## Security context to be added to push-gateway containers
216## Having a separate variable as securityContext differs for pods and containers.
217containerSecurityContext: {}
218# allowPrivilegeEscalation: false
219# readOnlyRootFilesystem: true
220# runAsUser: 65534
221# runAsNonRoot: true
222
223## Affinity for pod assignment
224## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
225affinity: {}
226
Mohammed Naser65cda132024-05-02 14:34:08 -0400227## Pod anti-affinity can prevent the scheduler from placing pushgateway replicas on the same node.
228## The value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
229## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
230## The default value "" will disable pod anti-affinity so that no anti-affinity rules will be configured (unless set in `affinity`).
231##
232podAntiAffinity: ""
233
234## If anti-affinity is enabled sets the topologyKey to use for anti-affinity.
235## This can be changed to, for example, failure-domain.beta.kubernetes.io/zone
236##
237podAntiAffinityTopologyKey: kubernetes.io/hostname
238
239## Topology spread constraints for pods
240## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
241topologySpreadConstraints: []
242
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500243# Enable this if you're using https://github.com/coreos/prometheus-operator
244serviceMonitor:
245 enabled: false
246 namespace: monitoring
247
Mohammed Naser65cda132024-05-02 14:34:08 -0400248 # telemetryPath: HTTP resource path from which to fetch metrics.
249 # Telemetry path, default /metrics, has to be prefixed accordingly if pushgateway sets a route prefix at start-up.
250 #
251 telemetryPath: "/metrics"
252
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500253 # Fallback to the prometheus default unless specified
254 # interval: 10s
255
Mohammed Naser65cda132024-05-02 14:34:08 -0400256 ## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
257 # scheme: ""
258
259 ## tlsConfig: TLS configuration to use when scraping the endpoint. For example if using istio mTLS.
260 ## Of type: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#tlsconfig
261 # tlsConfig: {}
262
263 # bearerTokenFile:
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500264 # Fallback to the prometheus default unless specified
265 # scrapeTimeout: 30s
266
267 ## Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with
268 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
269 additionalLabels: {}
270
271 # Retain the job and instance labels of the metrics pushed to the Pushgateway
272 # [Scraping Pushgateway](https://github.com/prometheus/pushgateway#configure-the-pushgateway-as-a-target-to-scrape)
273 honorLabels: true
274
275 ## Metric relabel configs to apply to samples before ingestion.
276 ## [Metric Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs)
277 metricRelabelings: []
278 # - action: keep
279 # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+'
280 # sourceLabels: [__name__]
281
282 ## Relabel configs to apply to samples before ingestion.
283 ## [Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config)
284 relabelings: []
285 # - sourceLabels: [__meta_kubernetes_pod_node_name]
286 # separator: ;
287 # regex: ^(.*)$
288 # targetLabel: nodename
289 # replacement: $1
290 # action: replace
291
292# The values to set in the PodDisruptionBudget spec (minAvailable/maxUnavailable)
293# If not set then a PodDisruptionBudget will not be created
294podDisruptionBudget: {}
295
296priorityClassName:
297
298# Deployment Strategy type
299strategy:
300 type: Recreate
301
302persistentVolume:
303 ## If true, pushgateway will create/use a Persistent Volume Claim
304 ## If false, use emptyDir
305 ##
306 enabled: false
307
308 ## pushgateway data Persistent Volume access modes
309 ## Must match those of existing PV or dynamic provisioner
310 ## Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
311 ##
312 accessModes:
313 - ReadWriteOnce
314
315 ## pushgateway data Persistent Volume Claim annotations
316 ##
317 annotations: {}
318
319 ## pushgateway data Persistent Volume existing claim name
320 ## Requires pushgateway.persistentVolume.enabled: true
321 ## If defined, PVC must be created manually before volume will be bound
322 existingClaim: ""
323
324 ## pushgateway data Persistent Volume mount root path
325 ##
326 mountPath: /data
327
328 ## pushgateway data Persistent Volume size
329 ##
330 size: 2Gi
331
332 ## pushgateway data Persistent Volume Storage Class
333 ## If defined, storageClassName: <storageClass>
334 ## If set to "-", storageClassName: "", which disables dynamic provisioning
335 ## If undefined (the default) or set to null, no storageClassName spec is
336 ## set, choosing the default provisioner. (gp2 on AWS, standard on
337 ## GKE, AWS & OpenStack)
338 ##
339 # storageClass: "-"
340
341 ## Subdirectory of pushgateway data Persistent Volume to mount
342 ## Useful if the volume's root directory is not empty
343 ##
344 subPath: ""
345
Mohammed Naser65cda132024-05-02 14:34:08 -0400346extraVolumes: []
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500347 # - name: extra
348 # emptyDir: {}
Mohammed Naser65cda132024-05-02 14:34:08 -0400349extraVolumeMounts: []
Mohammed Naser9ad0d462023-01-15 20:36:37 -0500350 # - name: extra
351 # mountPath: /usr/share/extras
352 # readOnly: true
353
354# Configuration for clusters with restrictive network policies in place:
355# - allowAll allows access to the PushGateway from any namespace
356# - customSelector is a list of pod/namespaceSelectors to allow access from
357# These options are mutually exclusive and the latter will take precedence.
358networkPolicy: {}
359 # allowAll: true
360 # customSelectors:
361 # - namespaceSelector:
362 # matchLabels:
363 # type: admin
364 # - podSelector:
365 # matchLabels:
366 # app: myapp
Mohammed Naser65cda132024-05-02 14:34:08 -0400367
368# Array of extra K8s objects to deploy (evaluated as a template)
369# The value can hold an array of strings as well as objects
370extraManifests: []