Class: Google::Apis::GkeonpremV1::BareMetalNodePoolConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalNodePoolConfig
- 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
BareMetalNodePoolConfig describes the configuration of all nodes within a given bare metal node pool.
Instance Attribute Summary collapse
-
#kubelet_config ⇒ Google::Apis::GkeonpremV1::BareMetalKubeletConfig
KubeletConfig defines the modifiable kubelet configurations for bare metal machines.
-
#labels ⇒ Hash<String,String>
The labels assigned to nodes of this node pool.
-
#node_configs ⇒ Array<Google::Apis::GkeonpremV1::BareMetalNodeConfig>
Required.
-
#operating_system ⇒ String
Specifies the nodes operating system (default: LINUX).
-
#taints ⇒ Array<Google::Apis::GkeonpremV1::NodeTaint>
The initial taints assigned to nodes of this node pool.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalNodePoolConfig
constructor
A new instance of BareMetalNodePoolConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalNodePoolConfig
Returns a new instance of BareMetalNodePoolConfig.
1821 1822 1823 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1821 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kubelet_config ⇒ Google::Apis::GkeonpremV1::BareMetalKubeletConfig
KubeletConfig defines the modifiable kubelet configurations for bare metal
machines. Note: this list includes fields supported in GKE (see https://cloud.
google.com/kubernetes-engine/docs/how-to/node-system-config#kubelet-options).
Corresponds to the JSON property kubeletConfig
1798 1799 1800 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1798 def kubelet_config @kubelet_config end |
#labels ⇒ Hash<String,String>
The labels assigned to nodes of this node pool. An object containing a list of
key/value pairs. Example: "name": "wrench", "mass": "1.3kg", "count": "3"
.
Corresponds to the JSON property labels
1804 1805 1806 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1804 def labels @labels end |
#node_configs ⇒ Array<Google::Apis::GkeonpremV1::BareMetalNodeConfig>
Required. The list of machine addresses in the bare metal node pool.
Corresponds to the JSON property nodeConfigs
1809 1810 1811 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1809 def node_configs @node_configs end |
#operating_system ⇒ String
Specifies the nodes operating system (default: LINUX).
Corresponds to the JSON property operatingSystem
1814 1815 1816 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1814 def @operating_system end |
#taints ⇒ Array<Google::Apis::GkeonpremV1::NodeTaint>
The initial taints assigned to nodes of this node pool.
Corresponds to the JSON property taints
1819 1820 1821 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1819 def taints @taints end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1826 1827 1828 1829 1830 1831 1832 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1826 def update!(**args) @kubelet_config = args[:kubelet_config] if args.key?(:kubelet_config) @labels = args[:labels] if args.key?(:labels) @node_configs = args[:node_configs] if args.key?(:node_configs) @operating_system = args[:operating_system] if args.key?(:operating_system) @taints = args[:taints] if args.key?(:taints) end |