Class: Google::Apis::ContainerV1beta1::NodeNetworkConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

Parameters for node pool-level network config. Only applicable if ip_allocation_policy.use_ip_aliases is true.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeNetworkConfig

Returns a new instance of NodeNetworkConfig.



3172
3173
3174
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3172

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_pod_rangeBoolean Also known as: create_pod_range?

Input only. Whether to create a new range for pod IPs in this node pool. Defaults are provided for pod_range and pod_ipv4_cidr_block if they are not specified. If neither create_pod_range or pod_range are specified, the cluster-level default (ip_allocation_policy.cluster_ipv4_cidr_block) is used. Corresponds to the JSON property createPodRange

Returns:

  • (Boolean)


3152
3153
3154
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3152

def create_pod_range
  @create_pod_range
end

#pod_ipv4_cidr_blockString

The IP address range for pod IPs in this node pool. Only applicable if create_pod_range 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) to pick a specific range to use. Corresponds to the JSON property podIpv4CidrBlock

Returns:

  • (String)


3163
3164
3165
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3163

def pod_ipv4_cidr_block
  @pod_ipv4_cidr_block
end

#pod_rangeString

The ID of the secondary range for pod IPs. If create_pod_range is true, this ID is used for the new range. If create_pod_range is false, uses an existing secondary range with this ID. Corresponds to the JSON property podRange

Returns:

  • (String)


3170
3171
3172
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3170

def pod_range
  @pod_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3177
3178
3179
3180
3181
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3177

def update!(**args)
  @create_pod_range = args[:create_pod_range] if args.key?(:create_pod_range)
  @pod_ipv4_cidr_block = args[:pod_ipv4_cidr_block] if args.key?(:pod_ipv4_cidr_block)
  @pod_range = args[:pod_range] if args.key?(:pod_range)
end