Skip to content

Commit 7fad38d

Browse files
feat(helm): add PDB for patternIngester (#17058)
Signed-off-by: drfaust92 <[email protected]> Co-authored-by: Jay Clifford <[email protected]>
1 parent 6ed1461 commit 7fad38d

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

docs/sources/setup/install/helm/reference.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8186,6 +8186,7 @@ null
81868186
},
81878187
"initContainers": [],
81888188
"livenessProbe": {},
8189+
"maxUnavailable": null,
81898190
"nodeSelector": {},
81908191
"persistence": {
81918192
"annotations": {},
@@ -8360,6 +8361,15 @@ null
83608361
<td><pre lang="json">
83618362
{}
83628363
</pre>
8364+
</td>
8365+
</tr>
8366+
<tr>
8367+
<td>patternIngester.maxUnavailable</td>
8368+
<td>string</td>
8369+
<td>Pod Disruption Budget maxUnavailable</td>
8370+
<td><pre lang="json">
8371+
null
8372+
</pre>
83638373
</td>
83648374
</tr>
83658375
<tr>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{- $isDistributed := eq (include "loki.deployment.isDistributed" .) "true" -}}
2+
{{- if and $isDistributed (gt (int .Values.patternIngester.replicas) 1) }}
3+
apiVersion: {{ include "loki.pdb.apiVersion" . }}
4+
kind: PodDisruptionBudget
5+
metadata:
6+
name: {{ include "loki.patternIngesterFullname" . }}
7+
namespace: {{ .Release.Namespace }}
8+
labels:
9+
{{- include "loki.patternIngesterLabels" . | nindent 4 }}
10+
spec:
11+
selector:
12+
matchLabels:
13+
{{- include "loki.patternIngesterSelectorLabels" . | nindent 6 }}
14+
{{- with .Values.patternIngester.maxUnavailable }}
15+
maxUnavailable: {{ . }}
16+
{{- end }}
17+
{{- end }}

production/helm/loki/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,6 +2890,8 @@ patternIngester:
28902890
matchLabels:
28912891
app.kubernetes.io/component: pattern-ingester
28922892
topologyKey: kubernetes.io/hostname
2893+
# -- Pod Disruption Budget maxUnavailable
2894+
maxUnavailable: null
28932895
# -- Labels for pattern ingester service
28942896
serviceLabels: {}
28952897
# -- Annotations for pattern ingester service

0 commit comments

Comments
 (0)