Skip to content

Commit

Permalink
Addressing #36: PDB can now be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
prppedro committed Feb 11, 2022
1 parent 49b4e63 commit 9fab833
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions rocketchat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Parameter | Description | Default
`service.type` | The service type to use | `ClusterIP`
`service.port` | The service port | `80`
`service.nodePort` | The node port used if the service is of type `NodePort` | `""`
`podDisruptionBudget.enabled` | Enable or disable PDB for RC deployment | `true`
`podLabels` | Additional pod labels for the Rocket.Chat pods | `{}`
`podAnnotations` | Additional pod annotations for the Rocket.Chat pods | `{}`

Expand Down
2 changes: 2 additions & 0 deletions rocketchat/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.podDisruptionBudget.enabled }}
{{- if gt ( .Values.replicaCount | int ) 1 }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
Expand All @@ -15,3 +16,4 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
minAvailable: {{ .Values.minAvailable }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions rocketchat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ readinessProbe:
failureThreshold: 3
successThreshold: 1

podDisruptionBudget:
enabled: true

# # # # # # # # # # # # # # # # #
# M I C R O S E R V I C E S #
# Only available to E.E users #
Expand Down

0 comments on commit 9fab833

Please sign in to comment.