Class: Google::Apis::GkeonpremV1::BareMetalNodePoolConfig

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

BareMetalNodePoolConfig describes the configuration of all nodes within a given bare metal node pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalNodePoolConfig

Returns a new instance of BareMetalNodePoolConfig.



1813
1814
1815
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1813

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kubelet_configGoogle::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



1790
1791
1792
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1790

def kubelet_config
  @kubelet_config
end

#labelsHash<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

Returns:

  • (Hash<String,String>)


1796
1797
1798
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1796

def labels
  @labels
end

#node_configsArray<Google::Apis::GkeonpremV1::BareMetalNodeConfig>

Required. The list of machine addresses in the bare metal node pool. Corresponds to the JSON property nodeConfigs



1801
1802
1803
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1801

def node_configs
  @node_configs
end

#operating_systemString

Specifies the nodes operating system (default: LINUX). Corresponds to the JSON property operatingSystem

Returns:

  • (String)


1806
1807
1808
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1806

def operating_system
  @operating_system
end

#taintsArray<Google::Apis::GkeonpremV1::NodeTaint>

The initial taints assigned to nodes of this node pool. Corresponds to the JSON property taints



1811
1812
1813
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1811

def taints
  @taints
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1818
1819
1820
1821
1822
1823
1824
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1818

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