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 Force target Kubernetes version (using Helm capabilities if not set)
53## @param nameOverride String to partially override common.names.fullname template (will maintain the release name)
56## @param fullnameOverride String to fully override common.names.fullname template
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## @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
79## my_init_script.sh: |
81## echo "Do something."
84## @param initScriptsCM ConfigMap with the init scripts. Evaluated as a template.
85## Note: This will override initScripts
88## @param initScriptsSecret Secret containing `/docker-entrypoint-initdb.d` scripts to be executed at initialization time that contain sensitive data. Evaluated as a template.
91## Enable diagnostic mode in the deployment
94 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
97 ## @param diagnosticMode.command Command to override all containers in the deployment
101 ## @param diagnosticMode.args Args to override all containers in the deployment
105## @section Spark parameters
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
119 repository: chainguard-private/spark-iamguarded
121 digest: sha256:66787560a69b135ab68be23197329dd4d0b55999f6ec030b4de05740a5726b5f
122 ## Specify a imagePullPolicy
123 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
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/
131 ## - myRegistryKeySecretName
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
138## @param hostNetwork Enable HOST Network
139## If hostNetwork is true, then dnsPolicy is set to ClusterFirstWithHostNet
142## @section Spark master parameters
145## Spark master specific configuration
148 ## @param master.enabled Deploy master statefulset
151 ## @param master.existingConfigmap The name of an existing ConfigMap with your custom configuration for master
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
162 ## @param master.automountServiceAccountToken Mount Service Account token in pod
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/
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
173 ## containerPort: 8000
176 extraContainerPorts: []
177 ## @param master.daemonMemoryLimit Set the memory limit for the master daemon
179 daemonMemoryLimit: ""
180 ## @param master.configOptions Use a string to set the config options for in the form "-Dx=y"
183 ## @param master.extraEnvVars Extra environment variables to pass to the master container
186 ## - name: SPARK_DAEMON_JAVA_OPTS
190 ## @param master.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for master nodes
193 ## @param master.extraEnvVarsSecret Name of existing Secret containing extra env vars for master nodes
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
206 fsGroupChangePolicy: Always
208 supplementalGroups: []
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
223 containerSecurityContext:
230 readOnlyRootFilesystem: true
231 allowPrivilegeEscalation: false
235 type: "RuntimeDefault"
236 ## @param master.command Override default container command (useful when using custom images)
239 ## @param master.args Override default container args (useful when using custom images)
242 ## @param master.podAnnotations Annotations for pods in StatefulSet
245 ## @param master.podLabels Extra labels for pods in StatefulSet
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
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
255 podAntiAffinityPreset: soft
256 ## Spark master node affinity preset
257 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
260 ## @param master.nodeAffinityPreset.type Spark master node affinity preset type. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
263 ## @param master.nodeAffinityPreset.key Spark master node label key to match Ignored if `master.affinity` is set.
265 ## key: "kubernetes.io/e2e-az-name"
268 ## @param master.nodeAffinityPreset.values Spark master node label values to match. Ignored if `master.affinity` is set.
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
280 ## @param master.nodeSelector Spark master node labels for pod assignment
281 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
284 ## @param master.tolerations Spark master tolerations for pod assignment
285 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
288 ## @param master.updateStrategy.type Master statefulset strategy type.
289 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
292 ## type: RollingUpdate
295 ## maxUnavailable: 25%
299 ## @param master.priorityClassName master pods' priorityClassName
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
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/
310 ## @param master.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
311 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
313 terminationGracePeriodSeconds: ""
314 ## @param master.lifecycleHooks for the master container(s) to automate configuration before or after startup
317 ## @param master.extraVolumes Optionally specify extra list of additional volumes for the master pod(s)
320 ## @param master.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the master container(s)
322 extraVolumeMounts: []
323 ## @param master.extraVolumeClaimTemplates Optionally specify extra list of volumesClaimTemplates for the master statefulset
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).
334 resourcesPreset: "small"
335 ## @param master.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
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
357 initialDelaySeconds: 180
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
373 initialDelaySeconds: 30
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
388 initialDelaySeconds: 30
393 ## @param master.customLivenessProbe Custom livenessProbe that overrides the default one
395 customLivenessProbe: {}
396 ## @param master.customReadinessProbe Custom readinessProbe that overrides the default one
398 customReadinessProbe: {}
399 ## @param master.customStartupProbe Custom startupProbe that overrides the default one
401 customStartupProbe: {}
403 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
406 ## @param master.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
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).
416 ## @param master.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
418 allowExternalEgress: true
419 ## @param master.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
429 ## - matchExpressions:
435 ## @param master.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
445 ## - matchExpressions:
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
455 ingressNSMatchLabels: {}
456 ingressNSPodMatchLabels: {}
457 ## @param master.sidecars Add additional sidecar containers to the master pod(s)
460 ## - name: your-image-name
462 ## imagePullPolicy: Always
465 ## containerPort: 1234
468 ## @param master.initContainers Add initContainers to the master pods.
471 ## - name: your-image-name
473 ## imagePullPolicy: Always
476 ## containerPort: 1234
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.
489## @section Spark worker parameters
492## Spark worker specific configuration
495 ## @param worker.enabled Deploy worker resources
498 ## @param worker.existingConfigmap The name of an existing ConfigMap with your custom configuration for workers
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
509 ## @param worker.automountServiceAccountToken Mount Service Account token in pod
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/
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
520 ## containerPort: 8000
523 extraContainerPorts: []
524 ## @param worker.daemonMemoryLimit Set the memory limit for the worker daemon
526 daemonMemoryLimit: ""
527 ## @param worker.memoryLimit Set the maximum memory the worker is allowed to use
530 ## @param worker.coreLimit Se the maximum number of cores that the worker can use
533 ## @param worker.dir Set a custom working directory for the application
536 ## @param worker.javaOptions Set options for the JVM in the form `-Dx=y`
539 ## @param worker.configOptions Set extra options to configure the worker in the form `-Dx=y`
542 ## @param worker.extraEnvVars An array to add extra env vars
545 ## - name: SPARK_DAEMON_JAVA_OPTS
549 ## @param worker.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for worker nodes
552 ## @param worker.extraEnvVarsSecret Name of existing Secret containing extra env vars for worker nodes
554 extraEnvVarsSecret: ""
555 ## @param worker.replicaCount Number of spark workers (will be the minimum number when autoscaling is enabled)
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
569 fsGroupChangePolicy: Always
571 supplementalGroups: []
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
587 containerSecurityContext:
594 readOnlyRootFilesystem: true
595 allowPrivilegeEscalation: false
599 type: "RuntimeDefault"
600 ## @param worker.command Override default container command (useful when using custom images)
603 ## @param worker.args Override default container args (useful when using custom images)
606 ## @param worker.podAnnotations Annotations for pods in StatefulSet
609 ## @param worker.podLabels Extra labels for pods in StatefulSet
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
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
619 podAntiAffinityPreset: soft
620 ## Spark worker node affinity preset
621 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
624 ## @param worker.nodeAffinityPreset.type Spark worker node affinity preset type. Ignored if `worker.affinity` is set. Allowed values: `soft` or `hard`
627 ## @param worker.nodeAffinityPreset.key Spark worker node label key to match Ignored if `worker.affinity` is set.
629 ## key: "kubernetes.io/e2e-az-name"
632 ## @param worker.nodeAffinityPreset.values Spark worker node label values to match. Ignored if `worker.affinity` is set.
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
644 ## @param worker.nodeSelector Spark worker node labels for pod assignment
645 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
648 ## @param worker.tolerations Spark worker tolerations for pod assignment
649 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
652 ## @param worker.updateStrategy.type Worker statefulset strategy type.
653 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
656 ## type: RollingUpdate
659 ## maxUnavailable: 25%
663 ## @param worker.podManagementPolicy Statefulset Pod Management Policy Type
664 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
666 podManagementPolicy: OrderedReady
667 ## @param worker.priorityClassName worker pods' priorityClassName
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
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/
678 ## @param worker.terminationGracePeriodSeconds Seconds Redmine pod needs to terminate gracefully
679 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
681 terminationGracePeriodSeconds: ""
682 ## @param worker.lifecycleHooks for the worker container(s) to automate configuration before or after startup
685 ## @param worker.extraVolumes Optionally specify extra list of additional volumes for the worker pod(s)
688 ## @param worker.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the master container(s)
690 extraVolumeMounts: []
691 ## @param worker.extraVolumeClaimTemplates Optionally specify extra list of volumesClaimTemplates for the worker statefulset
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).
702 resourcesPreset: "small"
703 ## @param worker.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
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
725 initialDelaySeconds: 180
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
741 initialDelaySeconds: 30
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
756 initialDelaySeconds: 30
761 ## @param worker.customLivenessProbe Custom livenessProbe that overrides the default one
763 customLivenessProbe: {}
764 ## @param worker.customReadinessProbe Custom readinessProbe that overrides the default one
766 customReadinessProbe: {}
767 ## @param worker.customStartupProbe Custom startupProbe that overrides the default one
769 customStartupProbe: {}
771 ## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
774 ## @param worker.networkPolicy.enabled Specifies whether a NetworkPolicy should be created
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).
784 ## @param worker.networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
786 allowExternalEgress: true
787 ## @param worker.networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
797 ## - matchExpressions:
803 ## @param worker.networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
813 ## - matchExpressions:
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
823 ingressNSMatchLabels: {}
824 ingressNSPodMatchLabels: {}
825 ## @param worker.sidecars Add additional sidecar containers to the worker pod(s)
828 ## - name: your-image-name
830 ## imagePullPolicy: Always
833 ## containerPort: 1234
836 ## @param worker.initContainers Add initContainers to the worker pods.
839 ## - name: your-image-name
841 ## imagePullPolicy: Always
844 ## containerPort: 1234
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.
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
870## @section Security parameters
873## Security configuration
876 ## @param security.passwordsSecretName Name of the secret that contains all the passwords
877 ## This is optional, by default random passwords are generated
879 passwordsSecretName: ""
881 ## @param security.rpc.authenticationEnabled Enable the RPC authentication
882 ## @param security.rpc.encryptionEnabled Enable the encryption for RPC
885 authenticationEnabled: false
886 encryptionEnabled: false
887 ## @param security.storageEncryptionEnabled Enables local storage encryption
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
894 certificatesSecretName: ""
898 ## @param security.ssl.enabled Enable the SSL configuration
901 ## @param security.ssl.needClientAuth Enable the client authentication
903 needClientAuth: false
904 ## @param security.ssl.protocol Set the SSL protocol
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.
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.
915 ## @param security.ssl.keystorePassword Set the password of the JKS Keystore
918 ## @param security.ssl.truststorePassword Truststore password.
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).
929 resourcesPreset: "small"
930 ## @param security.ssl.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
941## @section Traffic Exposure parameters
947 ## @param service.type Kubernetes Service type
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
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
968 ## @param service.clusterIP Spark service Cluster IP
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
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
981 ## loadBalancerSourceRanges:
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
988 externalTrafficPolicy: Cluster
989 ## @param service.annotations Additional custom annotations for Spark service
992 ## @param service.extraPorts Extra ports to expose in Spark service (normally used with the `sidecars` value)
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/
999 sessionAffinity: None
1000 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
1001 ## sessionAffinityConfig:
1003 ## timeoutSeconds: 300
1005 sessionAffinityConfig: {}
1006 ## Headless service properties
1009 ## @param service.headless.annotations Annotations for the headless service.
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/
1017 ## @param ingress.enabled Enable ingress controller resource
1020 ## @param ingress.pathType Ingress path type
1022 pathType: ImplementationSpecific
1023 ## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
1026 ## @param ingress.hostname Default host for the ingress resource
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/
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.
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
1045 ## kubernetes.io/ingress.class: nginx
1046 ## cert-manager.io/cluster-issuer: cluster-issuer-name
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
1054 ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
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
1060 ## - name: spark.local
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.
1069 ## serviceName: ssl-redirect
1070 ## servicePort: use-annotation
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
1078 ## secretName: spark.local-tls
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-----
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
1088 ## It is also possible to create and manage the certificates outside of this helm chart
1089 ## Please see README.md for more information
1091 ## - name: spark.local-tls
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
1100 ## - host: spark.local
1110## @section Other parameters
1113## ServiceAccount configuration
1114## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1117 ## @param serviceAccount.create Enable the creation of a ServiceAccount for Spark pods
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
1124 ## @param serviceAccount.annotations Annotations for Spark Service Account
1127 ## @param serviceAccount.automountServiceAccountToken Automount API credentials for a service account.
1129 automountServiceAccountToken: false
1130## @section Metrics parameters
1133## Metrics configuration
1136 ## @param metrics.enabled Start a side-car prometheus exporter
1139 ## @param metrics.masterAnnotations [object] Annotations for the Prometheus metrics on master nodes
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
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
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
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
1165 extraMetricsEndpoints: []
1166 ## @param metrics.podMonitor.namespace Specify the namespace in which the podMonitor resource will be created
1169 ## @param metrics.podMonitor.interval Specify the interval at which metrics should be scraped
1172 ## @param metrics.podMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
1174 ## scrapeTimeout: 30s
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
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
1186 ## @param metrics.prometheusRule.enabled Set this to true to create prometheusRules for Prometheus
1189 ## @param metrics.prometheusRule.namespace Namespace where the prometheusRules resource should be created
1192 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so prometheusRules will be discovered by Prometheus
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.
1199 ## - alert: HugeReplicationLag
1200 ## expr: pg_replication_lag{service="{{ template "postgresql.fullname" . }}-metrics"} / 3600 > 1
1203 ## severity: critical
1205 ## description: replication for {{ template "postgresql.fullname" . }} PostgreSQL is lagging by {{ "{{ $value }}" }} hour(s).
1206 ## summary: PostgreSQL replication is lagging by {{ "{{ $value }}" }} hour(s).