public class InstanceAdvancedSettings extends AbstractModel
Constructor and Description |
---|
InstanceAdvancedSettings() |
Modifier and Type | Method and Description |
---|---|
DataDisk[] |
getDataDisks()
Get Data disk information
Note: This field may return null, indicating that no valid value was found.
|
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.
|
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.
|
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 Data disk information
Note: This field may return null, indicating that no valid value was found.
|
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 |
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 |
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 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 and then mounted. Please back up your data in advance. This setting is only applicable to CVMs with a single data disk.
Note: This field may return null, indicating that no valid value was found.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
- Data disk information
Note: This field may return null, indicating that no valid value was found.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 © 2020. All rights reserved.