Skip to content

Commit

Permalink
#1875 - PodDisruptionBudget Bug (#2262)
Browse files Browse the repository at this point in the history
Attaching PDB to the statefulset and deploymentconfig
  • Loading branch information
guru-aot authored Sep 5, 2023
1 parent dcb86ec commit 2ff172f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion devops/openshift/api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ objects:
spec:
selector:
matchLabels:
app: ${NAME}
deploymentconfig: ${NAME}
maxUnavailable: 1
parameters:
- name: NAME
Expand Down
5 changes: 3 additions & 2 deletions devops/openshift/database/mongo-ha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,10 @@ objects:
- apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: ${NAME}-pdb
name: ${MONGODB_SERVICE_NAME}-pdb
spec:
selector:
matchLabels:
app: ${NAME}
app: forms
statefulset: ${MONGODB_SERVICE_NAME}
maxUnavailable: 1
2 changes: 1 addition & 1 deletion devops/openshift/queue-consumers-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ objects:
spec:
selector:
matchLabels:
app: ${NAME}
deploymentconfig: ${NAME}
maxUnavailable: 1
parameters:
- name: NAME
Expand Down
2 changes: 1 addition & 1 deletion devops/openshift/web-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ objects:
spec:
selector:
matchLabels:
app: ${NAME}
deploymentconfig: ${NAME}
maxUnavailable: 1
parameters:
- name: NAME
Expand Down
2 changes: 1 addition & 1 deletion devops/openshift/workers-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ objects:
spec:
selector:
matchLabels:
app: ${NAME}
deploymentconfig: ${NAME}
maxUnavailable: 1
parameters:
- name: NAME
Expand Down

0 comments on commit 2ff172f

Please sign in to comment.