From 8ccd40e6614f2c63564157e967149c63f6ae9ad1 Mon Sep 17 00:00:00 2001 From: Anirudh Ramanathan Date: Wed, 19 Apr 2017 14:26:35 -0700 Subject: [PATCH] Add example PDB definition (#3454) * Fix pdb docs * Addressed comment --- .../configure-pod-disruption-budget.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/tasks/configure-pod-container/configure-pod-disruption-budget.md b/docs/tasks/configure-pod-container/configure-pod-disruption-budget.md index 489f5e0f4c..552a53e821 100644 --- a/docs/tasks/configure-pod-container/configure-pod-disruption-budget.md +++ b/docs/tasks/configure-pod-container/configure-pod-disruption-budget.md @@ -49,6 +49,21 @@ specified in the budget, thus bringing the number of available pods from the collection below the specified size. The budget can only protect against voluntary evictions, not all causes of unavailability. +You can find an example of a pod disruption budget defined below. It matches pods with the label +`app: zookeeper`. + +```yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: zk-pdb +spec: + minAvailable: 2 + selector: + matchLabels: + app: zookeeper +``` + ## Requesting an eviction If you are writing infrastructure software that wants to produce these voluntary