IPAllocationPolicyArgs

data class IPAllocationPolicyArgs(val clusterIpv4Cidr: Output<String>? = null, val clusterIpv4CidrBlock: Output<String>? = null, val clusterSecondaryRangeName: Output<String>? = null, val createSubnetwork: Output<Boolean>? = null, val ipv6AccessType: Output<IPAllocationPolicyIpv6AccessType>? = null, val nodeIpv4Cidr: Output<String>? = null, val nodeIpv4CidrBlock: Output<String>? = null, val podCidrOverprovisionConfig: Output<PodCIDROverprovisionConfigArgs>? = null, val servicesIpv4Cidr: Output<String>? = null, val servicesIpv4CidrBlock: Output<String>? = null, val servicesSecondaryRangeName: Output<String>? = null, val stackType: Output<IPAllocationPolicyStackType>? = null, val subnetworkName: Output<String>? = null, val tpuIpv4CidrBlock: Output<String>? = null, val useIpAliases: Output<Boolean>? = null, val useRoutes: Output<Boolean>? = null) : ConvertibleToJava<IPAllocationPolicyArgs>

Configuration for controlling how IPs are allocated in the cluster.

Constructors

Link copied to clipboard
fun IPAllocationPolicyArgs(clusterIpv4Cidr: Output<String>? = null, clusterIpv4CidrBlock: Output<String>? = null, clusterSecondaryRangeName: Output<String>? = null, createSubnetwork: Output<Boolean>? = null, ipv6AccessType: Output<IPAllocationPolicyIpv6AccessType>? = null, nodeIpv4Cidr: Output<String>? = null, nodeIpv4CidrBlock: Output<String>? = null, podCidrOverprovisionConfig: Output<PodCIDROverprovisionConfigArgs>? = null, servicesIpv4Cidr: Output<String>? = null, servicesIpv4CidrBlock: Output<String>? = null, servicesSecondaryRangeName: Output<String>? = null, stackType: Output<IPAllocationPolicyStackType>? = null, subnetworkName: Output<String>? = null, tpuIpv4CidrBlock: Output<String>? = null, useIpAliases: Output<Boolean>? = null, useRoutes: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): IPAllocationPolicyArgs

Properties

Link copied to clipboard
val clusterIpv4Cidr: Output<String>? = null

This field is deprecated, use cluster_ipv4_cidr_block.

Link copied to clipboard
val clusterIpv4CidrBlock: Output<String>? = null

The IP address range for the cluster pod IPs. If this field is set, then cluster.cluster_ipv4_cidr must be left blank. This field is only applicable when use_ip_aliases is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

Link copied to clipboard
val clusterSecondaryRangeName: Output<String>? = null

The name of the secondary range to be used for the cluster CIDR block. The secondary range will be used for pod IP addresses. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases is true and create_subnetwork is false.

Link copied to clipboard
val createSubnetwork: Output<Boolean>? = null

Whether a new subnetwork will be created automatically for the cluster. This field is only applicable when use_ip_aliases is true.

Link copied to clipboard

The ipv6 access type (internal or external) when create_subnetwork is true

Link copied to clipboard
val nodeIpv4Cidr: Output<String>? = null

This field is deprecated, use node_ipv4_cidr_block.

Link copied to clipboard
val nodeIpv4CidrBlock: Output<String>? = null

The IP address range of the instance IPs in this cluster. This is applicable only if create_subnetwork is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

Link copied to clipboard

PRIVATE FIELD Pod CIDR size overprovisioning config for the cluster. Pod CIDR size per node depends on max_pods_per_node. By default, the value of max_pods_per_node is doubled and then rounded off to next power of 2 to get the size of pod CIDR block per node. Example: max_pods_per_node of 30 would result in 64 IPs (/26). This config can disable the doubling of IPs (we still round off to next power of 2) Example: max_pods_per_node of 30 will result in 32 IPs (/27) when overprovisioning is disabled.

Link copied to clipboard
val servicesIpv4Cidr: Output<String>? = null

This field is deprecated, use services_ipv4_cidr_block.

Link copied to clipboard
val servicesIpv4CidrBlock: Output<String>? = null

The IP address range of the services IPs in this cluster. If blank, a range will be automatically chosen with the default size. This field is only applicable when use_ip_aliases is true. Set to blank to have a range chosen with the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

Link copied to clipboard
val servicesSecondaryRangeName: Output<String>? = null

The name of the secondary range to be used as for the services CIDR block. The secondary range will be used for service ClusterIPs. This must be an existing secondary range associated with the cluster subnetwork. This field is only applicable with use_ip_aliases is true and create_subnetwork is false.

Link copied to clipboard

The IP stack type of the cluster

Link copied to clipboard
val subnetworkName: Output<String>? = null

A custom subnetwork name to be used if create_subnetwork is true. If this field is empty, then an automatic name will be chosen for the new subnetwork.

Link copied to clipboard
val tpuIpv4CidrBlock: Output<String>? = null

The IP address range of the Cloud TPUs in this cluster. If unspecified, a range will be automatically chosen with the default size. This field is only applicable when use_ip_aliases is true. If unspecified, the range will use the default size. Set to /netmask (e.g. /14) to have a range chosen with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use.

Link copied to clipboard
val useIpAliases: Output<Boolean>? = null

Whether alias IPs will be used for pod IPs in the cluster. This is used in conjunction with use_routes. It cannot be true if use_routes is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode

Link copied to clipboard
val useRoutes: Output<Boolean>? = null

Whether routes will be used for pod IPs in the cluster. This is used in conjunction with use_ip_aliases. It cannot be true if use_ip_aliases is true. If both use_ip_aliases and use_routes are false, then the server picks the default IP allocation mode