kubernetes 1.26 - spec.unhealthyPodEvictionPolicy support for PDB

 

Some enhancement to PDB, we can add unhealthyPodEvictionPolicy to pdb that supports 2 options

1. IfHealtyBudget - eviction is possible if min desiredHealthy is met. 

2. AlwaysAllow - we can always evict the pods 

Sample yaml o test for k1.26

apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: nginx-pdb
spec:
  selector:
    matchLabels:
      app: nginx
  maxUnavailable: 1
  unhealthyPodEvictionPolicy: AlwaysAllow




Comments

Popular posts from this blog

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error