@@ -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>
2323kind: PodDisruptionBudget
2424metadata:
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
3434be 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+
3838Or:
3939+
4040[source,yaml]
4141----
42- apiVersion: policy/v1beta1 <1>
42+ apiVersion: policy/v1 <1>
4343kind: PodDisruptionBudget
4444metadata:
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
5454be 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