container
v1
|
#include <node_config.h>
Public Member Functions | |
NodeConfig (const Json::Value &storage) | |
NodeConfig (Json::Value *storage) | |
virtual | ~NodeConfig () |
const StringPiece | GetTypeName () const |
bool | has_accelerators () const |
void | clear_accelerators () |
const client::JsonCppArray< AcceleratorConfig > | get_accelerators () const |
client::JsonCppArray< AcceleratorConfig > | mutable_accelerators () |
bool | has_disk_size_gb () const |
void | clear_disk_size_gb () |
int32 | get_disk_size_gb () const |
void | set_disk_size_gb (int32 value) |
bool | has_disk_type () const |
void | clear_disk_type () |
const StringPiece | get_disk_type () const |
void | set_disk_type (const StringPiece &value) |
bool | has_image_type () const |
void | clear_image_type () |
const StringPiece | get_image_type () const |
void | set_image_type (const StringPiece &value) |
bool | has_labels () const |
void | clear_labels () |
const client::JsonCppAssociativeArray< string > | get_labels () const |
client::JsonCppAssociativeArray< string > | mutable_labels () |
bool | has_local_ssd_count () const |
void | clear_local_ssd_count () |
int32 | get_local_ssd_count () const |
void | set_local_ssd_count (int32 value) |
bool | has_machine_type () const |
void | clear_machine_type () |
const StringPiece | get_machine_type () const |
void | set_machine_type (const StringPiece &value) |
bool | has_metadata () const |
void | clear_metadata () |
const client::JsonCppAssociativeArray< string > | get_metadata () const |
client::JsonCppAssociativeArray< string > | mutable_metadata () |
bool | has_min_cpu_platform () const |
void | clear_min_cpu_platform () |
const StringPiece | get_min_cpu_platform () const |
void | set_min_cpu_platform (const StringPiece &value) |
bool | has_oauth_scopes () const |
void | clear_oauth_scopes () |
const client::JsonCppArray< string > | get_oauth_scopes () const |
client::JsonCppArray< string > | mutable_oauthScopes () |
bool | has_preemptible () const |
void | clear_preemptible () |
bool | get_preemptible () const |
void | set_preemptible (bool value) |
bool | has_reservation_affinity () const |
void | clear_reservation_affinity () |
const ReservationAffinity | get_reservation_affinity () const |
ReservationAffinity | mutable_reservationAffinity () |
bool | has_sandbox_config () const |
void | clear_sandbox_config () |
const SandboxConfig | get_sandbox_config () const |
SandboxConfig | mutable_sandboxConfig () |
bool | has_service_account () const |
void | clear_service_account () |
const StringPiece | get_service_account () const |
void | set_service_account (const StringPiece &value) |
bool | has_shielded_instance_config () const |
void | clear_shielded_instance_config () |
const ShieldedInstanceConfig | get_shielded_instance_config () const |
ShieldedInstanceConfig | mutable_shieldedInstanceConfig () |
bool | has_tags () const |
void | clear_tags () |
const client::JsonCppArray< string > | get_tags () const |
client::JsonCppArray< string > | mutable_tags () |
bool | has_taints () const |
void | clear_taints () |
const client::JsonCppArray< NodeTaint > | get_taints () const |
client::JsonCppArray< NodeTaint > | mutable_taints () |
bool | has_workload_metadata_config () const |
void | clear_workload_metadata_config () |
const WorkloadMetadataConfig | get_workload_metadata_config () const |
WorkloadMetadataConfig | mutable_workloadMetadataConfig () |
Static Public Member Functions | |
static NodeConfig * | New () |
Parameters that describe the nodes in a cluster.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'accelerators
' attribute.
|
inline |
Clears the 'diskSizeGb
' attribute.
|
inline |
Clears the 'diskType
' attribute.
|
inline |
Clears the 'imageType
' attribute.
|
inline |
Clears the 'labels
' attribute.
|
inline |
Clears the 'localSsdCount
' attribute.
|
inline |
Clears the 'machineType
' attribute.
|
inline |
Clears the 'metadata
' attribute.
|
inline |
Clears the 'minCpuPlatform
' attribute.
|
inline |
Clears the 'oauthScopes
' attribute.
|
inline |
Clears the 'preemptible
' attribute.
|
inline |
Clears the 'reservationAffinity
' attribute.
|
inline |
Clears the 'sandboxConfig
' attribute.
|
inline |
Clears the 'serviceAccount
' attribute.
|
inline |
Clears the 'shieldedInstanceConfig
' attribute.
|
inline |
Clears the 'tags
' attribute.
|
inline |
Clears the 'taints
' attribute.
|
inline |
Clears the 'workloadMetadataConfig
' attribute.
const client::JsonCppArray<AcceleratorConfig > google_container_api::NodeConfig::get_accelerators | ( | ) | const |
Get a reference to the value of the 'accelerators
' attribute.
|
inline |
Get the value of the 'diskSizeGb
' attribute.
|
inline |
Get the value of the 'diskType
' attribute.
|
inline |
Get the value of the 'imageType
' attribute.
|
inline |
Get a reference to the value of the 'labels
' attribute.
|
inline |
Get the value of the 'localSsdCount
' attribute.
|
inline |
Get the value of the 'machineType
' attribute.
|
inline |
Get a reference to the value of the 'metadata
' attribute.
|
inline |
Get the value of the 'minCpuPlatform
' attribute.
|
inline |
Get a reference to the value of the 'oauthScopes
' attribute.
|
inline |
Get the value of the 'preemptible
' attribute.
const ReservationAffinity google_container_api::NodeConfig::get_reservation_affinity | ( | ) | const |
Get a reference to the value of the 'reservationAffinity
' attribute.
const SandboxConfig google_container_api::NodeConfig::get_sandbox_config | ( | ) | const |
Get a reference to the value of the 'sandboxConfig
' attribute.
|
inline |
Get the value of the 'serviceAccount
' attribute.
const ShieldedInstanceConfig google_container_api::NodeConfig::get_shielded_instance_config | ( | ) | const |
Get a reference to the value of the 'shieldedInstanceConfig
' attribute.
|
inline |
Get a reference to the value of the 'tags
' attribute.
const client::JsonCppArray<NodeTaint > google_container_api::NodeConfig::get_taints | ( | ) | const |
Get a reference to the value of the 'taints
' attribute.
const WorkloadMetadataConfig google_container_api::NodeConfig::get_workload_metadata_config | ( | ) | const |
Get a reference to the value of the 'workloadMetadataConfig
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'accelerators
' attribute was set.
accelerators
' attribute was set.
|
inline |
Determine if the 'diskSizeGb
' attribute was set.
diskSizeGb
' attribute was set.
|
inline |
Determine if the 'diskType
' attribute was set.
diskType
' attribute was set.
|
inline |
Determine if the 'imageType
' attribute was set.
imageType
' attribute was set.
|
inline |
Determine if the 'labels
' attribute was set.
labels
' attribute was set.
|
inline |
Determine if the 'localSsdCount
' attribute was set.
localSsdCount
' attribute was set.
|
inline |
Determine if the 'machineType
' attribute was set.
machineType
' attribute was set.
|
inline |
Determine if the 'metadata
' attribute was set.
metadata
' attribute was set.
|
inline |
Determine if the 'minCpuPlatform
' attribute was set.
minCpuPlatform
' attribute was set.
|
inline |
Determine if the 'oauthScopes
' attribute was set.
oauthScopes
' attribute was set.
|
inline |
Determine if the 'preemptible
' attribute was set.
preemptible
' attribute was set.
|
inline |
Determine if the 'reservationAffinity
' attribute was set.
reservationAffinity
' attribute was set.
|
inline |
Determine if the 'sandboxConfig
' attribute was set.
sandboxConfig
' attribute was set.
|
inline |
Determine if the 'serviceAccount
' attribute was set.
serviceAccount
' attribute was set.
|
inline |
Determine if the 'shieldedInstanceConfig
' attribute was set.
shieldedInstanceConfig
' attribute was set.
|
inline |
Determine if the 'tags
' attribute was set.
tags
' attribute was set.
|
inline |
Determine if the 'taints
' attribute was set.
taints
' attribute was set.
|
inline |
Determine if the 'workloadMetadataConfig
' attribute was set.
workloadMetadataConfig
' attribute was set. client::JsonCppArray<AcceleratorConfig > google_container_api::NodeConfig::mutable_accelerators | ( | ) |
Gets a reference to a mutable value of the 'accelerators
' property.
A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
|
inline |
Gets a reference to a mutable value of the 'labels
' property.
The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version – it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/.
|
inline |
Gets a reference to a mutable value of the 'metadata
' property.
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 reserved keys:
"kube-env"
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.
|
inline |
Gets a reference to a mutable value of the 'oauthScopes
' property.
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.
ReservationAffinity google_container_api::NodeConfig::mutable_reservationAffinity | ( | ) |
Gets a reference to a mutable value of the 'reservationAffinity
' property.
The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this node pool.
SandboxConfig google_container_api::NodeConfig::mutable_sandboxConfig | ( | ) |
Gets a reference to a mutable value of the 'sandboxConfig
' property.
Sandbox configuration for this node.
ShieldedInstanceConfig google_container_api::NodeConfig::mutable_shieldedInstanceConfig | ( | ) |
Gets a reference to a mutable value of the 'shieldedInstanceConfig
' property.
Shielded Instance options.
|
inline |
Gets a reference to a mutable value of the 'tags
' property.
The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.
client::JsonCppArray<NodeTaint > google_container_api::NodeConfig::mutable_taints | ( | ) |
Gets a reference to a mutable value of the 'taints
' property.
List of kubernetes taints to be applied to each node.
For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/.
WorkloadMetadataConfig google_container_api::NodeConfig::mutable_workloadMetadataConfig | ( | ) |
Gets a reference to a mutable value of the 'workloadMetadataConfig
' property.
The workload metadata configuration for this node.
|
static |
Creates a new default instance.
|
inline |
Change the 'diskSizeGb
' attribute.
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.
[in] | value | The new value. |
|
inline |
Change the 'diskType
' attribute.
Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd')
If unspecified, the default disk type is 'pd-standard'.
[in] | value | The new value. |
|
inline |
Change the 'imageType
' attribute.
The image type to use for this node. Note that for a given image type, the latest version of it will be used.
[in] | value | The new value. |
|
inline |
Change the 'localSsdCount
' attribute.
The number of local SSD disks to be attached to the node.
The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.
[in] | value | The new value. |
|
inline |
Change the 'machineType
' attribute.
The name of a Google Compute Engine [machine
n1-standard <dd>1
). If unspecified, the default machine type is n1-standard-1
.
[in] | value | The new value. |
|
inline |
Change the 'minCpuPlatform
' attribute.
Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as
information, read how to specify min CPU platform.
[in] | value | The new value. |
|
inline |
Change the 'preemptible
' attribute.
Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more information about preemptible VM instances.
[in] | value | The new value. |
|
inline |
Change the 'serviceAccount
' attribute.
The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the "default" service account is used.
[in] | value | The new value. |