
ksyun.client.kce.addclusterinstances.v20190806.AddClusterInstancesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ksyun-java-sdk Show documentation
Show all versions of ksyun-java-sdk Show documentation
The KSYUN Web Services SDK for Java provides Java APIs
for building software on KSYUN' cost-effective, scalable, and reliable
infrastructure products. The KSYUN Java SDK allows developers to code
against APIs for all of KSYUN's infrastructure web services (KSC
S3, KSC KEC, KSC RDS etc).
The newest version!
package ksyun.client.kce.addclusterinstances.v20190806;
import common.annotation.KsYunField;
import lombok.Data;
import lombok.ToString;
import java.util.List;
/**
* @Classname AddClusterInstancesRequest
* @Description 请求参数
*/
@Data
public class AddClusterInstancesRequest {
/**
* 集群id
*/
@KsYunField(name = "ClusterId")
private String ClusterId;
/**
* 建议仅填写一条InstanceSet数据,不要填写多条。
*/
@KsYunField(name = "InstanceSet")
private List InstanceSetList;
@Data
@ToString
public static class InstanceSetDto {
/**
* 节点角色,有效值:Worker
*/
@KsYunField(name = "NodeRole")
private String NodeRole;
/**
* 定义节点的配置,支持普通云主机和专属云主机。
* 节点配置信息使用云主机/专属云主机创建透传参数,json化字符串格式,详见云主机创建实例接口和专属云主机创建实例接口
*/
@KsYunField(name = "NodePara")
private List NodeParaList;
/**
* 节点高级设置
*/
@KsYunField(name = "AdvancedSetting")
private AdvancedSettingDto AdvancedSettingList;
@Data
@ToString
public static class AdvancedSettingDto {
/**
* 数据盘挂载设置,仅针对于第一块数据盘生效
*/
@KsYunField(name = "DataDisk")
private DataDiskDto DataDiskList;
/**
* 容器运行时,根据集群版本和需求选择
* Kubernetes版本<1.24时,有效值:
* - docker
* - containerd
* Kubernetes版本≥1.24时,有效值:
* - contained
* 默认值:docker
*/
@KsYunField(name = "ContainerRuntime")
private String ContainerRuntime;
/**
* 容器的存储路径,不填写的话默认为/data/container
*/
@KsYunField(name = "ContainerPath")
private String ContainerPath;
/**
* base64 编码的用户脚本, 此脚本会在 节点上k8s 组件运行后执行, 需要用户保证脚本的可重入及重试逻辑,脚本和生成的日志的文件可在录/usr/local/ksyun/kce/userscript路径查看
*/
@KsYunField(name = "UserScript")
private String UserScript;
/**
* base64 编码的用户脚本, 此脚本会在节点上 k8s 组件运行前执行, 需要用户保证脚本的可重入及重试逻辑,脚本和生成的日志的文件可在录/usr/local/ksyun/kce/pre_userscript路径查看
*/
@KsYunField(name = "PreUserScript")
private String PreUserScript;
/**
* 节点加入集群后是否可以正常调度,默认值:true
*/
@KsYunField(name = "Schedulable")
private Boolean Schedulable;
/**
* 节点加入集群时预置的标签
*/
@KsYunField(name = "Label")
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy