Skip to content

Commit e4abc6e

Browse files
authored
Merge pull request #45589 from mburke5678/BZ-2083845
BZ2083845: poddisruptionbudget example contains deprecated policy/v1beta1
2 parents f4e355e + 7de6da0 commit e4abc6e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/nodes-pods-pod-disruption-configuring.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To configure a pod disruption budget:
1919
+
2020
[source,yaml]
2121
----
22-
apiVersion: policy/v1beta1 <1>
22+
apiVersion: policy/v1 <1>
2323
kind: PodDisruptionBudget
2424
metadata:
2525
name: my-pdb
@@ -29,17 +29,17 @@ spec:
2929
matchLabels:
3030
foo: bar
3131
----
32-
<1> `PodDisruptionBudget` is part of the `policy/v1beta1` API group.
32+
<1> `PodDisruptionBudget` is part of the `policy/v1` API group.
3333
<2> The minimum number of pods that must be available simultaneously. This can
3434
be either an integer or a string specifying a percentage, for example, `20%`.
3535
<3> A label query over a set of resources. The result of `matchLabels` and
36-
`matchExpressions` are logically conjoined.
36+
`matchExpressions` are logically conjoined. Leave this paramter blank, for example `selector {}`, to select all pods in the project.
3737
+
3838
Or:
3939
+
4040
[source,yaml]
4141
----
42-
apiVersion: policy/v1beta1 <1>
42+
apiVersion: policy/v1 <1>
4343
kind: PodDisruptionBudget
4444
metadata:
4545
name: my-pdb
@@ -49,11 +49,11 @@ spec:
4949
matchLabels:
5050
foo: bar
5151
----
52-
<1> `PodDisruptionBudget` is part of the `policy/v1beta1` API group.
52+
<1> `PodDisruptionBudget` is part of the `policy/v1` API group.
5353
<2> The maximum number of pods that can be unavailable simultaneously. This can
5454
be either an integer or a string specifying a percentage, for example, `20%`.
5555
<3> A label query over a set of resources. The result of `matchLabels` and
56-
`matchExpressions` are logically conjoined.
56+
`matchExpressions` are logically conjoined. Leave this paramter blank, for example `selector {}`, to select all pods in the project.
5757

5858
. Run the following command to add the object to project:
5959
+

0 commit comments

Comments
 (0)