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.
|
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.
|
String |
getImageType()
The image type to use for this node.
|
Map<String,String> |
getLabels()
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
Integer |
getLocalSsdCount()
The number of local SSD disks to be attached to the node.
|
String |
getMachineType()
The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g.
|
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.
|
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.
|
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.
|
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 |
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 |
setImageType(String imageType)
The image type to use for this node.
|
NodeConfig |
setLabels(Map<String,String> labels)
The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
NodeConfig |
setLocalSsdCount(Integer localSsdCount)
The number of local SSD disks to be attached to the node.
|
NodeConfig |
setMachineType(String machineType)
The name of a Google Compute Engine [machine type](/compute/docs/machine-types) (e.g.
|
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 |
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 |
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 |
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 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 String getImageType()
null for nonepublic NodeConfig setImageType(String imageType)
imageType - imageType or null for nonepublic Map<String,String> getLabels()
null for nonepublic NodeConfig setLabels(Map<String,String> labels)
labels - labels or null for nonepublic Integer getLocalSsdCount()
null for nonepublic NodeConfig setLocalSsdCount(Integer localSsdCount)
localSsdCount - localSsdCount 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 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 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 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–2020 Google. All rights reserved.