Class: Google::Apis::ContainerV1::NodeConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb

Overview

Parameters that describe the nodes in a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NodeConfig

Returns a new instance of NodeConfig.


301
302
303
# File 'generated/google/apis/container_v1/classes.rb', line 301

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

Instance Attribute Details

#disk_size_gbFixnum

Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB. Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)

274
275
276
# File 'generated/google/apis/container_v1/classes.rb', line 274

def disk_size_gb
  @disk_size_gb
end

#machine_typeString

The name of a Google Compute Engine machine type (e.g. n1-standard-1). If unspecified, the default machine type is n1- standard-1. Corresponds to the JSON property machineType

Returns:

  • (String)

268
269
270
# File 'generated/google/apis/container_v1/classes.rb', line 268

def machine_type
  @machine_type
end

#metadataHash<String,String>

The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the four reserved keys: "instance-template", "kube-env", " startup-script", and "user-data" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)

299
300
301
# File 'generated/google/apis/container_v1/classes.rb', line 299

def 
  @metadata
end

#oauth_scopesArray<String>

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included: * https://www.googleapis.com/auth/ compute is required for mounting persistent storage on your nodes. * https:// www.googleapis.com/auth/devstorage.read_only is required for communicating with gcr.io (the Google Container Registry). If unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are enabled, in which case their required scopes will be added. Corresponds to the JSON property oauthScopes

Returns:

  • (Array<String>)

286
287
288
# File 'generated/google/apis/container_v1/classes.rb', line 286

def oauth_scopes
  @oauth_scopes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


306
307
308
309
310
311
# File 'generated/google/apis/container_v1/classes.rb', line 306

def update!(**args)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
  @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
  @metadata = args[:metadata] if args.key?(:metadata)
end