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.
2283 2284 2285 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2283 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
2275 2276 2277 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2275 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
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 |