#[non_exhaustive]pub struct AutoprovisioningNodePoolDefaults {
pub oauth_scopes: Vec<String>,
pub service_account: String,
pub upgrade_settings: Option<UpgradeSettings>,
pub management: Option<NodeManagement>,
pub min_cpu_platform: String,
pub disk_size_gb: i32,
pub disk_type: String,
pub shielded_instance_config: Option<ShieldedInstanceConfig>,
pub boot_disk_kms_key: String,
pub image_type: String,
pub insecure_kubelet_readonly_port_enabled: Option<bool>,
}Expand description
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
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.oauth_scopes: Vec<String>Scopes that are used by NAP when creating node pools.
service_account: StringThe Google Cloud Platform Service Account to be used by the node VMs.
upgrade_settings: Option<UpgradeSettings>Specifies the upgrade settings for NAP created node pools
management: Option<NodeManagement>Specifies the node management options for NAP created node-pools.
min_cpu_platform: StringDeprecated. Minimum CPU platform to be used for NAP created node pools.
The instance may be scheduled on the specified or newer CPU platform.
Applicable values are the friendly names of CPU platforms, such as
minCpuPlatform: Intel Haswell or
minCpuPlatform: Intel Sandy Bridge. For more
information, read how to specify min CPU
platform.
This field is deprecated, min_cpu_platform should be specified using
cloud.google.com/requested-min-cpu-platform label selector on the pod.
To unset the min cpu platform field pass “automatic”
as field value.
disk_size_gb: i32Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB.
If unspecified, the default disk size is 100GB.
disk_type: StringType of the disk attached to each node (e.g. ‘pd-standard’, ‘pd-ssd’ or ‘pd-balanced’)
If unspecified, the default disk type is ‘pd-standard’
shielded_instance_config: Option<ShieldedInstanceConfig>Shielded Instance options.
boot_disk_kms_key: StringThe Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
image_type: StringThe image type to use for NAP created node. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.
insecure_kubelet_readonly_port_enabled: Option<bool>Enable or disable Kubelet read only port.
Implementations§
Source§impl AutoprovisioningNodePoolDefaults
impl AutoprovisioningNodePoolDefaults
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
Sourcepub fn set_upgrade_settings<T: Into<Option<UpgradeSettings>>>(
self,
v: T,
) -> Self
pub fn set_upgrade_settings<T: Into<Option<UpgradeSettings>>>( self, v: T, ) -> Self
Sets the value of upgrade_settings.
Sourcepub fn set_management<T: Into<Option<NodeManagement>>>(self, v: T) -> Self
pub fn set_management<T: Into<Option<NodeManagement>>>(self, v: T) -> Self
Sets the value of management.
Sourcepub fn set_min_cpu_platform<T: Into<String>>(self, v: T) -> Self
pub fn set_min_cpu_platform<T: Into<String>>(self, v: T) -> Self
Sets the value of min_cpu_platform.
Sourcepub fn set_disk_size_gb<T: Into<i32>>(self, v: T) -> Self
pub fn set_disk_size_gb<T: Into<i32>>(self, v: T) -> Self
Sets the value of disk_size_gb.
Sourcepub fn set_disk_type<T: Into<String>>(self, v: T) -> Self
pub fn set_disk_type<T: Into<String>>(self, v: T) -> Self
Sets the value of disk_type.
Sourcepub fn set_shielded_instance_config<T: Into<Option<ShieldedInstanceConfig>>>(
self,
v: T,
) -> Self
pub fn set_shielded_instance_config<T: Into<Option<ShieldedInstanceConfig>>>( self, v: T, ) -> Self
Sets the value of shielded_instance_config.
Sourcepub fn set_boot_disk_kms_key<T: Into<String>>(self, v: T) -> Self
pub fn set_boot_disk_kms_key<T: Into<String>>(self, v: T) -> Self
Sets the value of boot_disk_kms_key.
Sourcepub fn set_image_type<T: Into<String>>(self, v: T) -> Self
pub fn set_image_type<T: Into<String>>(self, v: T) -> Self
Sets the value of image_type.
Sourcepub fn set_insecure_kubelet_readonly_port_enabled<T: Into<Option<bool>>>(
self,
v: T,
) -> Self
pub fn set_insecure_kubelet_readonly_port_enabled<T: Into<Option<bool>>>( self, v: T, ) -> Self
Sets the value of insecure_kubelet_readonly_port_enabled.
Sourcepub fn set_oauth_scopes<T, V>(self, v: T) -> Self
pub fn set_oauth_scopes<T, V>(self, v: T) -> Self
Sets the value of oauth_scopes.
Trait Implementations§
Source§impl Clone for AutoprovisioningNodePoolDefaults
impl Clone for AutoprovisioningNodePoolDefaults
Source§fn clone(&self) -> AutoprovisioningNodePoolDefaults
fn clone(&self) -> AutoprovisioningNodePoolDefaults
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for AutoprovisioningNodePoolDefaults
impl Default for AutoprovisioningNodePoolDefaults
Source§fn default() -> AutoprovisioningNodePoolDefaults
fn default() -> AutoprovisioningNodePoolDefaults
Source§impl<'de> Deserialize<'de> for AutoprovisioningNodePoolDefaults
impl<'de> Deserialize<'de> for AutoprovisioningNodePoolDefaults
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 PartialEq for AutoprovisioningNodePoolDefaults
impl PartialEq for AutoprovisioningNodePoolDefaults
Source§fn eq(&self, other: &AutoprovisioningNodePoolDefaults) -> bool
fn eq(&self, other: &AutoprovisioningNodePoolDefaults) -> bool
self and other values to be equal, and is used by ==.