Class NodeConfig.Builder (2.12.0)

public static final class NodeConfig.Builder extends GeneratedMessageV3.Builder<NodeConfig.Builder> implements NodeConfigOrBuilder

Parameters that describe the nodes in a cluster. GKE Autopilot clusters do not recognize parameters in NodeConfig. Use AutoprovisioningNodePoolDefaults instead.

Protobuf type google.container.v1beta1.NodeConfig

Implements

NodeConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAccelerators(AcceleratorConfig value)

public NodeConfig.Builder addAccelerators(AcceleratorConfig value)

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.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
valueAcceleratorConfig
Returns
TypeDescription
NodeConfig.Builder

addAccelerators(AcceleratorConfig.Builder builderForValue)

public NodeConfig.Builder addAccelerators(AcceleratorConfig.Builder builderForValue)

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.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

addAccelerators(int index, AcceleratorConfig value)

public NodeConfig.Builder addAccelerators(int index, AcceleratorConfig value)

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.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
NodeConfig.Builder

addAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public NodeConfig.Builder addAccelerators(int index, AcceleratorConfig.Builder builderForValue)

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.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

addAcceleratorsBuilder()

public AcceleratorConfig.Builder addAcceleratorsBuilder()

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.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Returns
TypeDescription
AcceleratorConfig.Builder

addAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder addAcceleratorsBuilder(int index)

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.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

addAllAccelerators(Iterable<? extends AcceleratorConfig> values)

public NodeConfig.Builder addAllAccelerators(Iterable<? extends AcceleratorConfig> values)

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.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1beta1.AcceleratorConfig>
Returns
TypeDescription
NodeConfig.Builder

addAllOauthScopes(Iterable<String> values)

public NodeConfig.Builder addAllOauthScopes(Iterable<String> values)

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:

repeated string oauth_scopes = 3;

Parameter
NameDescription
valuesIterable<String>

The oauthScopes to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addAllTags(Iterable<String> values)

public NodeConfig.Builder addAllTags(Iterable<String> values)

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.

repeated string tags = 8;

Parameter
NameDescription
valuesIterable<String>

The tags to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addAllTaints(Iterable<? extends NodeTaint> values)

public NodeConfig.Builder addAllTaints(Iterable<? extends NodeTaint> values)

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/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1beta1.NodeTaint>
Returns
TypeDescription
NodeConfig.Builder

addOauthScopes(String value)

public NodeConfig.Builder addOauthScopes(String value)

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:

repeated string oauth_scopes = 3;

Parameter
NameDescription
valueString

The oauthScopes to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addOauthScopesBytes(ByteString value)

public NodeConfig.Builder addOauthScopesBytes(ByteString value)

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:

repeated string oauth_scopes = 3;

Parameter
NameDescription
valueByteString

The bytes of the oauthScopes to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NodeConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeConfig.Builder
Overrides

addTags(String value)

public NodeConfig.Builder addTags(String value)

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.

repeated string tags = 8;

Parameter
NameDescription
valueString

The tags to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public NodeConfig.Builder addTagsBytes(ByteString value)

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.

repeated string tags = 8;

Parameter
NameDescription
valueByteString

The bytes of the tags to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addTaints(NodeTaint value)

public NodeConfig.Builder addTaints(NodeTaint value)

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/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameter
NameDescription
valueNodeTaint
Returns
TypeDescription
NodeConfig.Builder

addTaints(NodeTaint.Builder builderForValue)

public NodeConfig.Builder addTaints(NodeTaint.Builder builderForValue)

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/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameter
NameDescription
builderForValueNodeTaint.Builder
Returns
TypeDescription
NodeConfig.Builder

addTaints(int index, NodeTaint value)

public NodeConfig.Builder addTaints(int index, NodeTaint value)

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/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameters
NameDescription
indexint
valueNodeTaint
Returns
TypeDescription
NodeConfig.Builder

addTaints(int index, NodeTaint.Builder builderForValue)

public NodeConfig.Builder addTaints(int index, NodeTaint.Builder builderForValue)

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/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameters
NameDescription
indexint
builderForValueNodeTaint.Builder
Returns
TypeDescription
NodeConfig.Builder

addTaintsBuilder()

public NodeTaint.Builder addTaintsBuilder()

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/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Returns
TypeDescription
NodeTaint.Builder

addTaintsBuilder(int index)

public NodeTaint.Builder addTaintsBuilder(int index)

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/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameter
NameDescription
indexint
Returns
TypeDescription
NodeTaint.Builder

build()

public NodeConfig build()
Returns
TypeDescription
NodeConfig

buildPartial()

public NodeConfig buildPartial()
Returns
TypeDescription
NodeConfig

clear()

public NodeConfig.Builder clear()
Returns
TypeDescription
NodeConfig.Builder
Overrides

clearAccelerators()

public NodeConfig.Builder clearAccelerators()

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.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Returns
TypeDescription
NodeConfig.Builder

clearAdvancedMachineFeatures()

public NodeConfig.Builder clearAdvancedMachineFeatures()

Advanced features for the Compute Engine VM.

.google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26;

Returns
TypeDescription
NodeConfig.Builder

clearBootDiskKmsKey()

public NodeConfig.Builder clearBootDiskKmsKey()

The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption

string boot_disk_kms_key = 23;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearConfidentialNodes()

public NodeConfig.Builder clearConfidentialNodes()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 35;

Returns
TypeDescription
NodeConfig.Builder

clearDiskSizeGb()

public NodeConfig.Builder clearDiskSizeGb()

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.

int32 disk_size_gb = 2;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearDiskType()

public NodeConfig.Builder clearDiskType()

Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'

string disk_type = 12;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearEphemeralStorageConfig()

public NodeConfig.Builder clearEphemeralStorageConfig()

Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.

.google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24;

Returns
TypeDescription
NodeConfig.Builder

clearEphemeralStorageLocalSsdConfig()

public NodeConfig.Builder clearEphemeralStorageLocalSsdConfig()

Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config

.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

Returns
TypeDescription
NodeConfig.Builder

clearFastSocket()

public NodeConfig.Builder clearFastSocket()

Enable or disable NCCL fast socket for the node pool.

optional .google.container.v1beta1.FastSocket fast_socket = 36;

Returns
TypeDescription
NodeConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public NodeConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NodeConfig.Builder
Overrides

clearGcfsConfig()

public NodeConfig.Builder clearGcfsConfig()

GCFS (Google Container File System) configs.

.google.container.v1beta1.GcfsConfig gcfs_config = 25;

Returns
TypeDescription
NodeConfig.Builder

clearGvnic()

public NodeConfig.Builder clearGvnic()

Enable or disable gvnic on the node pool.

.google.container.v1beta1.VirtualNIC gvnic = 29;

Returns
TypeDescription
NodeConfig.Builder

clearImageType()

public NodeConfig.Builder clearImageType()

The image type to use for this node. Note that for a given image type, the latest version of it will be used.

string image_type = 5;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearKubeletConfig()

public NodeConfig.Builder clearKubeletConfig()

Node kubelet configs.

.google.container.v1beta1.NodeKubeletConfig kubelet_config = 22;

Returns
TypeDescription