Class: Google::Apis::GkeonpremV1::BareMetalAdminWorkloadNodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalAdminWorkloadNodeConfig
- 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
BareMetalAdminWorkloadNodeConfig specifies the workload node configurations.
Instance Attribute Summary collapse
-
#max_pods_per_node ⇒ Fixnum
The maximum number of pods a node can run.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalAdminWorkloadNodeConfig
constructor
A new instance of BareMetalAdminWorkloadNodeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalAdminWorkloadNodeConfig
Returns a new instance of BareMetalAdminWorkloadNodeConfig.
930 931 932 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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. By default 110 Pods are
created per Node. Upper bound is 250 for both HA and non-HA admin cluster.
Lower bound is 64 for non-HA admin cluster and 32 for HA admin cluster.
Corresponds to the JSON property maxPodsPerNode
928 929 930 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 928 def max_pods_per_node @max_pods_per_node end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
935 936 937 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 935 def update!(**args) @max_pods_per_node = args[:max_pods_per_node] if args.key?(:max_pods_per_node) end |