I wanted to test PDB policy effectiveness on local minikube setup.
Why was PDB not respected and stopped from killing all the pods?
Is this is a testable scenario or my understanding of pod eviction which respects PDB not correct? Please advise.
The recommended way to test PDB is by draining a node.Updating the replica count is not considered a disruption. PDB kicks in when a pod is evicted using the eviction API which happens while draining a node.
Here is the list of involuntary disruptions
Here is the list of voluntary disruptions
https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#how-disruption-budgets-work