class Google::Apis::ContainerV1::NodeConfig

Parameters that describe the nodes in a cluster.

Attributes

disk_size_gb[RW]

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` @return [Fixnum]

machine_type[RW]

The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If unspecified, the default machine type is `n1- standard-1`. Corresponds to the JSON property `machineType` @return [String]

metadata[RW]

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` @return [Hash<String,String>]

oauth_scopes[RW]

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: * `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](/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` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/container_v1/classes.rb, line 286
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/container_v1/classes.rb, line 291
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