class Google::Apis::ContainerV1beta1::ClusterAutoscaling

ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/ delete node pools based on the current needs.

Attributes

autoprovisioning_locations[RW]

The list of Google Compute Engine [zones](cloud.google.com/compute/ docs/zones#available) in which the NodePool's nodes can be created by NAP. Corresponds to the JSON property `autoprovisioningLocations` @return [Array<String>]

autoprovisioning_node_pool_defaults[RW]

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP. Corresponds to the JSON property `autoprovisioningNodePoolDefaults` @return [Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults]

autoscaling_profile[RW]

Defines autoscaling behaviour. Corresponds to the JSON property `autoscalingProfile` @return [String]

enable_node_autoprovisioning[RW]

Enables automatic node pool creation and deletion. Corresponds to the JSON property `enableNodeAutoprovisioning` @return [Boolean]

enable_node_autoprovisioning?[RW]

Enables automatic node pool creation and deletion. Corresponds to the JSON property `enableNodeAutoprovisioning` @return [Boolean]

resource_limits[RW]

Contains global constraints regarding minimum and maximum amount of resources in the cluster. Corresponds to the JSON property `resourceLimits` @return [Array<Google::Apis::ContainerV1beta1::ResourceLimit>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/container_v1beta1/classes.rb, line 1046
def update!(**args)
  @autoprovisioning_locations = args[:autoprovisioning_locations] if args.key?(:autoprovisioning_locations)
  @autoprovisioning_node_pool_defaults = args[:autoprovisioning_node_pool_defaults] if args.key?(:autoprovisioning_node_pool_defaults)
  @autoscaling_profile = args[:autoscaling_profile] if args.key?(:autoscaling_profile)
  @enable_node_autoprovisioning = args[:enable_node_autoprovisioning] if args.key?(:enable_node_autoprovisioning)
  @resource_limits = args[:resource_limits] if args.key?(:resource_limits)
end