Resource: WorkerPool
WorkerPool acts as a top-level container that manages a set instance splits among a set of Revisions and a template for creating new Revisions.
JSON representation |
---|
{ "apiVersion": string, "kind": string, "metadata": { object ( |
Fields | |
---|---|
apiVersion |
The API version for this call. It must be "run.googleapis.com/v1". |
kind |
The kind of resource. It must be "WorkerPool". |
metadata |
Metadata associated with this WorkerPool, including name, namespace, labels, and annotations. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. The following Cloud Run-specific annotations are accepted in WorkerPool.metadata.annotations.
|
spec |
Holds the desired state of the WorkerPool (from the client). |
status |
Communicates the system-controlled state of the WorkerPool. |
WorkerPoolSpec
WorkerPoolSpec holds the desired state of the WorkerPool's template and instance splits.
JSON representation |
---|
{ "template": { object ( |
Fields | |
---|---|
template |
Holds the latest specification for the Revision to be stamped out. |
instanceSplits[] |
Specifies how to distribute instances over a collection of Revisions. |
InstanceSplit
Holds a single instance split entry for the Worker. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.
JSON representation |
---|
{ "percent": integer, // Union field |
Fields | |
---|---|
percent |
Specifies percent of the instance split to this Revision. This defaults to zero if unspecified. |
Union field target . The target of this instance split. target can be only one of the following: |
|
revisionName |
Revision to which to assign this portion of instances. |
latestRevision |
Uses the "status.latestReadyRevisionName" to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one. |
WorkerPoolStatus
The current state of the WorkerPool. Output only.
JSON representation |
---|
{ "observedGeneration": integer, "conditions": [ { object ( |
Fields | |
---|---|
observedGeneration |
Returns the generation last seen by the system. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. |
conditions[] |
Conditions communicate information about ongoing/complete reconciliation processes that bring the
|
latestReadyRevisionName |
Name of the latest Revision from this WorkerPool's template that has had its |
latestCreatedRevisionName |
Name of the last revision that was created from this WorkerPool's template. It might not be ready yet, for that use LatestReadyRevisionName. |
instanceSplits[] |
Holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed. |
Methods |
|
---|---|
|
Creates a new WorkerPool. |
|
Deletes the provided worker pool. |
|
Gets information about a worker pool. |
|
Lists worker pools for the given project and region. |
|
Replaces a worker pool. |