public class InstanceAdvancedSettings extends AbstractModel
Constructor and Description |
---|
InstanceAdvancedSettings() |
InstanceAdvancedSettings(InstanceAdvancedSettings source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
DataDisk[] |
getDataDisks()
Get Mounting information of multiple data disks.
|
Long |
getDesiredPodNumber()
Get When the custom PodCIDR mode is enabled for the cluster, you can specify the maximum number of pods per node.
|
String |
getDockerGraphPath()
Get Specified value of dockerd --graph.
|
InstanceExtraArgs |
getExtraArgs()
Get Information about node custom parameters
Note: This field may return null, indicating that no valid value was found.
|
GPUArgs |
getGPUArgs()
Get GPU driver parameters
Note: This field may return `null`, indicating that no valid value can be obtained.
|
Label[] |
getLabels()
Get Node label array
Note: This field may return null, indicating that no valid value was found.
|
String |
getMountTarget()
Get Data disk mount point.
|
String |
getPreStartUserScript()
Get Specifies the base64-encoded custom script to be executed before initialization of the node.
|
Taint[] |
getTaints()
Get Node taint
Note: This field may return `null`, indicating that no valid value can be obtained.
|
Long |
getUnschedulable()
Get Sets whether the added node is schedulable.
|
String |
getUserScript()
Get Base64-encoded user script, which will be executed after the K8s component starts running.
|
void |
setDataDisks(DataDisk[] DataDisks)
Set Mounting information of multiple data disks.
|
void |
setDesiredPodNumber(Long DesiredPodNumber)
Set When the custom PodCIDR mode is enabled for the cluster, you can specify the maximum number of pods per node.
|
void |
setDockerGraphPath(String DockerGraphPath)
Set Specified value of dockerd --graph.
|
void |
setExtraArgs(InstanceExtraArgs ExtraArgs)
Set Information about node custom parameters
Note: This field may return null, indicating that no valid value was found.
|
void |
setGPUArgs(GPUArgs GPUArgs)
Set GPU driver parameters
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setLabels(Label[] Labels)
Set Node label array
Note: This field may return null, indicating that no valid value was found.
|
void |
setMountTarget(String MountTarget)
Set Data disk mount point.
|
void |
setPreStartUserScript(String PreStartUserScript)
Set Specifies the base64-encoded custom script to be executed before initialization of the node.
|
void |
setTaints(Taint[] Taints)
Set Node taint
Note: This field may return `null`, indicating that no valid value can be obtained.
|
void |
setUnschedulable(Long Unschedulable)
Set Sets whether the added node is schedulable.
|
void |
setUserScript(String UserScript)
Set Base64-encoded user script, which will be executed after the K8s component starts running.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public InstanceAdvancedSettings()
public InstanceAdvancedSettings(InstanceAdvancedSettings source)
public Long getDesiredPodNumber()
public void setDesiredPodNumber(Long DesiredPodNumber)
DesiredPodNumber
- When the custom PodCIDR mode is enabled for the cluster, you can specify the maximum number of pods per node.
Note: this field may return `null`, indicating that no valid values can be obtained.public GPUArgs getGPUArgs()
public void setGPUArgs(GPUArgs GPUArgs)
GPUArgs
- GPU driver parameters
Note: This field may return `null`, indicating that no valid value can be obtained.public String getPreStartUserScript()
public void setPreStartUserScript(String PreStartUserScript)
PreStartUserScript
- Specifies the base64-encoded custom script to be executed before initialization of the node. It’s only valid for adding existing nodes for now.
Note: this field may return `null`, indicating that no valid values can be obtained.public Taint[] getTaints()
public void setTaints(Taint[] Taints)
Taints
- Node taint
Note: This field may return `null`, indicating that no valid value can be obtained.public String getMountTarget()
public void setMountTarget(String MountTarget)
MountTarget
- Data disk mount point. By default, no data disk is mounted. Data disks in ext3, ext4, or XFS file system formats will be mounted directly, while data disks in other file systems and unformatted data disks will automatically be formatted as ext4 (xfs for tlinux system) and then mounted. Please back up your data in advance. This setting is only applicable to CVMs with a single data disk.
Note: in multi-disk scenarios, use the DataDisks data structure below to set the corresponding information, such as cloud disk type, cloud disk size, mount path, and whether to perform formatting.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getDockerGraphPath()
public void setDockerGraphPath(String DockerGraphPath)
DockerGraphPath
- Specified value of dockerd --graph. Default value: /var/lib/docker
Note: This field may return null, indicating that no valid value was found.public String getUserScript()
public void setUserScript(String UserScript)
UserScript
- Base64-encoded user script, which will be executed after the K8s component starts running. You need to ensure the reentrant and retry logic of the script. The script and its log files can be viewed at the node path: /data/ccs_userscript/. If you want to initialize nodes before adding them to the scheduling list, you can use this parameter together with the unschedulable parameter. After the final initialization of userScript is completed, add the kubectl uncordon nodename --kubeconfig=/root/.kube/config command to enable the node for scheduling.
Note: This field may return null, indicating that no valid value was found.public Long getUnschedulable()
public void setUnschedulable(Long Unschedulable)
Unschedulable
- Sets whether the added node is schedulable. 0 (default): schedulable; other values: unschedulable. After node initialization is completed, you can run kubectl uncordon nodename to enable this node for scheduling.public Label[] getLabels()
public void setLabels(Label[] Labels)
Labels
- Node label array
Note: This field may return null, indicating that no valid value was found.public DataDisk[] getDataDisks()
public void setDataDisks(DataDisk[] DataDisks)
DataDisks
- Mounting information of multiple data disks. When you create a node, ensure that the CVM purchase parameter specifies the information required for the purchase of multiple data disks. For example, the `DataDisks` under `RunInstancesPara` of the `CreateClusterInstances` API should be configured accordingly (Referto document of CreateClusterInstances API). When you add an existing node, ensure that the specified partition exists in the node.
Note: this field may return `null`, indicating that no valid values can be obtained.public InstanceExtraArgs getExtraArgs()
public void setExtraArgs(InstanceExtraArgs ExtraArgs)
ExtraArgs
- Information about node custom parameters
Note: This field may return null, indicating that no valid value was found.Copyright © 2023. All rights reserved.