I see a lot of Helm charts that have something sim...
# kubernetes
j
I see a lot of Helm charts that have something similar to this when deploying a
PodDisruptionBudget
:
Copy code
{{- if and (.Values.podDisruptionBudgetEnabled) (gt (.Values.replicas | int64) 1) }}
I don't quite understand this? Even with a replica count of 1 isn't a PDB still useful? Ie. If a node is being updated won't it schedule a new pod (and potentially a new node) before killing the pod?
m
Disruption doesn't consider deployment strategies like maxSurge and maxUnavailable which determines whether to spin up a new pod, before terminating the old pod