Skip to content

Commit 25a6e50

Browse files
authored
Merge pull request #12 from warpstreamlabs/pod-disruption-buget
Add optional Pod Disruption Budget
2 parents fca44d9 + 5f39520 commit 25a6e50

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

charts/warpstream-agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: warpstream-agent
33
description: WarpStream Agent for Kubernetes.
44
type: application
5-
version: 0.7.3
5+
version: 0.8.0
66
appVersion: v518
77
icon: https://avatars.githubusercontent.com/u/132156278
88
home: https://docs.warpstream.com/warpstream/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
Thank you for installing {{ .Chart.Name }}.
22

33
Your release is named {{ .Release.Name }}.
4+
5+
# CHANGELOG
6+
7+
## 0.8.0
8+
9+
- The default replica count has been increased from 1 to 3. You can pass `--set replicas=1` to restore the previous behavior.
10+
- Pod Disruption Budget is now supported. Pass `--set pdb.create=true` to enable it.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{- if .Values.pdb.create }}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ include "warpstream-agent.fullname" . }}
6+
labels:
7+
{{- include "warpstream-agent.labels" . | nindent 4 }}
8+
spec:
9+
{{- if .Values.pdb.minAvailable }}
10+
minAvailable: {{ .Values.pdb.minAvailable }}
11+
{{- end }}
12+
{{- if .Values.pdb.maxUnavailable }}
13+
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
14+
{{- end }}
15+
selector:
16+
matchLabels:
17+
{{- include "warpstream-agent.selectorLabels" . | nindent 6 }}
18+
{{- end }}

charts/warpstream-agent/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ imagePullSecrets: []
88
nameOverride: ""
99
fullnameOverride: ""
1010

11-
replicas: 1
11+
replicas: 3
1212

1313
serviceAccount:
1414
# Specifies whether a service account should be created
@@ -63,6 +63,14 @@ affinity: {}
6363

6464
priorityClassName: ""
6565

66+
# Optional disruption budget
67+
pdb:
68+
create: false
69+
# minimum number of pods that must still be available after the eviction
70+
minAvailable: 1
71+
# maximum number of pods that can be unavailable after the eviction
72+
maxUnavailable: ""
73+
6674
## list of hosts and IPs that will be injected into the pod's hosts file
6775
hostAliases: []
6876
# - ip: "127.0.0.1"

0 commit comments

Comments
 (0)