@@ -19,7 +19,7 @@ To configure a pod disruption budget:
19
19
+
20
20
[source,yaml]
21
21
----
22
- apiVersion: policy/v1beta1 <1>
22
+ apiVersion: policy/v1 <1>
23
23
kind: PodDisruptionBudget
24
24
metadata:
25
25
name: my-pdb
@@ -29,17 +29,17 @@ spec:
29
29
matchLabels:
30
30
foo: bar
31
31
----
32
- <1> `PodDisruptionBudget` is part of the `policy/v1beta1 ` API group.
32
+ <1> `PodDisruptionBudget` is part of the `policy/v1 ` API group.
33
33
<2> The minimum number of pods that must be available simultaneously. This can
34
34
be either an integer or a string specifying a percentage, for example, `20%` .
35
35
<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.
37
37
+
38
38
Or:
39
39
+
40
40
[source,yaml]
41
41
----
42
- apiVersion: policy/v1beta1 <1>
42
+ apiVersion: policy/v1 <1>
43
43
kind: PodDisruptionBudget
44
44
metadata:
45
45
name: my-pdb
@@ -49,11 +49,11 @@ spec:
49
49
matchLabels:
50
50
foo: bar
51
51
----
52
- <1> `PodDisruptionBudget` is part of the `policy/v1beta1 ` API group.
52
+ <1> `PodDisruptionBudget` is part of the `policy/v1 ` API group.
53
53
<2> The maximum number of pods that can be unavailable simultaneously. This can
54
54
be either an integer or a string specifying a percentage, for example, `20%` .
55
55
<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.
57
57
58
58
. Run the following command to add the object to project:
59
59
+
0 commit comments