Google Cloud Container V1 Client - Class ClusterAutoscaling (1.9.1)

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.

Parameters
NameDescription
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 array

The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.

getEnableNodeAutoprovisioning

Enables automatic node pool creation and deletion.

Generated from protobuf field bool enable_node_autoprovisioning = 1;

Returns
TypeDescription
bool

setEnableNodeAutoprovisioning

Enables automatic node pool creation and deletion.

Generated from protobuf field bool enable_node_autoprovisioning = 1;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getResourceLimits

Contains global constraints regarding minimum and maximum amount of resources in the cluster.

Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setResourceLimits

Contains global constraints regarding minimum and maximum amount of resources in the cluster.

Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2;

Parameter
NameDescription
var array<Google\Cloud\Container\V1\ResourceLimit>
Returns
TypeDescription
$this

getAutoscalingProfile

Defines autoscaling behaviour.

Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;

Returns
TypeDescription
int

setAutoscalingProfile

Defines autoscaling behaviour.

Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAutoprovisioningNodePoolDefaults

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;

Returns
TypeDescription
Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults|null

hasAutoprovisioningNodePoolDefaults

clearAutoprovisioningNodePoolDefaults

setAutoprovisioningNodePoolDefaults

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;

Parameter
NameDescription
var Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults
Returns
TypeDescription
$this

getAutoprovisioningLocations

The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.

Generated from protobuf field repeated string autoprovisioning_locations = 5;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAutoprovisioningLocations

The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.

Generated from protobuf field repeated string autoprovisioning_locations = 5;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this