#[non_exhaustive]pub struct ClusterAutoscaling {
pub enable_node_autoprovisioning: bool,
pub resource_limits: Vec<ResourceLimit>,
pub autoscaling_profile: AutoscalingProfile,
pub autoprovisioning_node_pool_defaults: Option<AutoprovisioningNodePoolDefaults>,
pub autoprovisioning_locations: Vec<String>,
}Expand description
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.
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.enable_node_autoprovisioning: boolEnables automatic node pool creation and deletion.
resource_limits: Vec<ResourceLimit>Contains global constraints regarding minimum and maximum amount of resources in the cluster.
autoscaling_profile: AutoscalingProfileDefines autoscaling behaviour.
autoprovisioning_node_pool_defaults: Option<AutoprovisioningNodePoolDefaults>AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
autoprovisioning_locations: Vec<String>The list of Google Compute Engine zones in which the NodePool’s nodes can be created by NAP.
Implementations§
Source§impl ClusterAutoscaling
impl ClusterAutoscaling
Sourcepub fn set_enable_node_autoprovisioning<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_node_autoprovisioning<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_node_autoprovisioning.
Sourcepub fn set_autoscaling_profile<T: Into<AutoscalingProfile>>(self, v: T) -> Self
pub fn set_autoscaling_profile<T: Into<AutoscalingProfile>>(self, v: T) -> Self
Sets the value of autoscaling_profile.
Sourcepub fn set_autoprovisioning_node_pool_defaults<T: Into<Option<AutoprovisioningNodePoolDefaults>>>(
self,
v: T,
) -> Self
pub fn set_autoprovisioning_node_pool_defaults<T: Into<Option<AutoprovisioningNodePoolDefaults>>>( self, v: T, ) -> Self
Sets the value of autoprovisioning_node_pool_defaults.
Sourcepub fn set_resource_limits<T, V>(self, v: T) -> Self
pub fn set_resource_limits<T, V>(self, v: T) -> Self
Sets the value of resource_limits.
Sourcepub fn set_autoprovisioning_locations<T, V>(self, v: T) -> Self
pub fn set_autoprovisioning_locations<T, V>(self, v: T) -> Self
Sets the value of autoprovisioning_locations.
Trait Implementations§
Source§impl Clone for ClusterAutoscaling
impl Clone for ClusterAutoscaling
Source§fn clone(&self) -> ClusterAutoscaling
fn clone(&self) -> ClusterAutoscaling
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more