Class: Google::Apis::GkeonpremV1::BareMetalAdminWorkloadNodeConfig

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

Overview

BareMetalAdminWorkloadNodeConfig specifies the workload node configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalAdminWorkloadNodeConfig

Returns a new instance of BareMetalAdminWorkloadNodeConfig.



739
740
741
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 739

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

Instance Attribute Details

#max_pods_per_nodeFixnum

The maximum number of pods a node can run. The size of the CIDR range assigned to the node will be derived from this parameter. By default 110 Pods are created per Node. Upper bound is 250 for both HA and non-HA admin cluster. Lower bound is 64 for non-HA admin cluster and 32 for HA admin cluster. Corresponds to the JSON property maxPodsPerNode

Returns:

  • (Fixnum)


737
738
739
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 737

def max_pods_per_node
  @max_pods_per_node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



744
745
746
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 744

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