public final class NodeConfig extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Kubernetes Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
NodeConfig() |
| Modifier and Type | Method and Description |
|---|---|
NodeConfig |
clone() |
List<AcceleratorConfig> |
getAccelerators()
A list of hardware accelerators to be attached to each node.
|
AdvancedMachineFeatures |
getAdvancedMachineFeatures()
Advanced features for the Compute Engine VM.
|
String |
getBootDiskKmsKey()
The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the
node pool.
|
ConfidentialNodes |
getConfidentialNodes()
Confidential nodes config.
|
Integer |
getDiskSizeGb()
Size of the disk attached to each node, specified in GB.
|
String |
getDiskType()
Type of the disk attached to each node (e.g.
|
EphemeralStorageConfig |
getEphemeralStorageConfig()
Parameters for the ephemeral storage filesystem.
|
GcfsConfig |
getGcfsConfig()
GCFS (Google Container File System) configs.
|
VirtualNIC |
getGvnic()
Enable or disable gvnic on the node pool.
|
String |
getImageType()
The image type to use for this node.
|
NodeKubeletConfig |
getKubeletConfig()
Node kubelet configs.
|
Map<String,String> |
getLabels()
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
LinuxNodeConfig |
getLinuxNodeConfig()
Parameters that can be configured on Linux nodes.
|
Integer |
getLocalSsdCount()
The number of local SSD disks to be attached to the node.
|
NodePoolLoggingConfig |
getLoggingConfig()
Logging configuration.
|
String |
getMachineType()
The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs
/machine-types).
|
Map<String,String> |
getMetadata()
The metadata key/value pairs assigned to instances in the cluster.
|
String |
getMinCpuPlatform()
Minimum CPU platform to be used by this instance.
|
String |
getNodeGroup()
Setting this field will assign instances of this pool to run on the specified node group.
|
List<String> |
getOauthScopes()
The set of Google API scopes to be made available on all of the node VMs under the "default"
service account.
|
Boolean |
getPreemptible()
Whether the nodes are created as preemptible VM instances.
|
ReservationAffinity |
getReservationAffinity()
The optional reservation affinity.
|
Map<String,String> |
getResourceLabels()
The resource labels for the node pool to use to annotate any related Google Compute Engine
resources.
|
SandboxConfig |
getSandboxConfig()
Sandbox configuration for this node.
|
String |
getServiceAccount()
The Google Cloud Platform Service Account to be used by the node VMs.
|
ShieldedInstanceConfig |
getShieldedInstanceConfig()
Shielded Instance options.
|
Boolean |
getSpot()
Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.
|
List<String> |
getTags()
The list of instance tags applied to all nodes.
|
List<NodeTaint> |
getTaints()
List of kubernetes taints to be applied to each node.
|
WorkloadMetadataConfig |
getWorkloadMetadataConfig()
The workload metadata configuration for this node.
|
NodeConfig |
set(String fieldName,
Object value) |
NodeConfig |
setAccelerators(List<AcceleratorConfig> accelerators)
A list of hardware accelerators to be attached to each node.
|
NodeConfig |
setAdvancedMachineFeatures(AdvancedMachineFeatures advancedMachineFeatures)
Advanced features for the Compute Engine VM.
|
NodeConfig |
setBootDiskKmsKey(String bootDiskKmsKey)
The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the
node pool.
|
NodeConfig |
setConfidentialNodes(ConfidentialNodes confidentialNodes)
Confidential nodes config.
|
NodeConfig |
setDiskSizeGb(Integer diskSizeGb)
Size of the disk attached to each node, specified in GB.
|
NodeConfig |
setDiskType(String diskType)
Type of the disk attached to each node (e.g.
|
NodeConfig |
setEphemeralStorageConfig(EphemeralStorageConfig ephemeralStorageConfig)
Parameters for the ephemeral storage filesystem.
|
NodeConfig |
setGcfsConfig(GcfsConfig gcfsConfig)
GCFS (Google Container File System) configs.
|
NodeConfig |
setGvnic(VirtualNIC gvnic)
Enable or disable gvnic on the node pool.
|
NodeConfig |
setImageType(String imageType)
The image type to use for this node.
|
NodeConfig |
setKubeletConfig(NodeKubeletConfig kubeletConfig)
Node kubelet configs.
|
NodeConfig |
setLabels(Map<String,String> labels)
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
NodeConfig |
setLinuxNodeConfig(LinuxNodeConfig linuxNodeConfig)
Parameters that can be configured on Linux nodes.
|
NodeConfig |
setLocalSsdCount(Integer localSsdCount)
The number of local SSD disks to be attached to the node.
|
NodeConfig |
setLoggingConfig(NodePoolLoggingConfig loggingConfig)
Logging configuration.
|
NodeConfig |
setMachineType(String machineType)
The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs
/machine-types).
|
NodeConfig |
setMetadata(Map<String,String> metadata)
The metadata key/value pairs assigned to instances in the cluster.
|
NodeConfig |
setMinCpuPlatform(String minCpuPlatform)
Minimum CPU platform to be used by this instance.
|
NodeConfig |
setNodeGroup(String nodeGroup)
Setting this field will assign instances of this pool to run on the specified node group.
|
NodeConfig |
setOauthScopes(List<String> oauthScopes)
The set of Google API scopes to be made available on all of the node VMs under the "default"
service account.
|
NodeConfig |
setPreemptible(Boolean preemptible)
Whether the nodes are created as preemptible VM instances.
|
NodeConfig |
setReservationAffinity(ReservationAffinity reservationAffinity)
The optional reservation affinity.
|
NodeConfig |
setResourceLabels(Map<String,String> resourceLabels)
The resource labels for the node pool to use to annotate any related Google Compute Engine
resources.
|
NodeConfig |
setSandboxConfig(SandboxConfig sandboxConfig)
Sandbox configuration for this node.
|
NodeConfig |
setServiceAccount(String serviceAccount)
The Google Cloud Platform Service Account to be used by the node VMs.
|
NodeConfig |
setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig)
Shielded Instance options.
|
NodeConfig |
setSpot(Boolean spot)
Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.
|
NodeConfig |
setTags(List<String> tags)
The list of instance tags applied to all nodes.
|
NodeConfig |
setTaints(List<NodeTaint> taints)
List of kubernetes taints to be applied to each node.
|
NodeConfig |
setWorkloadMetadataConfig(WorkloadMetadataConfig workloadMetadataConfig)
The workload metadata configuration for this node.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<AcceleratorConfig> getAccelerators()
null for nonepublic NodeConfig setAccelerators(List<AcceleratorConfig> accelerators)
accelerators - accelerators or null for nonepublic AdvancedMachineFeatures getAdvancedMachineFeatures()
null for nonepublic NodeConfig setAdvancedMachineFeatures(AdvancedMachineFeatures advancedMachineFeatures)
advancedMachineFeatures - advancedMachineFeatures or null for nonepublic String getBootDiskKmsKey()
null for nonepublic NodeConfig setBootDiskKmsKey(String bootDiskKmsKey)
bootDiskKmsKey - bootDiskKmsKey or null for nonepublic ConfidentialNodes getConfidentialNodes()
null for nonepublic NodeConfig setConfidentialNodes(ConfidentialNodes confidentialNodes)
confidentialNodes - confidentialNodes or null for nonepublic Integer getDiskSizeGb()
null for nonepublic NodeConfig setDiskSizeGb(Integer diskSizeGb)
diskSizeGb - diskSizeGb or null for nonepublic String getDiskType()
null for nonepublic NodeConfig setDiskType(String diskType)
diskType - diskType or null for nonepublic EphemeralStorageConfig getEphemeralStorageConfig()
null for nonepublic NodeConfig setEphemeralStorageConfig(EphemeralStorageConfig ephemeralStorageConfig)
ephemeralStorageConfig - ephemeralStorageConfig or null for nonepublic GcfsConfig getGcfsConfig()
null for nonepublic NodeConfig setGcfsConfig(GcfsConfig gcfsConfig)
gcfsConfig - gcfsConfig or null for nonepublic VirtualNIC getGvnic()
null for nonepublic NodeConfig setGvnic(VirtualNIC gvnic)
gvnic - gvnic or null for nonepublic String getImageType()
null for nonepublic NodeConfig setImageType(String imageType)
imageType - imageType or null for nonepublic NodeKubeletConfig getKubeletConfig()
null for nonepublic NodeConfig setKubeletConfig(NodeKubeletConfig kubeletConfig)
kubeletConfig - kubeletConfig or null for nonepublic Map<String,String> getLabels()
null for nonepublic NodeConfig setLabels(Map<String,String> labels)
labels - labels or null for nonepublic LinuxNodeConfig getLinuxNodeConfig()
null for nonepublic NodeConfig setLinuxNodeConfig(LinuxNodeConfig linuxNodeConfig)
linuxNodeConfig - linuxNodeConfig or null for nonepublic Integer getLocalSsdCount()
null for nonepublic NodeConfig setLocalSsdCount(Integer localSsdCount)
localSsdCount - localSsdCount or null for nonepublic NodePoolLoggingConfig getLoggingConfig()
null for nonepublic NodeConfig setLoggingConfig(NodePoolLoggingConfig loggingConfig)
loggingConfig - loggingConfig or null for nonepublic String getMachineType()
null for nonepublic NodeConfig setMachineType(String machineType)
machineType - machineType or null for nonepublic Map<String,String> getMetadata()
null for nonepublic NodeConfig setMetadata(Map<String,String> metadata)
metadata - metadata or null for nonepublic String getMinCpuPlatform()
null for nonepublic NodeConfig setMinCpuPlatform(String minCpuPlatform)
minCpuPlatform - minCpuPlatform or null for nonepublic String getNodeGroup()
null for nonepublic NodeConfig setNodeGroup(String nodeGroup)
nodeGroup - nodeGroup or null for nonepublic List<String> getOauthScopes()
null for nonepublic NodeConfig setOauthScopes(List<String> oauthScopes)
oauthScopes - oauthScopes or null for nonepublic Boolean getPreemptible()
null for nonepublic NodeConfig setPreemptible(Boolean preemptible)
preemptible - preemptible or null for nonepublic ReservationAffinity getReservationAffinity()
null for nonepublic NodeConfig setReservationAffinity(ReservationAffinity reservationAffinity)
reservationAffinity - reservationAffinity or null for nonepublic Map<String,String> getResourceLabels()
null for nonepublic NodeConfig setResourceLabels(Map<String,String> resourceLabels)
resourceLabels - resourceLabels or null for nonepublic SandboxConfig getSandboxConfig()
null for nonepublic NodeConfig setSandboxConfig(SandboxConfig sandboxConfig)
sandboxConfig - sandboxConfig or null for nonepublic String getServiceAccount()
null for nonepublic NodeConfig setServiceAccount(String serviceAccount)
serviceAccount - serviceAccount or null for nonepublic ShieldedInstanceConfig getShieldedInstanceConfig()
null for nonepublic NodeConfig setShieldedInstanceConfig(ShieldedInstanceConfig shieldedInstanceConfig)
shieldedInstanceConfig - shieldedInstanceConfig or null for nonepublic Boolean getSpot()
null for nonepublic NodeConfig setSpot(Boolean spot)
spot - spot or null for nonepublic List<String> getTags()
null for nonepublic NodeConfig setTags(List<String> tags)
tags - tags or null for nonepublic List<NodeTaint> getTaints()
null for nonepublic NodeConfig setTaints(List<NodeTaint> taints)
taints - taints or null for nonepublic WorkloadMetadataConfig getWorkloadMetadataConfig()
null for nonepublic NodeConfig setWorkloadMetadataConfig(WorkloadMetadataConfig workloadMetadataConfig)
workloadMetadataConfig - workloadMetadataConfig or null for nonepublic NodeConfig set(String fieldName, Object value)
set in class GenericJsonpublic NodeConfig clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.