The CapacityBuffer custom resource lets you provision spare capacity within a
cluster. You can create CapacityBuffers yourself, or GKE can
create and manage them for you. To have GKE manage
CapacityBuffers,
configure capacity buffers in custom ComputeClasses
by using the spec.buffers field in a
ComputeClass.
A CapacityBuffer causes the cluster autoscaler to scale up nodes in advance by
simulating placeholder Pods in the cluster autoscaler's memory. This process
helps to ensure 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 aren't 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. Supported values are |
|
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 current
replicas for the workload specified in 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. |