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.



2283
2284
2285
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2283

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)


2275
2276
2277
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2275

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)


2281
2282
2283
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2281

def max_pods_per_node
  @max_pods_per_node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2288
2289
2290
2291
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2288

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