File tree 3 files changed +11
-3
lines changed
packaging/helm-charts/helm3/strimzi-kafka-operator
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ the documentation for more details.
127
127
| ` podDisruptionBudget.enabled ` | Whether to enable the podDisruptionBudget feature | ` false ` |
128
128
| ` podDisruptionBudget.minAvailable ` | Default value for how many pods must be running in a cluster | ` 1 ` |
129
129
| ` podDisruptionBudget.maxUnavailable ` | Default value for how many pods can be down | ` nil ` |
130
+ | ` podDisruptionBudget.unhealthyPodEvictionPolicy ` | Default value for how to respond to unheathly pods | ` IfHealthyBudget ` |
130
131
| ` extraEnvs ` | Extra environment variables for the Cluster operator container | ` [] ` |
131
132
| ` kafka.image.registry ` | Override default Kafka image registry | ` nil ` |
132
133
| ` kafka.image.repository ` | Override default Kafka image repository | ` nil ` |
Original file line number Diff line number Diff line change 13
13
{{- if .Values.podDisruptionBudget.maxUnavailable }}
14
14
maxUnavailable : {{ .Values.podDisruptionBudget.maxUnavailable }}
15
15
{{- end }}
16
- {{- end }}
16
+ {{- if (semverCompare ">= 1.27-0" .Capabilities.KubeVersion.Version) }}
17
+ unhealthyPodEvictionPolicy : {{ .Values.podDisruptionBudget.unhealthyPodEvictionPolicy }}
18
+ {{- end }}
19
+ {{- end }}
Original file line number Diff line number Diff line change @@ -57,7 +57,10 @@ leaderElection:
57
57
# https://kubernetes.io/docs/tasks/run-application/configure-pdb/
58
58
podDisruptionBudget :
59
59
enabled : false
60
- # The PDB definition only has two attributes to control the availability requirements: minAvailable or maxUnavailable (mutually exclusive).
60
+ # The PDB definition three attributes to control the availability requirements:
61
+ # minAvailable or maxUnavailable (mutually exclusive).
62
+ # unhealthyPodEvictionPolicy
63
+ #
61
64
# Field maxUnavailable tells how many pods can be down and minAvailable tells how many pods must be running in a cluster.
62
65
63
66
# The pdb template will check values according to below order
@@ -72,6 +75,7 @@ podDisruptionBudget:
72
75
# If both values are set, the template will use the first one and ignore the second one. currently by default minAvailable is set to 1
73
76
minAvailable : 1
74
77
maxUnavailable :
78
+ unhealthyPodEvictionPolicy : IfHealthyBudget
75
79
76
80
# If you are using the grafana dashboard sidecar,
77
81
# you can import some default dashboards here
@@ -177,4 +181,4 @@ generateNetworkPolicy: true
177
181
# Override the value for Connect build timeout
178
182
connectBuildTimeoutMs : 300000
179
183
# Controls whether Strimzi generates pod disruption budget resources (By default true)
180
- generatePodDisruptionBudget : true
184
+ generatePodDisruptionBudget : true
You can’t perform that action at this time.
0 commit comments