All Tools View Categories About Contact Privacy

PodDisruptionBudget YAML Generator

Build a valid Kubernetes PodDisruptionBudget (policy/v1) with minAvailable or maxUnavailable and a label selector.

Runs entirely in your browser - nothing is uploaded and no cluster connection is made.
-
budget
-
value
Your generated PodDisruptionBudget YAML will appear here.

About PodDisruptionBudget YAML Generator

A PodDisruptionBudget (PDB) protects the availability of an application during voluntary disruptions such as node drains and cluster upgrades. The PodDisruptionBudget YAML Generator writes that manifest from a form so you do not have to recall the policy/v1 schema.

You set the PDB name and namespace, then choose how many pods must stay available - either minAvailable or maxUnavailable, each given as an integer or a percentage. Finally you add a label selector (matchLabels) that picks the pods the budget covers. The resulting YAML is valid policy/v1.

The name is validated as an RFC 1123 label, the selector needs at least one label, and at least one of minAvailable or maxUnavailable is required. Problems are reported in a clear panel. Everything runs locally and nothing is uploaded.

Features

  • minAvailable - integer or percentage that must stay up.
  • maxUnavailable - integer or percentage that may be down.
  • Selector - matchLabels (key=value, comma separated).
  • policy/v1 - correct schema.
  • Validation - RFC 1123 name, required selector and threshold.
  • Copy / Download / Print - get pdb.yaml wherever you need it.

How to Use

  1. Name the PDB. Type a valid RFC 1123 name.
  2. Set minAvailable or maxUnavailable. e.g. 2 or 50%.
  3. Add selector labels. e.g. app=web.
  4. Watch the preview and export.

Examples

Example 1 - min available. minAvailable 2 for a three-replica service.

Example 2 - percentage. minAvailable 50% keeps half up.

Example 3 - max unavailable. maxUnavailable 1 allows one down.

Example 4 - app label. selector app=web.

Example 5 - tier. selector tier=frontend.

Benefits

  • Correct schema - valid policy/v1 PodDisruptionBudget.
  • Flexible thresholds - integer or percentage, min or max.
  • Validated - names and required fields checked.
  • Clean output - empty fields omitted.
  • Private - everything runs in the browser.
  • Copy, download or print - get the manifest where you need it.

Frequently Asked Questions

What is a PodDisruptionBudget?
A PDB limits how many pods of a workload can be down at the same time during voluntary disruptions such as node drains. It is a policy/v1 resource.
minAvailable vs maxUnavailable?
minAvailable sets the minimum number or percentage that must stay up; maxUnavailable sets the maximum that may be down. Use one or the other.
What is the selector for?
It selects the pods the budget applies to via matchLabels. At least one label is required.
Can the value be a percentage?
Yes. minAvailable or maxUnavailable can be an integer like 2 or a percentage like 50%.
Is the name validated?
Yes. The PDB name must be a valid RFC 1123 label (lowercase letters, numbers and hyphens).
Does this connect to a cluster?
No. Everything is assembled in your browser and nothing is uploaded.
Can I download it?
Yes. Copy the YAML, download pdb.yaml, or print it.