#[non_exhaustive]pub struct PrivateClusterConfig {
pub enable_private_nodes: bool,
pub enable_private_endpoint: bool,
pub master_ipv4_cidr_block: String,
pub private_endpoint: String,
pub public_endpoint: String,
pub peering_name: String,
pub master_global_access_config: Option<PrivateClusterMasterGlobalAccessConfig>,
pub private_endpoint_subnetwork: String,
}Expand description
Configuration options for private clusters.
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_private_nodes: boolWhether nodes have internal IP addresses only. If enabled, all nodes are given only RFC 1918 private addresses and communicate with the master via private networking.
Deprecated: Use NetworkConfig.default_enable_private_nodes instead.
enable_private_endpoint: boolWhether the master’s internal IP address is used as the cluster endpoint.
Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint instead. Note that the value of enable_public_endpoint is reversed: if enable_private_endpoint is false, then enable_public_endpoint will be true.
master_ipv4_cidr_block: StringThe IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster’s network.
private_endpoint: StringOutput only. The internal IP address of this cluster’s master endpoint.
Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint instead.
public_endpoint: StringOutput only. The external IP address of this cluster’s master endpoint.
Deprecated:Use ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint instead.
peering_name: StringOutput only. The peering name in the customer VPC used by this cluster.
master_global_access_config: Option<PrivateClusterMasterGlobalAccessConfig>Controls master global access settings.
Deprecated: Use [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][] instead.
private_endpoint_subnetwork: StringSubnet to provision the master’s private endpoint during cluster creation. Specified in projects//regions//subnetworks/* format.
Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork instead.
Implementations§
Source§impl PrivateClusterConfig
impl PrivateClusterConfig
Sourcepub fn set_enable_private_nodes<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_private_nodes<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_private_nodes.
Sourcepub fn set_enable_private_endpoint<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_private_endpoint<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_private_endpoint.
Sourcepub fn set_master_ipv4_cidr_block<T: Into<String>>(self, v: T) -> Self
pub fn set_master_ipv4_cidr_block<T: Into<String>>(self, v: T) -> Self
Sets the value of master_ipv4_cidr_block.
Sourcepub fn set_private_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_private_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of private_endpoint.
Sourcepub fn set_public_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_public_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of public_endpoint.
Sourcepub fn set_peering_name<T: Into<String>>(self, v: T) -> Self
pub fn set_peering_name<T: Into<String>>(self, v: T) -> Self
Sets the value of peering_name.
Sourcepub fn set_master_global_access_config<T: Into<Option<PrivateClusterMasterGlobalAccessConfig>>>(
self,
v: T,
) -> Self
pub fn set_master_global_access_config<T: Into<Option<PrivateClusterMasterGlobalAccessConfig>>>( self, v: T, ) -> Self
Sets the value of master_global_access_config.
Sourcepub fn set_private_endpoint_subnetwork<T: Into<String>>(self, v: T) -> Self
pub fn set_private_endpoint_subnetwork<T: Into<String>>(self, v: T) -> Self
Sets the value of private_endpoint_subnetwork.
Trait Implementations§
Source§impl Clone for PrivateClusterConfig
impl Clone for PrivateClusterConfig
Source§fn clone(&self) -> PrivateClusterConfig
fn clone(&self) -> PrivateClusterConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more