Struct google_container1::NodeConfig
[−]
[src]
pub struct NodeConfig { pub disk_size_gb: Option<i32>, pub machine_type: Option<String>, pub oauth_scopes: Option<Vec<String>>, pub metadata: Option<HashMap<String, String>>, }
Parameters that describe the nodes in a cluster.
This type is not used in any activity, and only used as part of another schema.
Fields
disk_size_gb: Option<i32>
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.
machine_type: Option<String>
The name of a Google Compute Engine machine type (e.g. n1-standard-1
). If unspecified, the default machine type is n1-standard-1
.
oauth_scopes: Option<Vec<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.
metadata: Option<HashMap<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.
Trait Implementations
impl Debug for NodeConfig
[src]
impl Clone for NodeConfig
[src]
fn clone(&self) -> NodeConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for NodeConfig
[src]
fn default() -> NodeConfig
Returns the "default value" for a type. Read more