#[non_exhaustive]pub struct NodePoolAutoscaling {
pub enabled: bool,
pub min_node_count: i32,
pub max_node_count: i32,
pub autoprovisioned: bool,
pub location_policy: LocationPolicy,
pub total_min_node_count: i32,
pub total_max_node_count: i32,
}Expand description
NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolIs autoscaling enabled for this node pool.
min_node_count: i32Minimum number of nodes for one location in the node pool. Must be greater than or equal to 0 and less than or equal to max_node_count.
max_node_count: i32Maximum number of nodes for one location in the node pool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.
autoprovisioned: boolCan this node pool be deleted automatically.
location_policy: LocationPolicyLocation policy used when scaling up a nodepool.
total_min_node_count: i32Minimum number of nodes in the node pool. Must be greater than or equal to 0 and less than or equal to total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
total_max_node_count: i32Maximum number of nodes in the node pool. Must be greater than or equal to 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.
Implementations§
Source§impl NodePoolAutoscaling
impl NodePoolAutoscaling
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of enabled.
Sourcepub fn set_min_node_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_min_node_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of min_node_count.
Sourcepub fn set_max_node_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_node_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_node_count.
Sourcepub fn set_autoprovisioned<T: Into<bool>>(self, v: T) -> Self
pub fn set_autoprovisioned<T: Into<bool>>(self, v: T) -> Self
Sets the value of autoprovisioned.
Sourcepub fn set_location_policy<T: Into<LocationPolicy>>(self, v: T) -> Self
pub fn set_location_policy<T: Into<LocationPolicy>>(self, v: T) -> Self
Sets the value of location_policy.
Sourcepub fn set_total_min_node_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_min_node_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of total_min_node_count.
Sourcepub fn set_total_max_node_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_max_node_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of total_max_node_count.
Trait Implementations§
Source§impl Clone for NodePoolAutoscaling
impl Clone for NodePoolAutoscaling
Source§fn clone(&self) -> NodePoolAutoscaling
fn clone(&self) -> NodePoolAutoscaling
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more