PodDisruptionBudget
An object that limits how many pods of an application may be voluntarily taken down at once, such as during a node drain.
In more detail
It states minAvailable or maxUnavailable for pods chosen by a selector, and the eviction API refuses evictions that would break it. That is why a drain can pause even when every pod is healthy. It cannot prevent involuntary failures such as a node crash, and it needs spare replicas to be satisfiable.
Example
kubectl get pdb webRelated terms
- rolling update — Replacing instances of an application with the new version a few at a time while the rest keep serving.
- eviction — Removing a running pod from its node, either through the API during maintenance or by the kubelet when the node runs short of resources.
- replica — One of several identical copies of a service or database running at the same time.
- voluntary disruption — A pod removal that someone chose, such as draining a node for maintenance, as opposed to an involuntary one like hardware failure.
- drain — Cordoning a node and then evicting its pods through the eviction API so it can be safely maintained or removed.
Taught in
- API Deprecations And Migrations — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Requests, Limits And Quotas — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Sandboxed Pods: RuntimeClass And gVisor — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Containers And Orchestration Context — DevOps & Site Reliability Engineering
- Who Decides What Ships: The CNCF And Its Community — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Architecture Sprint: The Refunds Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- How Thick Is The Wall? Isolation Techniques — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- The Report That Ate The Node: Denial Of Service And Malicious Code — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Threat Model Sprint: Name It, Then Stop It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Audit Day: Final Review — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Node Affinity, Pod Affinity And Topology Spread — Kubernetes: Production-Grade Container Orchestration
- Taints, Tolerations And Disruption Budgets — Kubernetes: Production-Grade Container Orchestration
- Drain, Upgrade, Version Skew And Certificate Maintenance — Kubernetes: Production-Grade Container Orchestration