Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions charts/trino/templates/poddisruptionbudget-coordinator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- with .Values.coordinator.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "trino.coordinator" $ }}
namespace: {{ $.Release.Namespace }}
labels:
{{- include "trino.labels" $ | nindent 4 }}
app.kubernetes.io/component: coordinator
spec:
selector:
matchLabels:
{{- include "trino.selectorLabels" $ | nindent 6 }}
app.kubernetes.io/component: coordinator
{{- toYaml . | nindent 2 }}
{{- end }}
18 changes: 18 additions & 0 deletions charts/trino/templates/poddisruptionbudget-worker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if gt (int .Values.server.workers) 0 }}
{{- with .Values.worker.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "trino.worker" $ }}
namespace: {{ $.Release.Namespace }}
labels:
{{- include "trino.labels" $ | nindent 4 }}
app.kubernetes.io/component: worker
spec:
selector:
matchLabels:
{{- include "trino.selectorLabels" $ | nindent 6 }}
app.kubernetes.io/component: worker
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
24 changes: 24 additions & 0 deletions charts/trino/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,18 @@ coordinator:
maxUnavailable: 25%
# coordinator.deployment.strategy -- The deployment strategy to use to replace existing pods with new ones.

podDisruptionBudget: {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set these values in the complete values test, so we know the chart renders correctly.

# coordinator.podDisruptionBudget -- [Pod Disruption Budget](https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets) configuration.
# @raw
# Example:
# ```yaml
# minAvailable: 1
# ```
# or
# ```yaml
# maxUnavailable: 1
# ```

jvm:
maxHeapSize: "8G"
gcMethod:
Expand Down Expand Up @@ -797,6 +809,18 @@ worker:
maxUnavailable: 25%
# worker.deployment.strategy -- The deployment strategy to use to replace existing pods with new ones.

podDisruptionBudget: {}
# worker.podDisruptionBudget -- [Pod Disruption Budget](https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets) configuration.
# @raw
# Example:
# ```yaml
# maxUnavailable: 1
# ```
# or
# ```yaml
# minAvailable: 2
# ```

jvm:
maxHeapSize: "8G"
gcMethod:
Expand Down
Loading