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.



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

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



1798
1799
1800
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1798

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>)


1804
1805
1806
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1804

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



1809
1810
1811
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1809

def node_configs
  @node_configs
end

#operating_systemString

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

Returns:

  • (String)


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

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



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