Docs for feature: PDB support for custom resource with scale subresource (#14519)

This commit is contained in:
Morten Torkildsen
2019-06-10 12:31:09 -07:00
committed by Kubernetes Prow Robot
parent 1ab3957704
commit 12238578ae
2 changed files with 4 additions and 0 deletions
@@ -660,6 +660,8 @@ kubectl get crontabs my-new-cron-object -o jsonpath='{.spec.replicas}'
5 5
``` ```
You can use a [PodDisruptionBudget](docs/tasks/run-application/configure-pdb/) to protect custom resources that have the scale subresource enabled.
### Categories ### Categories
Categories is a list of grouped resources the custom resource belongs to (eg. `all`). Categories is a list of grouped resources the custom resource belongs to (eg. `all`).
@@ -49,6 +49,8 @@ specified by one of the built-in Kubernetes controllers:
In this case, make a note of the controller's `.spec.selector`; the same In this case, make a note of the controller's `.spec.selector`; the same
selector goes into the PDBs `.spec.selector`. selector goes into the PDBs `.spec.selector`.
From version 1.15 PDBs support custom controllers where the [scale subresource](docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#scale-subresource) is enabled.
You can also use PDBs with pods which are not controlled by one of the above You can also use PDBs with pods which are not controlled by one of the above
controllers, or arbitrary groups of pods, but there are some restrictions, controllers, or arbitrary groups of pods, but there are some restrictions,
described in [Arbitrary Controllers and Selectors](#arbitrary-controllers-and-selectors). described in [Arbitrary Controllers and Selectors](#arbitrary-controllers-and-selectors).