Class: Google::Apis::GkeonpremV1::BareMetalWorkloadNodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalWorkloadNodeConfig
- 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
-
#container_runtime ⇒ String
Specifies which container runtime will be used.
-
#max_pods_per_node ⇒ Fixnum
The maximum number of pods a node can run.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalWorkloadNodeConfig
constructor
A new instance of BareMetalWorkloadNodeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_runtime ⇒ String
Specifies which container runtime will be used.
Corresponds to the JSON property containerRuntime
2084 2085 2086 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2084 def container_runtime @container_runtime end |
#max_pods_per_node ⇒ Fixnum
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
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 |