Class NodePoolAutoscaling (2.38.0)

NodePoolAutoscaling(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
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 google.cloud.container_v1beta1.types.NodePoolAutoscaling.LocationPolicy
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.

Classes

LocationPolicy

LocationPolicy(value)

Location policy specifies how zones are picked when scaling up the nodepool.

Values: LOCATION_POLICY_UNSPECIFIED (0): Not set. BALANCED (1): BALANCED is a best effort policy that aims to balance the sizes of different zones. ANY (2): ANY policy picks zones that have the highest capacity available.