Skip to content

Commit 8ccd40e

Browse files
foxishchenopis
authored andcommitted
Add example PDB definition (kubernetes#3454)
* Fix pdb docs * Addressed comment
1 parent 1acf620 commit 8ccd40e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/tasks/configure-pod-container/configure-pod-disruption-budget.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,21 @@ specified in the budget, thus bringing the number of available pods from the
4949
collection below the specified size. The budget can only protect against
5050
voluntary evictions, not all causes of unavailability.
5151

52+
You can find an example of a pod disruption budget defined below. It matches pods with the label
53+
`app: zookeeper`.
54+
55+
```yaml
56+
apiVersion: policy/v1beta1
57+
kind: PodDisruptionBudget
58+
metadata:
59+
name: zk-pdb
60+
spec:
61+
minAvailable: 2
62+
selector:
63+
matchLabels:
64+
app: zookeeper
65+
```
66+
5267
## Requesting an eviction
5368
5469
If you are writing infrastructure software that wants to produce these voluntary

0 commit comments

Comments
 (0)