pub struct NodePoolAutoscaling {
pub autoprovisioned: Option<bool>,
pub enabled: Option<bool>,
pub location_policy: Option<String>,
pub max_node_count: Option<i32>,
pub min_node_count: Option<i32>,
pub total_max_node_count: Option<i32>,
pub total_min_node_count: Option<i32>,
}
Expand description
NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.
This type is not used in any activity, and only used as part of another schema.
Fields§
§autoprovisioned: Option<bool>
Can this node pool be deleted automatically.
enabled: Option<bool>
Is autoscaling enabled for this node pool.
location_policy: Option<String>
Location policy used when scaling up a nodepool.
max_node_count: Option<i32>
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.
min_node_count: Option<i32>
Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.
total_max_node_count: Option<i32>
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.
total_min_node_count: Option<i32>
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.
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 moreSource§impl Debug for NodePoolAutoscaling
impl Debug for NodePoolAutoscaling
Source§impl Default for NodePoolAutoscaling
impl Default for NodePoolAutoscaling
Source§fn default() -> NodePoolAutoscaling
fn default() -> NodePoolAutoscaling
Source§impl<'de> Deserialize<'de> for NodePoolAutoscaling
impl<'de> Deserialize<'de> for NodePoolAutoscaling
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for NodePoolAutoscaling
impl Serialize for NodePoolAutoscaling
impl Part for NodePoolAutoscaling
Auto Trait Implementations§
impl Freeze for NodePoolAutoscaling
impl RefUnwindSafe for NodePoolAutoscaling
impl Send for NodePoolAutoscaling
impl Sync for NodePoolAutoscaling
impl Unpin for NodePoolAutoscaling
impl UnwindSafe for NodePoolAutoscaling
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more