Kubernetes YAML Workloads/PodDisruptionBudget YAML

Protect minimum availability during voluntary disruption.

Section: Autoscaling and Availability

PodDisruptionBudget YAML

yaml
yaml
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: api
spec:
  minAvailable: 2
  selector:
    matchLabels:
      app: api

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Autoscaling and Availability
HorizontalPodAutoscaler YAML
Scale Deployment based on CPU utilization.
OpenIn sheetyamlsame section
Basic StatefulSet YAML
Run stateful replicas with stable ordinals.
Basic DaemonSet YAML
Deploy a log collector or node agent everywhere.
Basic Job YAML
Run a one-time batch task with retries.
Set rolling update partition
Control StatefulSet ordinal rollout.
Restart a DaemonSet rollout
Trigger rollout after a config change.