diff --git a/rocketchat/README.md b/rocketchat/README.md index 1e16349..0819865 100644 --- a/rocketchat/README.md +++ b/rocketchat/README.md @@ -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 | `{}` diff --git a/rocketchat/templates/poddisruptionbudget.yaml b/rocketchat/templates/poddisruptionbudget.yaml index 56ba1c3..8ed1b2f 100644 --- a/rocketchat/templates/poddisruptionbudget.yaml +++ b/rocketchat/templates/poddisruptionbudget.yaml @@ -1,3 +1,4 @@ +{{- if .Values.podDisruptionBudget.enabled }} {{- if gt ( .Values.replicaCount | int ) 1 }} apiVersion: policy/v1beta1 kind: PodDisruptionBudget @@ -15,3 +16,4 @@ spec: app.kubernetes.io/instance: {{ .Release.Name }} minAvailable: {{ .Values.minAvailable }} {{- end }} +{{- end }} \ No newline at end of file diff --git a/rocketchat/values.yaml b/rocketchat/values.yaml index 78d1f32..c781535 100644 --- a/rocketchat/values.yaml +++ b/rocketchat/values.yaml @@ -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 #