Google Cloud Container V1 Client - Class NodePoolAutoscaling (1.23.0)

Reference documentation and code samples for the Google Cloud Container V1 Client class NodePoolAutoscaling.

NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.

Generated from protobuf message google.container.v1.NodePoolAutoscaling

Namespace

Google \ Cloud \ Container \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ enabled bool

Is autoscaling enabled for this node pool.

↳ min_node_count int

Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.

↳ max_node_count int

Maximum number of nodes for one location in the NodePool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.

↳ autoprovisioned bool

Can this node pool be deleted automatically.

↳ location_policy int

Location policy used when scaling up a nodepool.

↳ total_min_node_count int

Minimum number of nodes in the node pool. Must be greater than 1 less than total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.

↳ total_max_node_count int

Maximum number of nodes in the node pool. Must be greater than total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.

getEnabled

Is autoscaling enabled for this node pool.

Returns
TypeDescription
bool

setEnabled

Is autoscaling enabled for this node pool.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getMinNodeCount

Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.

Returns
TypeDescription
int

setMinNodeCount

Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMaxNodeCount

Maximum number of nodes for one location in the NodePool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.

Returns
TypeDescription
int

setMaxNodeCount

Maximum number of nodes for one location in the NodePool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAutoprovisioned

Can this node pool be deleted automatically.

Returns
TypeDescription
bool

setAutoprovisioned

Can this node pool be deleted automatically.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLocationPolicy

Location policy used when scaling up a nodepool.

Returns
TypeDescription
int

setLocationPolicy

Location policy used when scaling up a nodepool.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTotalMinNodeCount

Minimum number of nodes in the node pool. Must be greater than 1 less than total_max_node_count.

The total_*_node_count fields are mutually exclusive with the *_node_count fields.

Returns
TypeDescription
int

setTotalMinNodeCount

Minimum number of nodes in the node pool. Must be greater than 1 less than total_max_node_count.

The total_*_node_count fields are mutually exclusive with the *_node_count fields.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTotalMaxNodeCount

Maximum number of nodes in the node pool. Must be greater than total_min_node_count. There has to be enough quota to scale up the cluster.

The total_*_node_count fields are mutually exclusive with the *_node_count fields.

Returns
TypeDescription
int

setTotalMaxNodeCount

Maximum number of nodes in the node pool. Must be greater than total_min_node_count. There has to be enough quota to scale up the cluster.

The total_*_node_count fields are mutually exclusive with the *_node_count fields.

Parameter
NameDescription
var int
Returns
TypeDescription
$this