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
Methods
__construct
Constructor.
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.
Generated from protobuf field bool enabled = 1;
bool
setEnabled
Is autoscaling enabled for this node pool.
Generated from protobuf field bool enabled = 1;
var
bool
$this
getMinNodeCount
Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.
Generated from protobuf field int32 min_node_count = 2;
int
setMinNodeCount
Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.
Generated from protobuf field int32 min_node_count = 2;
var
int
$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.
Generated from protobuf field int32 max_node_count = 3;
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.
Generated from protobuf field int32 max_node_count = 3;
var
int
$this
getAutoprovisioned
Can this node pool be deleted automatically.
Generated from protobuf field bool autoprovisioned = 4;
bool
setAutoprovisioned
Can this node pool be deleted automatically.
Generated from protobuf field bool autoprovisioned = 4;
var
bool
$this
getLocationPolicy
Location policy used when scaling up a nodepool.
Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;
int
setLocationPolicy
Location policy used when scaling up a nodepool.
Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5;
var
int
$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.
Generated from protobuf field int32 total_min_node_count = 6;
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.
Generated from protobuf field int32 total_min_node_count = 6;
var
int
$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.
Generated from protobuf field int32 total_max_node_count = 7;
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.
Generated from protobuf field int32 total_max_node_count = 7;
var
int
$this