Skip to content

Commit fb09bac

Browse files
authored
charts: add pdb to api (#560)
* charts: add pdb to api
1 parent aa081ed commit fb09bac

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- if .Values.api.pdb.enabled }}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ include "discovery.fullname" . }}-api
6+
namespace: {{ include "discovery.namespace" . }}
7+
spec:
8+
maxUnavailable: {{ .Values.api.pdb.maxUnavailable }}
9+
selector:
10+
matchLabels:
11+
app: {{ include "discovery.fullname" . }}-api
12+
{{- end }}

deployment/k8s/discovery-chart/values.example.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ redis:
88
image: redis:7.0
99

1010
api:
11+
pdb:
12+
enabled: true
13+
maxUnavailable: 1
1114
hpa:
1215
enabled: true
1316
minReplicas: 2
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- if .Values.api.pdb.enabled }}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ include "orchestrator.fullname" . }}-api
6+
namespace: {{ include "orchestrator.namespace" . }}
7+
spec:
8+
maxUnavailable: {{ .Values.api.pdb.maxUnavailable }}
9+
selector:
10+
matchLabels:
11+
app: {{ include "orchestrator.fullname" . }}-api
12+
{{- end }}

deployment/k8s/orchestrator-chart/values.example.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ redis:
1111
image: redis
1212

1313
api:
14+
pdb:
15+
enabled: true
16+
maxUnavailable: 1
1417
hpa:
1518
enabled: true
1619
minReplicas: 2

0 commit comments

Comments
 (0)