Skip to content

Commit a4690a8

Browse files
authored
Add optional pdb for control plane and metastore (quickwit-oss#137)
* add optional pdb for control plane and metastore * add version
1 parent ba386cf commit a4690a8

File tree

4 files changed

+37
-1
lines changed

4 files changed

+37
-1
lines changed

charts/quickwit/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: quickwit
33
description: Sub-second search & analytics engine on cloud storage.
44
type: application
5-
version: 0.7.17
5+
version: 0.7.18
66
appVersion: v0.8.2
77
keywords:
88
- quickwit
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{- if .Values.control_plane.podDisruptionBudget -}}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ include "quickwit.fullname" . }}-control-plane
6+
labels:
7+
{{- include "quickwit.labels" . | nindent 4 }}
8+
spec:
9+
selector:
10+
matchLabels:
11+
{{- include "quickwit.control_plane.selectorLabels" . | nindent 6 }}
12+
{{- toYaml .Values.control_plane.podDisruptionBudget | nindent 2 }}
13+
{{- end -}}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{- if .Values.metastore.podDisruptionBudget -}}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ include "quickwit.fullname" . }}-metastore
6+
labels:
7+
{{- include "quickwit.labels" . | nindent 4 }}
8+
spec:
9+
selector:
10+
matchLabels:
11+
{{- include "quickwit.metastore.selectorLabels" . | nindent 6 }}
12+
{{- toYaml .Values.metastore.podDisruptionBudget | nindent 2 }}
13+
{{- end -}}

charts/quickwit/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ metastore:
274274
# cpu: 100m
275275
# memory: 128Mi
276276

277+
## Pod distruption budget
278+
podDisruptionBudget: {}
279+
# maxUnavailable: 1
280+
# minAvailable: 2
281+
277282
updateStrategy: {}
278283
# type: RollingUpdate
279284

@@ -342,6 +347,11 @@ control_plane:
342347
# cpu: 100m
343348
# memory: 128Mi
344349

350+
## Pod distruption budget
351+
podDisruptionBudget: {}
352+
# maxUnavailable: 1
353+
# minAvailable: 2
354+
345355
startupProbe:
346356
httpGet:
347357
path: /health/livez

0 commit comments

Comments
 (0)