class Google::Apis::ComposerV1::IpAllocationPolicy

Configuration for controlling how IPs are allocated in the GKE cluster running the Apache Airflow software.

Attributes

cluster_ipv4_cidr_block[RW]

Optional. The IP address range used to allocate IP addresses to pods in the GKE cluster. This field is applicable only when `use_ip_aliases` is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.

  1. `/14`) to have GKE choose a range with a specific netmask. Set to a [CIDR](

en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 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. Corresponds to the JSON property `clusterIpv4CidrBlock` @return [String]

cluster_secondary_range_name[RW]

Optional. The name of the GKE cluster's secondary range used to allocate IP addresses to pods. This field is applicable only when `use_ip_aliases` is true. Corresponds to the JSON property `clusterSecondaryRangeName` @return [String]

services_ipv4_cidr_block[RW]

Optional. The IP address range of the services IP addresses in this GKE cluster. This field is applicable only when `use_ip_aliases` is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. ` /14`) to have GKE choose a range with a specific netmask. Set to a [CIDR]( en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) 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. Corresponds to the JSON property `servicesIpv4CidrBlock` @return [String]

services_secondary_range_name[RW]

Optional. The name of the services' secondary range used to allocate IP addresses to the GKE cluster. This field is applicable only when ` use_ip_aliases` is true. Corresponds to the JSON property `servicesSecondaryRangeName` @return [String]

use_ip_aliases[RW]

Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a VPC-native cluster is created. Corresponds to the JSON property `useIpAliases` @return [Boolean]

use_ip_aliases?[RW]

Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a VPC-native cluster is created. Corresponds to the JSON property `useIpAliases` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/composer_v1/classes.rb, line 398
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/composer_v1/classes.rb, line 403
def update!(**args)
  @cluster_ipv4_cidr_block = args[:cluster_ipv4_cidr_block] if args.key?(:cluster_ipv4_cidr_block)
  @cluster_secondary_range_name = args[:cluster_secondary_range_name] if args.key?(:cluster_secondary_range_name)
  @services_ipv4_cidr_block = args[:services_ipv4_cidr_block] if args.key?(:services_ipv4_cidr_block)
  @services_secondary_range_name = args[:services_secondary_range_name] if args.key?(:services_secondary_range_name)
  @use_ip_aliases = args[:use_ip_aliases] if args.key?(:use_ip_aliases)
end