DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
spark logoHELM

spark

Helm chart
iamguarded
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# This file has been modified by Chainguard, Inc.
2
#
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
6
#
7
# Copyright Broadcom, Inc. All Rights Reserved.
8
# SPDX-License-Identifier: APACHE-2.0
9
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
14
##
15
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
21
##
22
global:
23
imageRegistry: ""
24
useImageTags: false
25
## E.g.
26
## imagePullSecrets:
27
## - myRegistryKeySecretName
28
##
29
imagePullSecrets: []
30
defaultStorageClass: ""
31
storageClass: ""
32
## Security parameters
33
##
34
security:
35
## @param global.security.allowInsecureImages Allows skipping image verification
36
allowInsecureImages: false
37
## Compatibility adaptations for Kubernetes platforms
38
##
39
compatibility:
40
## Compatibility adaptations for Openshift
41
##
42
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)
44
##
45
adaptSecurityContext: auto
46
org: ""
47
## @section Common parameters
48
##
49
50
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
51
##
52
kubeVersion: ""
53
## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
54
##
55
nameOverride: ""
56
## @param fullnameOverride String to fully override common.names.fullname template
57
##
58
fullnameOverride: ""
59
## @param namespaceOverride String to fully override common.names.namespace
60
##
61
namespaceOverride: ""
62
## @param commonLabels Labels to add to all deployed objects
63
##
64
commonLabels: {}
65
## @param commonAnnotations Annotations to add to all deployed objects
66
##
67
commonAnnotations: {}
68
## @param clusterDomain Kubernetes cluster domain name
69
##
70
clusterDomain: cluster.local
71
## @param extraDeploy Array of extra objects to deploy with the release
72
##
73
extraDeploy: []
74
## @param initScripts Dictionary of init scripts. Evaluated as a template.
75
## Specify dictionary of scripts to be run at first boot
76
## Alternatively, you can put your scripts under the files/docker-entrypoint-initdb.d directory
77
## For example:
78
## initScripts:
79
## my_init_script.sh: |
80
## #!/bin/sh
81
## echo "Do something."
82
##
83
initScripts: {}
84
## @param initScriptsCM ConfigMap with the init scripts. Evaluated as a template.
85
## Note: This will override initScripts
86
##
87
initScriptsCM: ""
88
## @param initScriptsSecret Secret containing `/docker-entrypoint-initdb.d` scripts to be executed at initialization time that contain sensitive data. Evaluated as a template.
89
##
90
initScriptsSecret: ""
91
## Enable diagnostic mode in the deployment
92
##
93
diagnosticMode:
94
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
95
##
96
enabled: false
97
## @param diagnosticMode.command Command to override all containers in the deployment
98
##
99
command:
100
- sleep
101
## @param diagnosticMode.args Args to override all containers in the deployment
102
##
103
args:
104
- infinity
105
## @section Spark parameters
106
##
107
108
## Iamguarded Spark image version
109
## @param image.registry [default: REGISTRY_NAME] Spark image registry
110
## @param image.repository [default: REPOSITORY_NAME/spark] Spark image repository
111
## @skip image.tag Spark image tag (immutable tags are recommended)
112
## @param image.digest Spark image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
113
## @param image.pullPolicy Spark image pull policy
114
## @param image.pullSecrets Specify docker-registry secret names as an array
115
## @param image.debug Enable image debug mode
116
##
117
image:
118
registry: cgr.dev
119
repository: chainguard-private/spark-iamguarded
120
tag: 3.5.10
121
digest: sha256:66787560a69b135ab68be23197329dd4d0b55999f6ec030b4de05740a5726b5f
122
## Specify a imagePullPolicy
123
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
124
##
125
pullPolicy: IfNotPresent
126
## Optionally specify an array of imagePullSecrets.
127
## Secrets must be manually created in the namespace.
128
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
129
## e.g:
130
## pullSecrets:
131
## - myRegistryKeySecretName
132
##
133
pullSecrets: []
134
## Set to true if you would like to see extra information on logs
135
## It turns BASH and/or NAMI debugging in the image
136
##
137
debug: false
138
## @param hostNetwork Enable HOST Network
139
## If hostNetwork is true, then dnsPolicy is set to ClusterFirstWithHostNet
140
##
141
hostNetwork: false
142
## @section Spark master parameters
143
##
144
145
## Spark master specific configuration
146
##
147
master:
148
## @param master.enabled Deploy master statefulset
149
##
150
enabled: true
151
## @param master.existingConfigmap The name of an existing ConfigMap with your custom configuration for master
152
##
153
existingConfigmap: ""
154
## @param master.containerPorts.http Specify the port where the web interface will listen on the master over HTTP
155
## @param master.containerPorts.https Specify the port where the web interface will listen on the master over HTTPS
156
## @param master.containerPorts.cluster Specify the port where the master listens to communicate with workers
157
##
158
containerPorts:
159
http: 8080
160
https: 8480
161
cluster: 7077
162
## @param master.automountServiceAccountToken Mount Service Account token in pod
163
##
164
automountServiceAccountToken: false
165
## @param master.hostAliases Deployment pod host aliases
166
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
167
##
168
hostAliases: []
169
## @param master.extraContainerPorts Specify the port where the running jobs inside the masters listens
170
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#containerport-v1-core
171
## e.g:
172
## - name: myapp
173
## containerPort: 8000
174
## protocol: TCP
175
##
176
extraContainerPorts: []
177
## @param master.daemonMemoryLimit Set the memory limit for the master daemon
178
##
179
daemonMemoryLimit: ""
180
## @param master.configOptions Use a string to set the config options for in the form "-Dx=y"
181
##
182
configOptions: ""
183
## @param master.extraEnvVars Extra environment variables to pass to the master container
184
## For example:
185
## extraEnvVars:
186
## - name: SPARK_DAEMON_JAVA_OPTS
187
## value: -Dx=y
188
##
189
extraEnvVars: []
190
## @param master.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for master nodes
191
##
192
extraEnvVarsCM: ""
193
## @param master.extraEnvVarsSecret Name of existing Secret containing extra env vars for master nodes
194
##
195
extraEnvVarsSecret: ""
196
## Kubernetes Pods Security Context
197
## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
198
## @param master.podSecurityContext.enabled Enable security context
199
## @param master.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
200
## @param master.podSecurityContext.sysctls Set kernel settings using the sysctl interface
201
## @param master.podSecurityContext.supplementalGroups Set filesystem extra groups
202
## @param master.podSecurityContext.fsGroup Set master pod's Security Context Group ID
203
##
204
podSecurityContext:
205
enabled: true
206
fsGroupChangePolicy: Always
207
sysctls: []
208
supplementalGroups: []
209
fsGroup: 1001
210
## Configure Container Security Context
211
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
212
## @param master.containerSecurityContext.enabled Enabled containers' Security Context
213
## @param master.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
214
## @param master.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
215
## @param master.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
216
## @param master.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
217
## @param master.containerSecurityContext.privileged Set container's Security Context privileged
218
## @param master.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
219
## @param master.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
220
## @param master.containerSecurityContext.capabilities.drop List of capabilities to be dropped
221
## @param master.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
222
##
223
containerSecurityContext:
224
enabled: true
225
seLinuxOptions: {}
226
runAsUser: 1001
227
runAsGroup: 1001
228
runAsNonRoot: true
229
privileged: false
230
readOnlyRootFilesystem: true
231
allowPrivilegeEscalation: false
232
capabilities:
233
drop: ["ALL"]
234
seccompProfile:
235
type: "RuntimeDefault"
236
## @param master.command Override default container command (useful when using custom images)
237
##
238
command: []
239
## @param master.args Override default container args (useful when using custom images)
240
##
241
args: []
242
## @param master.podAnnotations Annotations for pods in StatefulSet
243
##
244
podAnnotations: {}
245
## @param master.podLabels Extra labels for pods in StatefulSet
246
##
247
podLabels: {}
248
## @param master.podAffinityPreset Spark master pod affinity preset. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
249
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
250
##
251
podAffinityPreset: ""
252
## @param master.podAntiAffinityPreset Spark master pod anti-affinity preset. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
253
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
254
##
255
podAntiAffinityPreset: soft
256
## Spark master node affinity preset
257
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
258
##
259
nodeAffinityPreset:
260
## @param master.nodeAffinityPreset.type Spark master node affinity preset type. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
261
##
262
type: ""
263
## @param master.nodeAffinityPreset.key Spark master node label key to match Ignored if `master.affinity` is set.
264
## E.g.
265
## key: "kubernetes.io/e2e-az-name"
266
##
267
key: ""
268
## @param master.nodeAffinityPreset.values Spark master node label values to match. Ignored if `master.affinity` is set.
269
## E.g.
270
## values:
271
## - e2e-az1
272
## - e2e-az2
273
##
274
values: []
275
## @param master.affinity Spark master affinity for pod assignment
276
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
277
## Note: master.podAffinityPreset, master.podAntiAffinityPreset, and master.nodeAffinityPreset will be ignored when it's set
278
##
279
affinity: {}
280
## @param master.nodeSelector Spark master node labels for pod assignment
281
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
282
##
283
nodeSelector: {}
284
## @param master.tolerations Spark master tolerations for pod assignment
285
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
286
##
287
tolerations: []
288
## @param master.updateStrategy.type Master statefulset strategy type.
289
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
290
## e.g:
291
## updateStrategy:
292
## type: RollingUpdate
293
## rollingUpdate:
294
## maxSurge: 25%
295
## maxUnavailable: 25%
296
##
297
updateStrategy:
298
type: RollingUpdate
299
## @param master.priorityClassName master pods' priorityClassName
300
##
301
priorityClassName: ""
302
## @param master.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
303
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
304
##
305
topologySpreadConstraints: []
306
## @param master.schedulerName Name of the k8s scheduler (other than default) for master pods
307
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
308
##
309
schedulerName: ""
310
## @param master.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
311
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
312
##
313
terminationGracePeriodSeconds: ""
314
## @param master.lifecycleHooks for the master container(s) to automate configuration before or after startup
315
##
316
lifecycleHooks: {}
317
## @param master.extraVolumes Optionally specify extra list of additional volumes for the master pod(s)
318
##
319
extraVolumes: []
320
## @param master.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the master container(s)
321
##
322
extraVolumeMounts: []
323
## @param master.extraVolumeClaimTemplates Optionally specify extra list of volumesClaimTemplates for the master statefulset
324
##
325
extraVolumeClaimTemplates: []
326
## Container resource requests and limits
327
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
328
## We usually recommend not to specify default resources and to leave this as a conscious
329
## choice for the user. This also increases chances charts run on environments with little
330
## resources, such as Minikube. If you do want to specify resources, uncomment the following
331
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
332
## @param master.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if master.resources is set (master.resources is recommended for production).
333
##
334
resourcesPreset: "small"
335
## @param master.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
336
## Example:
337
## resources:
338
## requests:
339
## cpu: 2
340
## memory: 512Mi
341
## limits:
342
## cpu: 3
343
## memory: 1024Mi
344
##
345
resources: {}
346
## Configure extra options for liveness probe
347
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
348
## @param master.livenessProbe.enabled Enable livenessProbe
349
## @param master.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
350
## @param master.livenessProbe.periodSeconds Period seconds for livenessProbe
351
## @param master.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
352
## @param master.livenessProbe.failureThreshold Failure threshold for livenessProbe
353
## @param master.livenessProbe.successThreshold Success threshold for livenessProbe
354
##
355
livenessProbe:
356
enabled: true
357
initialDelaySeconds: 180
358
periodSeconds: 20
359
timeoutSeconds: 5
360
failureThreshold: 6
361
successThreshold: 1
362
## Configure extra options for readiness probe
363
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
364
## @param master.readinessProbe.enabled Enable readinessProbe
365
## @param master.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
366
## @param master.readinessProbe.periodSeconds Period seconds for readinessProbe
367
## @param master.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
368
## @param master.readinessProbe.failureThreshold Failure threshold for readinessProbe
369
## @param master.readinessProbe.successThreshold Success threshold for readinessProbe
370
##
371
readinessProbe:
372
enabled: true
373
initialDelaySeconds: 30
374
periodSeconds: 10
375
timeoutSeconds: 5
376
failureThreshold: 6
377
successThreshold: 1
378
## Configure extra options for startup probe
379
## @param master.startupProbe.enabled Enable startupProbe
380
## @param master.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
381
## @param master.startupProbe.periodSeconds Period seconds for startupProbe
382
## @param master.startupProbe.timeoutSeconds Timeout seconds for startupProbe
383
## @param master.startupProbe.failureThreshold Failure threshold for startupProbe
384
## @param master.startupProbe.successThreshold Success threshold for startupProbe
385
##
386
startupProbe:
387
enabled: false
388
initialDelaySeconds: 30
389
periodSeconds: 10
390
timeoutSeconds: 5
391
failureThreshold: 6
392
successThreshold: 1
393
## @param master.customLivenessProbe Custom livenessProbe that overrides the default one
394
##
395
customLivenessProbe: {}
396
## @param master.customReadinessProbe Custom readinessProbe that overrides the default one
397
##
398
customReadinessProbe: {}
399
## @param master.customStartupProbe Custom startupProbe that overrides the default one
400
##
401
customStartupProbe: {}
402
## Network Policies
403
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
404
##
405
networkPolicy:
406
## @param master.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
407
##
408
enabled: true
409
## @param master.networkPolicy.allowExternal Don't require client label for connections
410
## The Policy model to apply. When set to false, only pods with the correct
411
## client label will have network access to the ports the application is listening
412
## on. When true, the app will accept connections from any source
413
## (with the correct destination port).
414
##
415
allowExternal: true
416
## @param master.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
417
##
418
allowExternalEgress: true
419
## @param master.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
420
## e.g:
421
## extraIngress:
422
## - ports:
423
## - port: 1234
424
## from:
425
## - podSelector:
426
## - matchLabels:
427
## - role: frontend
428
## - podSelector:
429
## - matchExpressions:
430
## - key: role
431
## operator: In
432
## values:
433
## - frontend
434
extraIngress: []
435
## @param master.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
436
## e.g:
437
## extraEgress:
438
## - ports:
439
## - port: 1234
440
## to:
441
## - podSelector:
442
## - matchLabels:
443
## - role: frontend
444
## - podSelector:
445
## - matchExpressions:
446
## - key: role
447
## operator: In
448
## values:
449
## - frontend
450
##
451
extraEgress: []
452
## @param master.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
453
## @param master.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
454
##
455
ingressNSMatchLabels: {}
456
ingressNSPodMatchLabels: {}
457
## @param master.sidecars Add additional sidecar containers to the master pod(s)
458
## e.g:
459
## sidecars:
460
## - name: your-image-name
461
## image: your-image
462
## imagePullPolicy: Always
463
## ports:
464
## - name: portname
465
## containerPort: 1234
466
##
467
sidecars: []
468
## @param master.initContainers Add initContainers to the master pods.
469
## Example:
470
## initContainers:
471
## - name: your-image-name
472
## image: your-image
473
## imagePullPolicy: Always
474
## ports:
475
## - name: portname
476
## containerPort: 1234
477
##
478
initContainers: []
479
## Pod Disruption Budget configuration
480
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
481
## @param master.pdb.create Enable/disable a Pod Disruption Budget creation
482
## @param master.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
483
## @param master.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `master.pdb.minAvailable` and `master.pdb.maxUnavailable` are empty.
484
##
485
pdb:
486
create: true
487
minAvailable: ""
488
maxUnavailable: ""
489
## @section Spark worker parameters
490
##
491
492
## Spark worker specific configuration
493
##
494
worker:
495
## @param worker.enabled Deploy worker resources
496
##
497
enabled: true
498
## @param worker.existingConfigmap The name of an existing ConfigMap with your custom configuration for workers
499
##
500
existingConfigmap: ""
501
## @param worker.containerPorts.http Specify the port where the web interface will listen on the worker over HTTP
502
## @param worker.containerPorts.https Specify the port where the web interface will listen on the worker over HTTPS
503
## @param worker.containerPorts.cluster Specify the port where the worker listens to communicate with workers
504
##
505
containerPorts:
506
http: 8080
507
https: 8480
508
cluster: ""
509
## @param worker.automountServiceAccountToken Mount Service Account token in pod
510
##
511
automountServiceAccountToken: false
512
## @param worker.hostAliases Add deployment host aliases
513
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
514
##
515
hostAliases: []
516
## @param worker.extraContainerPorts Specify the port where the running jobs inside the workers listens
517
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#containerport-v1-core
518
## e.g:
519
## - name: myapp
520
## containerPort: 8000
521
## protocol: TCP
522
##
523
extraContainerPorts: []
524
## @param worker.daemonMemoryLimit Set the memory limit for the worker daemon
525
##
526
daemonMemoryLimit: ""
527
## @param worker.memoryLimit Set the maximum memory the worker is allowed to use
528
##
529
memoryLimit: ""
530
## @param worker.coreLimit Se the maximum number of cores that the worker can use
531
##
532
coreLimit: ""
533
## @param worker.dir Set a custom working directory for the application
534
##
535
dir: ""
536
## @param worker.javaOptions Set options for the JVM in the form `-Dx=y`
537
##
538
javaOptions: ""
539
## @param worker.configOptions Set extra options to configure the worker in the form `-Dx=y`
540
##
541
configOptions: ""
542
## @param worker.extraEnvVars An array to add extra env vars
543
## For example:
544
## extraEnvVars:
545
## - name: SPARK_DAEMON_JAVA_OPTS
546
## value: -Dx=y
547
##
548
extraEnvVars: []
549
## @param worker.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for worker nodes
550
##
551
extraEnvVarsCM: ""
552
## @param worker.extraEnvVarsSecret Name of existing Secret containing extra env vars for worker nodes
553
##
554
extraEnvVarsSecret: ""
555
## @param worker.replicaCount Number of spark workers (will be the minimum number when autoscaling is enabled)
556
##
557
replicaCount: 2
558
## Kubernetes Pods Security Context
559
## https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
560
## @param worker.podSecurityContext.enabled Enable security context
561
## @param worker.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
562
## @param worker.podSecurityContext.sysctls Set kernel settings using the sysctl interface
563
## @param worker.podSecurityContext.supplementalGroups Set filesystem extra groups
564
## @param worker.podSecurityContext.fsGroup Group ID for the container
565
## @param worker.podSecurityContext.seLinuxOptions [object,nullable] SELinux options for the container
566
##
567
podSecurityContext:
568
enabled: true
569
fsGroupChangePolicy: Always
570
sysctls: []
571
supplementalGroups: []
572
fsGroup: 1001
573
seLinuxOptions: {}
574
## Configure Container Security Context
575
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
576
## @param worker.containerSecurityContext.enabled Enabled containers' Security Context
577
## @param worker.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
578
## @param worker.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
579
## @param worker.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
580
## @param worker.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
581
## @param worker.containerSecurityContext.privileged Set container's Security Context privileged
582
## @param worker.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
583
## @param worker.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
584
## @param worker.containerSecurityContext.capabilities.drop List of capabilities to be dropped
585
## @param worker.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
586
##
587
containerSecurityContext:
588
enabled: true
589
seLinuxOptions: {}
590
runAsUser: 1001
591
runAsGroup: 1001
592
runAsNonRoot: true
593
privileged: false
594
readOnlyRootFilesystem: true
595
allowPrivilegeEscalation: false
596
capabilities:
597
drop: ["ALL"]
598
seccompProfile:
599
type: "RuntimeDefault"
600
## @param worker.command Override default container command (useful when using custom images)
601
##
602
command: []
603
## @param worker.args Override default container args (useful when using custom images)
604
##
605
args: []
606
## @param worker.podAnnotations Annotations for pods in StatefulSet
607
##
608
podAnnotations: {}
609
## @param worker.podLabels Extra labels for pods in StatefulSet
610
##
611
podLabels: {}
612
## @param worker.podAffinityPreset Spark worker pod affinity preset. Ignored if `worker.affinity` is set. Allowed values: `soft` or `hard`
613
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
614
##
615
podAffinityPreset: ""
616
## @param worker.podAntiAffinityPreset Spark worker pod anti-affinity preset. Ignored if `worker.affinity` is set. Allowed values: `soft` or `hard`
617
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
618
##
619
podAntiAffinityPreset: soft
620
## Spark worker node affinity preset
621
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
622
##
623
nodeAffinityPreset:
624
## @param worker.nodeAffinityPreset.type Spark worker node affinity preset type. Ignored if `worker.affinity` is set. Allowed values: `soft` or `hard`
625
##
626
type: ""
627
## @param worker.nodeAffinityPreset.key Spark worker node label key to match Ignored if `worker.affinity` is set.
628
## E.g.
629
## key: "kubernetes.io/e2e-az-name"
630
##
631
key: ""
632
## @param worker.nodeAffinityPreset.values Spark worker node label values to match. Ignored if `worker.affinity` is set.
633
## E.g.
634
## values:
635
## - e2e-az1
636
## - e2e-az2
637
##
638
values: []
639
## @param worker.affinity Spark worker affinity for pod assignment
640
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
641
## Note: worker.podAffinityPreset, worker.podAntiAffinityPreset, and worker.nodeAffinityPreset will be ignored when it's set
642
##
643
affinity: {}
644
## @param worker.nodeSelector Spark worker node labels for pod assignment
645
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
646
##
647
nodeSelector: {}
648
## @param worker.tolerations Spark worker tolerations for pod assignment
649
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
650
##
651
tolerations: []
652
## @param worker.updateStrategy.type Worker statefulset strategy type.
653
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
654
## e.g:
655
## updateStrategy:
656
## type: RollingUpdate
657
## rollingUpdate:
658
## maxSurge: 25%
659
## maxUnavailable: 25%
660
##
661
updateStrategy:
662
type: RollingUpdate
663
## @param worker.podManagementPolicy Statefulset Pod Management Policy Type
664
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
665
##
666
podManagementPolicy: OrderedReady
667
## @param worker.priorityClassName worker pods' priorityClassName
668
##
669
priorityClassName: ""
670
## @param worker.topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
671
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
672
##
673
topologySpreadConstraints: []
674
## @param worker.schedulerName Name of the k8s scheduler (other than default) for worker pods
675
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
676
##
677
schedulerName: ""
678
## @param worker.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
679
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
680
##
681
terminationGracePeriodSeconds: ""
682
## @param worker.lifecycleHooks for the worker container(s) to automate configuration before or after startup
683
##
684
lifecycleHooks: {}
685
## @param worker.extraVolumes Optionally specify extra list of additional volumes for the worker pod(s)
686
##
687
extraVolumes: []
688
## @param worker.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the master container(s)
689
##
690
extraVolumeMounts: []
691
## @param worker.extraVolumeClaimTemplates Optionally specify extra list of volumesClaimTemplates for the worker statefulset
692
##
693
extraVolumeClaimTemplates: []
694
## Container resource requests and limits
695
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
696
## We usually recommend not to specify default resources and to leave this as a conscious
697
## choice for the user. This also increases chances charts run on environments with little
698
## resources, such as Minikube. If you do want to specify resources, uncomment the following
699
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
700
## @param worker.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if worker.resources is set (worker.resources is recommended for production).
701
##
702
resourcesPreset: "small"
703
## @param worker.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
704
## Example:
705
## resources:
706
## requests:
707
## cpu: 2
708
## memory: 512Mi
709
## limits:
710
## cpu: 3
711
## memory: 1024Mi
712
##
713
resources: {}
714
## Configure extra options for liveness probe
715
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
716
## @param worker.livenessProbe.enabled Enable livenessProbe
717
## @param worker.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
718
## @param worker.livenessProbe.periodSeconds Period seconds for livenessProbe
719
## @param worker.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
720
## @param worker.livenessProbe.failureThreshold Failure threshold for livenessProbe
721
## @param worker.livenessProbe.successThreshold Success threshold for livenessProbe
722
##
723
livenessProbe:
724
enabled: true
725
initialDelaySeconds: 180
726
periodSeconds: 20
727
timeoutSeconds: 5
728
failureThreshold: 6
729
successThreshold: 1
730
## Configure extra options for readiness probe
731
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
732
## @param worker.readinessProbe.enabled Enable readinessProbe
733
## @param worker.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
734
## @param worker.readinessProbe.periodSeconds Period seconds for readinessProbe
735
## @param worker.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
736
## @param worker.readinessProbe.failureThreshold Failure threshold for readinessProbe
737
## @param worker.readinessProbe.successThreshold Success threshold for readinessProbe
738
##
739
readinessProbe:
740
enabled: true
741
initialDelaySeconds: 30
742
periodSeconds: 10
743
timeoutSeconds: 5
744
failureThreshold: 6
745
successThreshold: 1
746
## Configure extra options for startup probe
747
## @param worker.startupProbe.enabled Enable startupProbe
748
## @param worker.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
749
## @param worker.startupProbe.periodSeconds Period seconds for startupProbe
750
## @param worker.startupProbe.timeoutSeconds Timeout seconds for startupProbe
751
## @param worker.startupProbe.failureThreshold Failure threshold for startupProbe
752
## @param worker.startupProbe.successThreshold Success threshold for startupProbe
753
##
754
startupProbe:
755
enabled: true
756
initialDelaySeconds: 30
757
periodSeconds: 10
758
timeoutSeconds: 5
759
failureThreshold: 6
760
successThreshold: 1
761
## @param worker.customLivenessProbe Custom livenessProbe that overrides the default one
762
##
763
customLivenessProbe: {}
764
## @param worker.customReadinessProbe Custom readinessProbe that overrides the default one
765
##
766
customReadinessProbe: {}
767
## @param worker.customStartupProbe Custom startupProbe that overrides the default one
768
##
769
customStartupProbe: {}
770
## Network Policies
771
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
772
##
773
networkPolicy:
774
## @param worker.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
775
##
776
enabled: true
777
## @param worker.networkPolicy.allowExternal Don't require client label for connections
778
## The Policy model to apply. When set to false, only pods with the correct
779
## client label will have network access to the ports the application is listening
780
## on. When true, the app will accept connections from any source
781
## (with the correct destination port).
782
##
783
allowExternal: true
784
## @param worker.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
785
##
786
allowExternalEgress: true
787
## @param worker.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
788
## e.g:
789
## extraIngress:
790
## - ports:
791
## - port: 1234
792
## from:
793
## - podSelector:
794
## - matchLabels:
795
## - role: frontend
796
## - podSelector:
797
## - matchExpressions:
798
## - key: role
799
## operator: In
800
## values:
801
## - frontend
802
extraIngress: []
803
## @param worker.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
804
## e.g:
805
## extraEgress:
806
## - ports:
807
## - port: 1234
808
## to:
809
## - podSelector:
810
## - matchLabels:
811
## - role: frontend
812
## - podSelector:
813
## - matchExpressions:
814
## - key: role
815
## operator: In
816
## values:
817
## - frontend
818
##
819
extraEgress: []
820
## @param worker.networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
821
## @param worker.networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
822
##
823
ingressNSMatchLabels: {}
824
ingressNSPodMatchLabels: {}
825
## @param worker.sidecars Add additional sidecar containers to the worker pod(s)
826
## e.g:
827
## sidecars:
828
## - name: your-image-name
829
## image: your-image
830
## imagePullPolicy: Always
831
## ports:
832
## - name: portname
833
## containerPort: 1234
834
##
835
sidecars: []
836
## @param worker.initContainers Add initContainers to the worker pods.
837
## Example:
838
## initContainers:
839
## - name: your-image-name
840
## image: your-image
841
## imagePullPolicy: Always
842
## ports:
843
## - name: portname
844
## containerPort: 1234
845
##
846
initContainers: []
847
## Pod Disruption Budget configuration
848
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
849
## @param worker.pdb.create Enable/disable a Pod Disruption Budget creation
850
## @param worker.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
851
## @param worker.pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `worker.pdb.minAvailable` and `worker.pdb.maxUnavailable` are empty.
852
##
853
pdb:
854
create: true
855
minAvailable: ""
856
maxUnavailable: ""
857
## Autoscaling parameters
858
## @param worker.autoscaling.enabled Enable replica autoscaling depending on CPU
859
## @param worker.autoscaling.minReplicas Minimum number of worker replicas
860
## @param worker.autoscaling.maxReplicas Maximum number of worker replicas
861
## @param worker.autoscaling.targetCPU Target CPU utilization percentage
862
## @param worker.autoscaling.targetMemory Target Memory utilization percentage
863
##
864
autoscaling:
865
enabled: false
866
minReplicas: ""
867
maxReplicas: 5
868
targetCPU: 50
869
targetMemory: ""
870
## @section Security parameters
871
##
872
873
## Security configuration
874
##
875
security:
876
## @param security.passwordsSecretName Name of the secret that contains all the passwords
877
## This is optional, by default random passwords are generated
878
##
879
passwordsSecretName: ""
880
## RPC configuration
881
## @param security.rpc.authenticationEnabled Enable the RPC authentication
882
## @param security.rpc.encryptionEnabled Enable the encryption for RPC
883
##
884
rpc:
885
authenticationEnabled: false
886
encryptionEnabled: false
887
## @param security.storageEncryptionEnabled Enables local storage encryption
888
##
889
storageEncryptionEnabled: false
890
## @param security.certificatesSecretName Name of the secret that contains the certificates.
891
## It should contains two keys called "spark-keystore.jks" and "spark-truststore.jks" with the files in JKS format.
892
## DEPRECATED. Use `security.ssl.existingSecret` instead
893
##
894
certificatesSecretName: ""
895
## SSL configuration
896
##
897
ssl:
898
## @param security.ssl.enabled Enable the SSL configuration
899
##
900
enabled: false
901
## @param security.ssl.needClientAuth Enable the client authentication
902
##
903
needClientAuth: false
904
## @param security.ssl.protocol Set the SSL protocol
905
##
906
protocol: TLSv1.2
907
## @param security.ssl.existingSecret Name of the existing secret containing the TLS certificates
908
## It should contains two keys called "spark-keystore.jks" and "spark-truststore.jks" with the files in JKS format.
909
##
910
existingSecret: ""
911
## @param security.ssl.autoGenerated Create self-signed TLS certificates. Currently only supports PEM certificates
912
## The Spark container will generate a JKS keystore and trustore using the PEM certificates.
913
##
914
autoGenerated: false
915
## @param security.ssl.keystorePassword Set the password of the JKS Keystore
916
##
917
keystorePassword: ""
918
## @param security.ssl.truststorePassword Truststore password.
919
##
920
truststorePassword: ""
921
## Container resource requests and limits
922
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
923
## We usually recommend not to specify default resources and to leave this as a conscious
924
## choice for the user. This also increases chances charts run on environments with little
925
## resources, such as Minikube. If you do want to specify resources, uncomment the following
926
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
927
## @param security.ssl.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if security.ssl.resources is set (security.ssl.resources is recommended for production).
928
##
929
resourcesPreset: "small"
930
## @param security.ssl.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
931
## Example:
932
## resources:
933
## requests:
934
## cpu: 2
935
## memory: 512Mi
936
## limits:
937
## cpu: 3
938
## memory: 1024Mi
939
##
940
resources: {}
941
## @section Traffic Exposure parameters
942
##
943
944
## Service parameters
945
##
946
service:
947
## @param service.type Kubernetes Service type
948
##
949
type: ClusterIP
950
## @param service.ports.http Spark client port for HTTP
951
## @param service.ports.https Spark client port for HTTPS
952
## @param service.ports.cluster Spark cluster port
953
##
954
ports:
955
http: 80
956
https: 443
957
cluster: 7077
958
## Specify the nodePort(s) value(s) for the LoadBalancer and NodePort service types.
959
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
960
## @param service.nodePorts.http Kubernetes web node port for HTTP
961
## @param service.nodePorts.https Kubernetes web node port for HTTPS
962
## @param service.nodePorts.cluster Kubernetes cluster node port
963
##
964
nodePorts:
965
http: ""
966
https: ""
967
cluster: ""
968
## @param service.clusterIP Spark service Cluster IP
969
## e.g.:
970
## clusterIP: None
971
##
972
clusterIP: ""
973
## @param service.loadBalancerIP Load balancer IP if spark service type is `LoadBalancer`
974
## Set the LoadBalancer service type to internal only
975
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
976
##
977
loadBalancerIP: ""
978
## @param service.loadBalancerSourceRanges Spark service Load Balancer sources
979
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
980
## e.g:
981
## loadBalancerSourceRanges:
982
## - 10.10.10.0/24
983
##
984
loadBalancerSourceRanges: []
985
## @param service.externalTrafficPolicy Spark service external traffic policy
986
## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
987
##
988
externalTrafficPolicy: Cluster
989
## @param service.annotations Additional custom annotations for Spark service
990
##
991
annotations: {}
992
## @param service.extraPorts Extra ports to expose in Spark service (normally used with the `sidecars` value)
993
##
994
extraPorts: []
995
## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
996
## Values: ClientIP or None
997
## ref: https://kubernetes.io/docs/concepts/services-networking/service/
998
##
999
sessionAffinity: None
1000
## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
1001
## sessionAffinityConfig:
1002
## clientIP:
1003
## timeoutSeconds: 300
1004
##
1005
sessionAffinityConfig: {}
1006
## Headless service properties
1007
##
1008
headless:
1009
## @param service.headless.annotations Annotations for the headless service.
1010
##
1011
annotations: {}
1012
## Configure the ingress resource that allows you to access the
1013
## Spark installation. Set up the URL
1014
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
1015
##
1016
ingress:
1017
## @param ingress.enabled Enable ingress controller resource
1018
##
1019
enabled: false
1020
## @param ingress.pathType Ingress path type
1021
##
1022
pathType: ImplementationSpecific
1023
## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
1024
##
1025
apiVersion: ""
1026
## @param ingress.hostname Default host for the ingress resource
1027
##
1028
hostname: spark.local
1029
## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
1030
## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster .
1031
## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
1032
##
1033
ingressClassName: ""
1034
## @param ingress.path The Path to Spark. You may need to set this to '/*' in order to use this with ALB ingress controllers.
1035
##
1036
path: /
1037
## @param ingress.annotations Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
1038
## For a full list of possible ingress annotations, please see
1039
## ref: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md
1040
## Use this parameter to set the required annotations for cert-manager, see
1041
## ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
1042
##
1043
## e.g:
1044
## annotations:
1045
## kubernetes.io/ingress.class: nginx
1046
## cert-manager.io/cluster-issuer: cluster-issuer-name
1047
##
1048
annotations: {}
1049
## @param ingress.tls Enable TLS configuration for the hostname defined at ingress.hostname parameter
1050
## TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }}
1051
## You can use the ingress.secrets parameter to create this TLS secret or rely on cert-manager to create it
1052
##
1053
tls: false
1054
## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
1055
##
1056
selfSigned: false
1057
## @param ingress.extraHosts The list of additional hostnames to be covered with this ingress record.
1058
## Most likely the hostname above will be enough, but in the event more hosts are needed, this is an array
1059
## extraHosts:
1060
## - name: spark.local
1061
## path: /
1062
##
1063
extraHosts: []
1064
## @param ingress.extraPaths Any additional arbitrary paths that may need to be added to the ingress under the main host.
1065
## For example: The ALB ingress controller requires a special rule for handling SSL redirection.
1066
## extraPaths:
1067
## - path: /*
1068
## backend:
1069
## serviceName: ssl-redirect
1070
## servicePort: use-annotation
1071
##
1072
extraPaths: []
1073
## @param ingress.extraTls The tls configuration for additional hostnames to be covered with this ingress record.
1074
## see: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
1075
## extraTls:
1076
## - hosts:
1077
## - spark.local
1078
## secretName: spark.local-tls
1079
##
1080
extraTls: []
1081
## @param ingress.secrets If you're providing your own certificates, please use this to add the certificates as secrets
1082
## key and certificate should start with -----BEGIN CERTIFICATE----- or
1083
## -----BEGIN RSA PRIVATE KEY-----
1084
##
1085
## name should line up with a tlsSecret set further up
1086
## If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set
1087
##
1088
## It is also possible to create and manage the certificates outside of this helm chart
1089
## Please see README.md for more information
1090
## e.g:
1091
## - name: spark.local-tls
1092
## key:
1093
## certificate:
1094
##
1095
secrets: []
1096
## @param ingress.extraRules Additional rules to be covered with this ingress record
1097
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
1098
## e.g:
1099
## extraRules:
1100
## - host: spark.local
1101
## http:
1102
## path: /
1103
## backend:
1104
## service:
1105
## name: spark-svc
1106
## port:
1107
## name: http
1108
##
1109
extraRules: []
1110
## @section Other parameters
1111
##
1112
1113
## ServiceAccount configuration
1114
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1115
##
1116
serviceAccount:
1117
## @param serviceAccount.create Enable the creation of a ServiceAccount for Spark pods
1118
##
1119
create: true
1120
## @param serviceAccount.name The name of the ServiceAccount to use.
1121
## If not set and create is true, a name is generated using the spark.fullname template
1122
##
1123
name: ""
1124
## @param serviceAccount.annotations Annotations for Spark Service Account
1125
##
1126
annotations: {}
1127
## @param serviceAccount.automountServiceAccountToken Automount API credentials for a service account.
1128
##
1129
automountServiceAccountToken: false
1130
## @section Metrics parameters
1131
##
1132
1133
## Metrics configuration
1134
##
1135
metrics:
1136
## @param metrics.enabled Start a side-car prometheus exporter
1137
##
1138
enabled: false
1139
## @param metrics.masterAnnotations [object] Annotations for the Prometheus metrics on master nodes
1140
##
1141
masterAnnotations:
1142
prometheus.io/scrape: 'true'
1143
prometheus.io/path: '/metrics/'
1144
prometheus.io/port: '{{ .Values.master.containerPorts.http }}'
1145
## @param metrics.workerAnnotations [object] Annotations for the Prometheus metrics on worker nodes
1146
##
1147
workerAnnotations:
1148
prometheus.io/scrape: 'true'
1149
prometheus.io/path: '/metrics/'
1150
prometheus.io/port: '{{ .Values.worker.containerPorts.http }}'
1151
## Prometheus Service Monitor
1152
## ref: https://github.com/coreos/prometheus-operator
1153
## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
1154
##
1155
podMonitor:
1156
## @param metrics.podMonitor.enabled If the operator is installed in your cluster, set to true to create a PodMonitor Resource for scraping metrics using PrometheusOperator
1157
##
1158
enabled: false
1159
## @param metrics.podMonitor.extraMetricsEndpoints Add metrics endpoints for monitoring the jobs running in the worker nodes
1160
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#podmetricsendpoint
1161
## e.g:
1162
## - port: myapp
1163
## path: /metrics/
1164
##
1165
extraMetricsEndpoints: []
1166
## @param metrics.podMonitor.namespace Specify the namespace in which the podMonitor resource will be created
1167
##
1168
namespace: ""
1169
## @param metrics.podMonitor.interval Specify the interval at which metrics should be scraped
1170
##
1171
interval: 30s
1172
## @param metrics.podMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
1173
## e.g:
1174
## scrapeTimeout: 30s
1175
##
1176
scrapeTimeout: ""
1177
## @param metrics.podMonitor.additionalLabels Additional labels that can be used so PodMonitors will be discovered by Prometheus
1178
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
1179
##
1180
additionalLabels: {}
1181
## Custom PrometheusRule to be defined
1182
## The value is evaluated as a template, so, for example, the value can depend on .Release or .Chart
1183
## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
1184
##
1185
prometheusRule:
1186
## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus
1187
##
1188
enabled: false
1189
## @param metrics.prometheusRule.namespace Namespace where the prometheusRules resource should be created
1190
##
1191
namespace: ""
1192
## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
1193
##
1194
additionalLabels: {}
1195
## @param metrics.prometheusRule.rules Custom Prometheus [rules](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/)
1196
## These are just examples rules, please adapt them to your needs.
1197
## Make sure to constraint the rules to the current postgresql service.
1198
## rules:
1199
## - alert: HugeReplicationLag
1200
## expr: pg_replication_lag{service="{{ template "postgresql.fullname" . }}-metrics"} / 3600 > 1
1201
## for: 1m
1202
## labels:
1203
## severity: critical
1204
## annotations:
1205
## description: replication for {{ template "postgresql.fullname" . }} PostgreSQL is lagging by {{ "{{ $value }}" }} hour(s).
1206
## summary: PostgreSQL replication is lagging by {{ "{{ $value }}" }} hour(s).
1207
##
1208
rules: []
1209

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.