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.



1987
1988
1989
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1987

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)


1979
1980
1981
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1979

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)


1985
1986
1987
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1985

def max_pods_per_node
  @max_pods_per_node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1992
1993
1994
1995
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1992

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