mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
[bitnami/spark] Enable PodDisruptionBudgets (#26536)
* [bitnami/spark] Enable PodDisruptionBudgets Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> --------- Signed-off-by: Fran Mulero <fmulero@vmware.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
co-authored by
Bitnami Containers
parent
ba21fcee50
commit
8b090f2591
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 9.1.1 (2024-06-04)
|
||||
## 9.2.0 (2024-06-04)
|
||||
|
||||
* [bitnami/spark] Bump chart version ([#26669](https://github.com/bitnami/charts/pull/26669))
|
||||
* [bitnami/spark] Enable PodDisruptionBudgets ([#26536](https://github.com/bitnami/charts/pull/26536))
|
||||
|
||||
## <small>9.1.1 (2024-06-04)</small>
|
||||
|
||||
* [bitnami/spark] Bump chart version (#26669) ([484cd76](https://github.com/bitnami/charts/commit/484cd761e8b4d7cf597c74af4f065d40b6cce7c9)), closes [#26669](https://github.com/bitnami/charts/issues/26669)
|
||||
|
||||
## 9.1.0 (2024-05-21)
|
||||
|
||||
|
||||
@@ -26,5 +26,5 @@ maintainers:
|
||||
url: https://github.com/bitnami/charts
|
||||
name: spark
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/spark
|
||||
version: 9.1.1
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/spark
|
||||
version: 9.2.0
|
||||
|
||||
@@ -277,6 +277,9 @@ As an alternative, you can use the preset configurations for pod affinity, pod a
|
||||
| `master.networkPolicy.ingressNSPodMatchLabels` | Pod labels to match to allow traffic from other namespaces | `{}` |
|
||||
| `master.sidecars` | Add additional sidecar containers to the master pod(s) | `[]` |
|
||||
| `master.initContainers` | Add initContainers to the master pods. | `[]` |
|
||||
| `master.pdb.create` | Enable/disable a Pod Disruption Budget creation | `true` |
|
||||
| `master.pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` |
|
||||
| `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. | `""` |
|
||||
|
||||
### Spark worker parameters
|
||||
|
||||
@@ -369,6 +372,9 @@ As an alternative, you can use the preset configurations for pod affinity, pod a
|
||||
| `worker.networkPolicy.ingressNSPodMatchLabels` | Pod labels to match to allow traffic from other namespaces | `{}` |
|
||||
| `worker.sidecars` | Add additional sidecar containers to the worker pod(s) | `[]` |
|
||||
| `worker.initContainers` | Add initContainers to the worker pods. | `[]` |
|
||||
| `worker.pdb.create` | Enable/disable a Pod Disruption Budget creation | `true` |
|
||||
| `worker.pdb.minAvailable` | Minimum number/percentage of pods that should remain scheduled | `""` |
|
||||
| `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. | `""` |
|
||||
| `worker.autoscaling.enabled` | Enable replica autoscaling depending on CPU | `false` |
|
||||
| `worker.autoscaling.minReplicas` | Minimum number of worker replicas | `""` |
|
||||
| `worker.autoscaling.maxReplicas` | Maximum number of worker replicas | `5` |
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{{- /*
|
||||
Copyright Broadcom, Inc. All Rights Reserved.
|
||||
SPDX-License-Identifier: APACHE-2.0
|
||||
*/}}
|
||||
|
||||
{{- if .Values.master.pdb.create }}
|
||||
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ printf "%s-master" (include "common.names.fullname" .) }}
|
||||
namespace: {{ include "common.names.namespace" . | quote }}
|
||||
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
||||
app.kubernetes.io/component: master
|
||||
{{- if .Values.commonAnnotations }}
|
||||
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.master.pdb.minAvailable }}
|
||||
minAvailable: {{ .Values.master.pdb.minAvailable }}
|
||||
{{- end }}
|
||||
{{- if or .Values.master.pdb.maxUnavailable ( not .Values.master.pdb.minAvailable ) }}
|
||||
maxUnavailable: {{ .Values.master.pdb.maxUnavailable | default 1 }}
|
||||
{{- end }}
|
||||
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.master.podLabels .Values.commonLabels ) "context" . ) }}
|
||||
selector:
|
||||
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
||||
app.kubernetes.io/component: master
|
||||
{{- end }}
|
||||
@@ -0,0 +1,28 @@
|
||||
{{- /*
|
||||
Copyright Broadcom, Inc. All Rights Reserved.
|
||||
SPDX-License-Identifier: APACHE-2.0
|
||||
*/}}
|
||||
|
||||
{{- if .Values.worker.pdb.create }}
|
||||
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ printf "%s-worker" (include "common.names.fullname" .) }}
|
||||
namespace: {{ include "common.names.namespace" . | quote }}
|
||||
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
||||
app.kubernetes.io/component: worker
|
||||
{{- if .Values.commonAnnotations }}
|
||||
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.worker.pdb.minAvailable }}
|
||||
minAvailable: {{ .Values.worker.pdb.minAvailable }}
|
||||
{{- end }}
|
||||
{{- if or .Values.worker.pdb.maxUnavailable ( not .Values.worker.pdb.minAvailable ) }}
|
||||
maxUnavailable: {{ .Values.worker.pdb.maxUnavailable | default 1 }}
|
||||
{{- end }}
|
||||
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.worker.podLabels .Values.commonLabels ) "context" . ) }}
|
||||
selector:
|
||||
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
||||
app.kubernetes.io/component: worker
|
||||
{{- end }}
|
||||
@@ -460,6 +460,16 @@ master:
|
||||
## containerPort: 1234
|
||||
##
|
||||
initContainers: []
|
||||
## Pod Disruption Budget configuration
|
||||
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
|
||||
## @param master.pdb.create Enable/disable a Pod Disruption Budget creation
|
||||
## @param master.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
|
||||
## @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.
|
||||
##
|
||||
pdb:
|
||||
create: true
|
||||
minAvailable: ""
|
||||
maxUnavailable: ""
|
||||
## @section Spark worker parameters
|
||||
##
|
||||
|
||||
@@ -816,6 +826,16 @@ worker:
|
||||
## containerPort: 1234
|
||||
##
|
||||
initContainers: []
|
||||
## Pod Disruption Budget configuration
|
||||
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb
|
||||
## @param worker.pdb.create Enable/disable a Pod Disruption Budget creation
|
||||
## @param worker.pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
|
||||
## @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.
|
||||
##
|
||||
pdb:
|
||||
create: true
|
||||
minAvailable: ""
|
||||
maxUnavailable: ""
|
||||
## Autoscaling parameters
|
||||
## @param worker.autoscaling.enabled Enable replica autoscaling depending on CPU
|
||||
## @param worker.autoscaling.minReplicas Minimum number of worker replicas
|
||||
|
||||
Reference in New Issue
Block a user