Reference documentation and code samples for the Google Cloud Container V1 Client class ClusterAutoscaling.
ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs.
Generated from protobuf message google.container.v1.ClusterAutoscaling
Namespace
Google \ Cloud \ Container \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ enable_node_autoprovisioning |
bool
Enables automatic node pool creation and deletion. |
↳ resource_limits |
array<ResourceLimit>
Contains global constraints regarding minimum and maximum amount of resources in the cluster. |
↳ autoscaling_profile |
int
Defines autoscaling behaviour. |
↳ autoprovisioning_node_pool_defaults |
AutoprovisioningNodePoolDefaults
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP. |
↳ autoprovisioning_locations |
array
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP. |
↳ default_compute_class_config |
DefaultComputeClassConfig
Default compute class is a configuration for default compute class. |
getEnableNodeAutoprovisioning
Enables automatic node pool creation and deletion.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setEnableNodeAutoprovisioning
Enables automatic node pool creation and deletion.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResourceLimits
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setResourceLimits
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
| Parameter | |
|---|---|
| Name | Description |
var |
array<ResourceLimit>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAutoscalingProfile
Defines autoscaling behaviour.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type AutoscalingProfile. |
setAutoscalingProfile
Defines autoscaling behaviour.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type AutoscalingProfile. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAutoprovisioningNodePoolDefaults
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
| Returns | |
|---|---|
| Type | Description |
AutoprovisioningNodePoolDefaults|null |
|
hasAutoprovisioningNodePoolDefaults
clearAutoprovisioningNodePoolDefaults
setAutoprovisioningNodePoolDefaults
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
| Parameter | |
|---|---|
| Name | Description |
var |
AutoprovisioningNodePoolDefaults
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAutoprovisioningLocations
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setAutoprovisioningLocations
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDefaultComputeClassConfig
Default compute class is a configuration for default compute class.
| Returns | |
|---|---|
| Type | Description |
DefaultComputeClassConfig|null |
|
hasDefaultComputeClassConfig
clearDefaultComputeClassConfig
setDefaultComputeClassConfig
Default compute class is a configuration for default compute class.
| Parameter | |
|---|---|
| Name | Description |
var |
DefaultComputeClassConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|