Class: Google::Apis::ContainerV1::AddonsConfig

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

Overview

Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AddonsConfig

Returns a new instance of AddonsConfig.



381
382
383
# File 'generated/google/apis/container_v1/classes.rb', line 381

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

Instance Attribute Details

#horizontal_pod_autoscalingGoogle::Apis::ContainerV1::HorizontalPodAutoscaling

Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods. Corresponds to the JSON property horizontalPodAutoscaling



379
380
381
# File 'generated/google/apis/container_v1/classes.rb', line 379

def horizontal_pod_autoscaling
  @horizontal_pod_autoscaling
end

#http_load_balancingGoogle::Apis::ContainerV1::HttpLoadBalancing

Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. Corresponds to the JSON property httpLoadBalancing



372
373
374
# File 'generated/google/apis/container_v1/classes.rb', line 372

def http_load_balancing
  @http_load_balancing
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



386
387
388
389
# File 'generated/google/apis/container_v1/classes.rb', line 386

def update!(**args)
  @http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
  @horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling)
end