Kubespec Logo kubespec.dev

policy/v1

Namespaced Resource

PodDisruptionBudget

        PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
      

Click on Property Name to show the description, and Pink Types to expand schema.

Required properties are marked with *

Change History

Kubernetes v1.32

Kubernetes v1.31

Kubernetes v1.30

Kubernetes v1.29

Kubernetes v1.28

Kubernetes v1.27

~8

Kubernetes v1.26

+1

Kubernetes v1.25

-1

Kubernetes v1.24

~5

Kubernetes v1.23

Kubernetes v1.22

+1

Kubernetes v1.21

Kubernetes v1.20

Kubernetes v1.19

Kubernetes v1.18

Kubernetes v1.17

Kubernetes v1.16

Kubernetes v1.15

Kubernetes v1.14

Kubernetes v1.13

Kubernetes v1.12

Kubernetes v1.11

Examples

There are 2 examples of PodDisruptionBudget that you can use as a starting point to create your own.

apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: pdb-pricing-calculator
  namespace: pricing
spec:
  maxUnavailable: '20%' # 20% of the pods can be unavailable at any given time
  selector:
    matchLabels:
      app: pricing-calculator # The pods that this PDB will apply to

Other useful resources