Reference documentation and code samples for the Google Cloud Container V1 Client class PrivateClusterConfig.
Configuration options for private clusters.
Generated from protobuf message google.container.v1.PrivateClusterConfig
Namespace
Google \ Cloud \ Container \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ enable_private_nodes
bool
Whether 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
bool
Whether 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
string
The 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
string
Output only. The internal IP address of this cluster's master endpoint. Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint instead.
↳ public_endpoint
string
Output only. The external IP address of this cluster's master endpoint. Deprecated:Use ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint instead.
↳ peering_name
string
Output only. The peering name in the customer VPC used by this cluster.
↳ master_global_access_config
PrivateClusterMasterGlobalAccessConfig
Controls master global access settings. Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access instead.
↳ private_endpoint_subnetwork
string
Subnet to provision the master's private endpoint during cluster creation. Specified in projects/ /regions/ /subnetworks/* format. Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork instead.
getEnablePrivateNodes
Whether 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.
bool
setEnablePrivateNodes
Whether 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.
var
bool
$this
getEnablePrivateEndpoint
Whether 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.
bool
setEnablePrivateEndpoint
Whether 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.
var
bool
$this
getMasterIpv4CidrBlock
The 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.
string
setMasterIpv4CidrBlock
The 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.
var
string
$this
getPrivateEndpoint
Output only. The internal IP address of this cluster's master endpoint.
Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint instead.
string
setPrivateEndpoint
Output only. The internal IP address of this cluster's master endpoint.
Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint instead.
var
string
$this
getPublicEndpoint
Output only. The external IP address of this cluster's master endpoint.
Deprecated:Use ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint instead.
string
setPublicEndpoint
Output only. The external IP address of this cluster's master endpoint.
Deprecated:Use ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint instead.
var
string
$this
getPeeringName
Output only. The peering name in the customer VPC used by this cluster.
string
setPeeringName
Output only. The peering name in the customer VPC used by this cluster.
var
string
$this
getMasterGlobalAccessConfig
Controls master global access settings.
Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access instead.
hasMasterGlobalAccessConfig
clearMasterGlobalAccessConfig
setMasterGlobalAccessConfig
Controls master global access settings.
Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access instead.
$this
getPrivateEndpointSubnetwork
Subnet to provision the master's private endpoint during cluster creation.
Specified in projects/ /regions/ /subnetworks/* format. Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork instead.
string
setPrivateEndpointSubnetwork
Subnet to provision the master's private endpoint during cluster creation.
Specified in projects/ /regions/ /subnetworks/* format. Deprecated: Use ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork instead.
var
string
$this