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
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ enable_node_autoprovisioning
bool
Enables automatic node pool creation and deletion.
↳ resource_limits
array< Google\Cloud\Container\V1\ResourceLimit
>
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
↳ autoscaling_profile
int
Defines autoscaling behaviour.
↳ autoprovisioning_node_pool_defaults
Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
↳ autoprovisioning_locations
getEnableNodeAutoprovisioning
Enables automatic node pool creation and deletion.
bool
setEnableNodeAutoprovisioning
Enables automatic node pool creation and deletion.
var
bool
$this
getResourceLimits
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
setResourceLimits
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
$this
getAutoscalingProfile
Defines autoscaling behaviour.
int
setAutoscalingProfile
Defines autoscaling behaviour.
var
int
$this
getAutoprovisioningNodePoolDefaults
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
hasAutoprovisioningNodePoolDefaults
clearAutoprovisioningNodePoolDefaults
setAutoprovisioningNodePoolDefaults
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
$this
getAutoprovisioningLocations
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
setAutoprovisioningLocations
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
var
string[]
$this