Struct google_api_proto::google::cloud::dataproc::v1::gke_node_pool_config::GkeNodeConfig
source · pub struct GkeNodeConfig {
pub machine_type: String,
pub local_ssd_count: i32,
pub preemptible: bool,
pub accelerators: Vec<GkeNodePoolAcceleratorConfig>,
pub min_cpu_platform: String,
pub boot_disk_kms_key: String,
pub spot: bool,
}
Expand description
Parameters that describe cluster nodes.
Fields§
§machine_type: String
Optional. The name of a Compute Engine machine type.
local_ssd_count: 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).
preemptible: bool
Optional. Whether the nodes are created as legacy [preemptible VM
instances] (https://cloud.google.com/compute/docs/instances/preemptible).
Also see
[Spot][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.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]
(/dataproc/docs/reference/rest/v1/projects.regions.clusters#role)
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
accelerators: Vec<GkeNodePoolAcceleratorConfig>
Optional. A list of hardware accelerators to attach to each node.
min_cpu_platform: String
Optional. Minimum 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“.
boot_disk_kms_key: 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/KEY_PROJECT_ID/locations/LOCATION/keyRings/RING_NAME/cryptoKeys/KEY_NAME
.
spot: 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][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.preemptible].
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§impl Message for GkeNodeConfig
impl Message for GkeNodeConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for GkeNodeConfig
impl PartialEq for GkeNodeConfig
source§fn eq(&self, other: &GkeNodeConfig) -> bool
fn eq(&self, other: &GkeNodeConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request