NodeConfig class

Parameters that describe the nodes in a cluster.

GKE Autopilot clusters do not recognize parameters in NodeConfig. Use AutoprovisioningNodePoolDefaults instead.

Constructors

NodeConfig({List<AcceleratorConfig>? accelerators, AdvancedMachineFeatures? advancedMachineFeatures, String? bootDiskKmsKey, ConfidentialNodes? confidentialNodes, ContainerdConfig? containerdConfig, int? diskSizeGb, String? diskType, bool? enableConfidentialStorage, EphemeralStorageLocalSsdConfig? ephemeralStorageLocalSsdConfig, FastSocket? fastSocket, GcfsConfig? gcfsConfig, VirtualNIC? gvnic, String? imageType, NodeKubeletConfig? kubeletConfig, Map<String, String>? labels, LinuxNodeConfig? linuxNodeConfig, LocalNvmeSsdBlockConfig? localNvmeSsdBlockConfig, int? localSsdCount, NodePoolLoggingConfig? loggingConfig, String? machineType, Map<String, String>? metadata, String? minCpuPlatform, String? nodeGroup, List<String>? oauthScopes, bool? preemptible, ReservationAffinity? reservationAffinity, Map<String, String>? resourceLabels, ResourceManagerTags? resourceManagerTags, SandboxConfig? sandboxConfig, SecondaryBootDiskUpdateStrategy? secondaryBootDiskUpdateStrategy, List<SecondaryBootDisk>? secondaryBootDisks, String? serviceAccount, ShieldedInstanceConfig? shieldedInstanceConfig, SoleTenantConfig? soleTenantConfig, bool? spot, List<String>? tags, List<NodeTaint>? taints, WindowsNodeConfig? windowsNodeConfig, WorkloadMetadataConfig? workloadMetadataConfig})
NodeConfig.fromJson(Map json_)

Properties

accelerators List<AcceleratorConfig>?
A list of hardware accelerators to be attached to each node.
getter/setter pair
advancedMachineFeatures AdvancedMachineFeatures?
Advanced features for the Compute Engine VM.
getter/setter pair
bootDiskKmsKey String?
The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool.
getter/setter pair
confidentialNodes ConfidentialNodes?
Confidential nodes config.
getter/setter pair
containerdConfig ContainerdConfig?
Parameters for containerd customization.
getter/setter pair
diskSizeGb int?
Size of the disk attached to each node, specified in GB.
getter/setter pair
diskType String?
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'
getter/setter pair
enableConfidentialStorage bool?
Reserved for future use.
getter/setter pair
ephemeralStorageLocalSsdConfig EphemeralStorageLocalSsdConfig?
Parameters for the node ephemeral storage using Local SSDs.
getter/setter pair
fastSocket FastSocket?
Enable or disable NCCL fast socket for the node pool.
getter/setter pair
gcfsConfig GcfsConfig?
Google Container File System (image streaming) configs.
getter/setter pair
gvnic VirtualNIC?
Enable or disable gvnic in the node pool.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imageType String?
The image type to use for this node.
getter/setter pair
kubeletConfig NodeKubeletConfig?
Node kubelet configs.
getter/setter pair
labels Map<String, String>?
The map of Kubernetes labels (key/value pairs) to be applied to each node.
getter/setter pair
linuxNodeConfig LinuxNodeConfig?
Parameters that can be configured on Linux nodes.
getter/setter pair
localNvmeSsdBlockConfig LocalNvmeSsdBlockConfig?
Parameters for using raw-block Local NVMe SSDs.
getter/setter pair
localSsdCount int?
The number of local SSD disks to be attached to the node.
getter/setter pair
loggingConfig NodePoolLoggingConfig?
Logging configuration.
getter/setter pair
machineType String?
The name of a Google Compute Engine machine type If unspecified, the default machine type is e2-medium.
getter/setter pair
metadata Map<String, String>?
The metadata key/value pairs assigned to instances in the cluster.
getter/setter pair
minCpuPlatform String?
Minimum CPU platform to be used by this instance.
getter/setter pair
nodeGroup String?
Setting this field will assign instances of this pool to run on the specified node group.
getter/setter pair
oauthScopes List<String>?
The set of Google API scopes to be made available on all of the node VMs under the "default" service account.
getter/setter pair
preemptible bool?
Whether the nodes are created as preemptible VM instances.
getter/setter pair
reservationAffinity ReservationAffinity?
The optional reservation affinity.
getter/setter pair
resourceLabels Map<String, String>?
The resource labels for the node pool to use to annotate any related Google Compute Engine resources.
getter/setter pair
resourceManagerTags ResourceManagerTags?
A map of resource manager tag keys and values to be attached to the nodes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sandboxConfig SandboxConfig?
Sandbox configuration for this node.
getter/setter pair
secondaryBootDisks List<SecondaryBootDisk>?
List of secondary boot disks attached to the nodes.
getter/setter pair
secondaryBootDiskUpdateStrategy SecondaryBootDiskUpdateStrategy?
Secondary boot disk update strategy.
getter/setter pair
serviceAccount String?
The Google Cloud Platform Service Account to be used by the node VMs.
getter/setter pair
shieldedInstanceConfig ShieldedInstanceConfig?
Shielded Instance options.
getter/setter pair
soleTenantConfig SoleTenantConfig?
Parameters for node pools to be backed by shared sole tenant node groups.
getter/setter pair
spot bool?
Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.
getter/setter pair
tags List<String>?
The list of instance tags applied to all nodes.
getter/setter pair
taints List<NodeTaint>?
List of kubernetes taints to be applied to each node.
getter/setter pair
windowsNodeConfig WindowsNodeConfig?
Parameters that can be configured on Windows nodes.
getter/setter pair
workloadMetadataConfig WorkloadMetadataConfig?
The workload metadata configuration for this node.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited