Class: Google::Apis::GkeonpremV1::BareMetalWorkloadNodeConfig

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

Specifies the workload node configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalWorkloadNodeConfig

Returns a new instance of BareMetalWorkloadNodeConfig.



2092
2093
2094
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2092

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

Instance Attribute Details

#container_runtimeString

Specifies which container runtime will be used. Corresponds to the JSON property containerRuntime

Returns:

  • (String)


2084
2085
2086
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2084

def container_runtime
  @container_runtime
end

#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. Corresponds to the JSON property maxPodsPerNode

Returns:

  • (Fixnum)


2090
2091
2092
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2090

def max_pods_per_node
  @max_pods_per_node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2097
2098
2099
2100
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2097

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