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.



2012
2013
2014
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2012

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



1989
1990
1991
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1989

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


1995
1996
1997
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1995

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



2000
2001
2002
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2000

def node_configs
  @node_configs
end

#operating_systemString

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

Returns:

  • (String)


2005
2006
2007
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2005

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



2010
2011
2012
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2010

def taints
  @taints
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2017
2018
2019
2020
2021
2022
2023
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2017

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