Reference documentation and code samples for the Google Cloud Container V1 Client class NetworkConfig.
NetworkConfig reports the relative names of network & subnetwork.
Generated from protobuf message google.container.v1.NetworkConfig
Namespace
Google \ Cloud \ Container \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ network
string
Output only. The relative name of the Google Compute Engine network to which the cluster is connected. Example: projects/my-project/global/networks/my-network
↳ subnetwork
string
Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
↳ enable_intra_node_visibility
bool
Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.
↳ default_snat_status
DefaultSnatStatus
Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.
↳ enable_l4ilb_subsetting
bool
Whether L4ILB Subsetting is enabled for this cluster.
↳ datapath_provider
int
The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.
↳ private_ipv6_google_access
int
The desired state of IPv6 connectivity to Google Services. By default, no private IPv6 access to or from Google Services (all access will be via IPv4)
↳ dns_config
↳ service_external_ips_config
ServiceExternalIPsConfig
ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.
↳ gateway_api_config
↳ enable_multi_networking
bool
Whether multi-networking is enabled for this cluster.
↳ network_performance_config
↳ enable_fqdn_network_policy
bool
Whether FQDN Network Policy is enabled on this cluster.
↳ in_transit_encryption_config
int
Specify the details of in-transit encryption. Now named inter-node transparent encryption.
↳ enable_cilium_clusterwide_network_policy
bool
Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
↳ default_enable_private_nodes
bool
Controls whether by default nodes have private IP addresses only. It is invalid to specify both PrivateClusterConfig.enablePrivateNodes and this field at the same time. To update the default setting, use ClusterUpdate.desired_default_enable_private_nodes
↳ disable_l4_lb_firewall_reconciliation
bool
Disable L4 load balancer VPC firewalls to enable firewall policies.
getNetwork
Output only. The relative name of the Google Compute Engine network to which the cluster is connected. Example: projects/my-project/global/networks/my-network
string
setNetwork
Output only. The relative name of the Google Compute Engine network to which the cluster is connected. Example: projects/my-project/global/networks/my-network
var
string
$this
getSubnetwork
Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
string
setSubnetwork
Output only. The relative name of the Google Compute Engine subnetwork to which the cluster is connected. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
var
string
$this
getEnableIntraNodeVisibility
Whether Intra-node visibility is enabled for this cluster.
This makes same node pod to pod traffic visible for VPC network.
bool
setEnableIntraNodeVisibility
Whether Intra-node visibility is enabled for this cluster.
This makes same node pod to pod traffic visible for VPC network.
var
bool
$this
getDefaultSnatStatus
Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.
hasDefaultSnatStatus
clearDefaultSnatStatus
setDefaultSnatStatus
Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.
$this
getEnableL4IlbSubsetting
Whether L4ILB Subsetting is enabled for this cluster.
bool
setEnableL4IlbSubsetting
Whether L4ILB Subsetting is enabled for this cluster.
var
bool
$this
getDatapathProvider
The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.
int
setDatapathProvider
The desired datapath provider for this cluster. By default, uses the IPTables-based kube-proxy implementation.
var
int
$this
getPrivateIpv6GoogleAccess
The desired state of IPv6 connectivity to Google Services.
By default, no private IPv6 access to or from Google Services (all access will be via IPv4)
int
setPrivateIpv6GoogleAccess
The desired state of IPv6 connectivity to Google Services.
By default, no private IPv6 access to or from Google Services (all access will be via IPv4)
var
int
$this
getDnsConfig
DNSConfig contains clusterDNS config for this cluster.
hasDnsConfig
clearDnsConfig
setDnsConfig
DNSConfig contains clusterDNS config for this cluster.
$this
getServiceExternalIpsConfig
ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.
hasServiceExternalIpsConfig
clearServiceExternalIpsConfig
setServiceExternalIpsConfig
ServiceExternalIPsConfig specifies if services with externalIPs field are blocked or not.
$this
getGatewayApiConfig
GatewayAPIConfig contains the desired config of Gateway API on this cluster.
hasGatewayApiConfig
clearGatewayApiConfig
setGatewayApiConfig
GatewayAPIConfig contains the desired config of Gateway API on this cluster.
$this
getEnableMultiNetworking
Whether multi-networking is enabled for this cluster.
bool
setEnableMultiNetworking
Whether multi-networking is enabled for this cluster.
var
bool
$this
getNetworkPerformanceConfig
Network bandwidth tier configuration.
hasNetworkPerformanceConfig
clearNetworkPerformanceConfig
setNetworkPerformanceConfig
Network bandwidth tier configuration.
$this
getEnableFqdnNetworkPolicy
Whether FQDN Network Policy is enabled on this cluster.
bool
hasEnableFqdnNetworkPolicy
clearEnableFqdnNetworkPolicy
setEnableFqdnNetworkPolicy
Whether FQDN Network Policy is enabled on this cluster.
var
bool
$this
getInTransitEncryptionConfig
Specify the details of in-transit encryption.
Now named inter-node transparent encryption.
int
hasInTransitEncryptionConfig
clearInTransitEncryptionConfig
setInTransitEncryptionConfig
Specify the details of in-transit encryption.
Now named inter-node transparent encryption.
var
int
$this
getEnableCiliumClusterwideNetworkPolicy
Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
bool
hasEnableCiliumClusterwideNetworkPolicy
clearEnableCiliumClusterwideNetworkPolicy
setEnableCiliumClusterwideNetworkPolicy
Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
var
bool
$this
getDefaultEnablePrivateNodes
Controls whether by default nodes have private IP addresses only.
It is invalid to specify both PrivateClusterConfig.enablePrivateNodes and this field at the same time. To update the default setting, use ClusterUpdate.desired_default_enable_private_nodes
bool
hasDefaultEnablePrivateNodes
clearDefaultEnablePrivateNodes
setDefaultEnablePrivateNodes
Controls whether by default nodes have private IP addresses only.
It is invalid to specify both PrivateClusterConfig.enablePrivateNodes and this field at the same time. To update the default setting, use ClusterUpdate.desired_default_enable_private_nodes
var
bool
$this
getDisableL4LbFirewallReconciliation
Disable L4 load balancer VPC firewalls to enable firewall policies.
bool
hasDisableL4LbFirewallReconciliation
clearDisableL4LbFirewallReconciliation
setDisableL4LbFirewallReconciliation
Disable L4 load balancer VPC firewalls to enable firewall policies.
var
bool
$this