diff --git a/charts/aws-ebs-csi-driver/templates/poddisruptionbudget-controller.yaml b/charts/aws-ebs-csi-driver/templates/poddisruptionbudget-controller.yaml index 0a1e97cc0b..16b61795ed 100644 --- a/charts/aws-ebs-csi-driver/templates/poddisruptionbudget-controller.yaml +++ b/charts/aws-ebs-csi-driver/templates/poddisruptionbudget-controller.yaml @@ -1,3 +1,4 @@ +{{- if .Values.controller.podDisruptionBudget -}} apiVersion: policy/v1 kind: PodDisruptionBudget metadata: @@ -15,3 +16,4 @@ spec: {{- else }} minAvailable: 2 {{- end }} +{{- end -}} diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index 75a445742e..a15e1b6654 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -245,6 +245,8 @@ controller: deploymentAnnotations: {} podAnnotations: {} podLabels: {} + # Warning: Disabling PodDisruptionBudget may lead to stateful workloads not starting due to lack of controller pods + podDisruptionBudget: true priorityClassName: system-cluster-critical # AWS region to use. If not specified then the region will be looked up via the AWS EC2 metadata # service.