Difference between revisions of "Kubernetes PodDisruptionBudget (PDB)"
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
== Examples == | == Examples == | ||
− | + | {{PDB example}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related == | == Related == |
Revision as of 15:14, 5 January 2023
- https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets
- 1.4 Alpha, K8s v1.21 April 2021 GA, Eviction subresource 1.22
- https://github.com/kubernetes/enhancements/issues/85
- https://github.com/kubernetes/enhancements/tree/master/keps/sig-apps/85-Graduate-PDB-to-Stable
- https://kubernetes.io/docs/tasks/run-application/configure-pdb/
Contents
Commands =
kubectl api-resources | grep -i pdb poddisruptionbudgets pdb policy/v1 true PodDisruptionBudget
33m Warning CalculateExpectedPodCountFailed poddisruptionbudget/xxxx-pdb Failed to calculate the number of expected pods: statefulsets.apps does not implement the scale subresource
kind: PodDisruptionBudget
55m Normal NoPods poddisruptionbudget/your_text No matching pods found
Examples
apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb spec: minAvailable: 2 selector: matchLabels: app: zookeeper
Related
maxUnavailable
NoPods
- Disruptions
- Karpenter
spec.replicas
- Eviction API
- 1.21 Graceful node shutdown
kubectl drain
See also
Advertising: