The CapacityBuffer CustomResourceDefinition (CRD) lets you provision spare capacity within a cluster. A CapacityBuffer causes the cluster autoscaler to scale up nodes in advance by simulating placeholder Pods in its memory, ensuring that spare capacity is available to handle sudden workload spikes or to speed up scaling events. These placeholder Pods are for internal cluster autoscaler use only and are not visible in your cluster.
CapacityBuffer specification
spec
:
provisioningStrategy
:
string
podTemplateRef
:
name
:
string
scalableRef
:
apiGroup
:
string
kind
:
string
name
:
string
replicas
:
integer
percentage
:
integer
limits
:
string
:
string
| Fields | |
|---|---|
| optional |
Defines how GKE provisions the buffer. |
| optional |
A reference to a |
| optional |
A reference to an object of a kind that has a scale subresource
. This allows the |
| optional |
Defines the selected number of buffer units to provision. If you don't set |
| optional |
Defines the selected buffer capacity as a percentage of the |
| optional |
Limits the number of units GKE creates for this buffer based on total resource requests (for example, CPU and memory). If you set |
CapacityBuffer status
The status
section indicates the observed state of the CapacityBuffer resource.
| Fields | |
|---|---|
status.podTemplateRef
|
The observed reference to the |
status.replicas
|
The number of buffer units that GKE should provision based on fields in the specification such as |
status.podTemplateGeneration
|
The observed generation of the |
status.conditions
|
List of status conditions for the buffer. The |
status.provisioningStrategy
|
The provisioning strategy used by the buffer. |

