Skip to content

Commit

Permalink
💍add pdb to curriki apps 💍
Browse files Browse the repository at this point in the history
  • Loading branch information
eformat committed Dec 9, 2020
1 parent c8c2ed7 commit 7bf57eb
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
12 changes: 12 additions & 0 deletions curriki-admin/chart/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ include "curriki-admin.fullname" . }}
labels:
{{- include "curriki-admin.labels" . | nindent 4 }}
spec:
minAvailable: 1
selector:
matchLabels:
deploymentconfig: {{ include "curriki-admin.fullname" . }}
12 changes: 12 additions & 0 deletions curriki-api/chart/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ include "curriki-api.fullname" . }}
labels:
{{- include "curriki-api.labels" . | nindent 4 }}
spec:
minAvailable: 1
selector:
matchLabels:
deploymentconfig: {{ include "curriki-api.fullname" . }}
1 change: 1 addition & 0 deletions curriki-tsugi/web/chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ Selector labels
app.kubernetes.io/name: {{ include "curriki-tsugi.name" . }}
app.kubernetes.io/component: {{ include "curriki-tsugi.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
deploymentconfig: {{ include "curriki-tsugi.fullname" . }}
{{- end -}}
12 changes: 12 additions & 0 deletions curriki-tsugi/web/chart/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ include "curriki-tsugi.fullname" . }}
labels:
{{- include "curriki-tsugi.labels" . | nindent 4 }}
spec:
minAvailable: 1
selector:
matchLabels:
deploymentconfig: {{ include "curriki-tsugi.fullname" . }}
12 changes: 12 additions & 0 deletions curriki-ui/chart/templates/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ include "curriki-ui.fullname" . }}
labels:
{{- include "curriki-ui.labels" . | nindent 4 }}
spec:
minAvailable: 1
selector:
matchLabels:
deploymentconfig: {{ include "curriki-ui.fullname" . }}

0 comments on commit 7bf57eb

Please sign in to comment.