pub struct GkeNodeConfig {
pub accelerators: Option<Vec<GkeNodePoolAcceleratorConfig>>,
pub boot_disk_kms_key: Option<String>,
pub local_ssd_count: Option<i32>,
pub machine_type: Option<String>,
pub min_cpu_platform: Option<String>,
pub preemptible: Option<bool>,
pub spot: Option<bool>,
}
Expand description
Parameters that describe cluster nodes.
This type is not used in any activity, and only used as part of another schema.
Fields§
§accelerators: Option<Vec<GkeNodePoolAcceleratorConfig>>
Optional. A list of hardware accelerators (https://cloud.google.com/compute/docs/gpus) to attach to each node.
boot_disk_kms_key: Option<String>
Optional. The Customer Managed Encryption Key (CMEK) (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
local_ssd_count: Option<i32>
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs (https://cloud.google.com/compute/docs/disks/local-ssd)).
machine_type: Option<String>
Optional. The name of a Compute Engine machine type (https://cloud.google.com/compute/docs/machine-types).
min_cpu_platform: Option<String>
Optional. Minimum CPU platform (https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as “Intel Haswell”` or Intel Sandy Bridge“.
preemptible: Option<bool>
Optional. Whether the nodes are created as legacy preemptible VM instances (https://cloud.google.com/compute/docs/instances/preemptible). Also see Spot VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
spot: Option<bool>
Optional. Whether the nodes are created as Spot VM instances (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy preemptible VMs. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role or in the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node pool will assume the CONTROLLER role).
Trait Implementations§
Source§impl Clone for GkeNodeConfig
impl Clone for GkeNodeConfig
Source§fn clone(&self) -> GkeNodeConfig
fn clone(&self) -> GkeNodeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GkeNodeConfig
impl Debug for GkeNodeConfig
Source§impl Default for GkeNodeConfig
impl Default for GkeNodeConfig
Source§fn default() -> GkeNodeConfig
fn default() -> GkeNodeConfig
Source§impl<'de> Deserialize<'de> for GkeNodeConfig
impl<'de> Deserialize<'de> for GkeNodeConfig
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 GkeNodeConfig
impl Serialize for GkeNodeConfig
impl Part for GkeNodeConfig
Auto Trait Implementations§
impl Freeze for GkeNodeConfig
impl RefUnwindSafe for GkeNodeConfig
impl Send for GkeNodeConfig
impl Sync for GkeNodeConfig
impl Unpin for GkeNodeConfig
impl UnwindSafe for GkeNodeConfig
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