KEP-981keps/sig-apps/981-poddisruptionbudget-for-custom-resources
pdb-support-for-custom-resources-with-scale-subresource
Pod Disruption Budget (PDB) is a Kubernetes API that limits the number of pods of a collection that are down simultaneously from voluntary disruptions. PDBs allows a user to specify the allowed disruption through either min available or max unavailable number of pods. In order to support PDBs where max number of unavailable pods is set, the PDB controller ne… Full summary
Pod Disruption Budget (PDB) is a Kubernetes API that limits the number of pods of a collection that are down simultaneously from voluntary disruptions. PDBs allows a user to specify the allowed disruption through either min available or max unavailable number of pods. In order to support PDBs where max number of unavailable pods is set, the PDB controller needs to be able to look up the desired number of replicas. It does this by looking at the controller(s) (as specified by the owner ref) for the pods covered by the PDB. Currently only four of the basic workload controllers are supported for PDBs, namely Deployment, StatefulSet, ReplicaSet and ReplicationController. The scale subresource allows any resource to specify its desired number of replicas and a generic way to look up this information. This document lays out a plan to use the scale subresource to allow setting PDBs for any resource implementing the scale subresource.
Facts
- Authors
- @mortent
- PRR approvers
- none
- Tracking issue
- #981(opens GitHub in a new tab) closedcompletedclosed 2019-07-30 14:38 UTCsig/appsstage/stable
- Milestones
- none
- Participating SIGs
- sig-schedulingsig-autoscaling
- Feature gates
- none
- Created / last updated
- 2019-04-12 / 2019-04-12