ManagedEdgeKubernetesClusterProps
Properties for defining a ManagedEdgeKubernetesCluster
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cs-managededgekubernetescluster
Initializer
import com.aliyun.ros.cdk.cs.ManagedEdgeKubernetesClusterProps;
ManagedEdgeKubernetesClusterProps.builder()
.name(java.lang.String)
.name(IResolvable)
.numOfNodes(java.lang.Number)
.numOfNodes(IResolvable)
// .addons(IResolvable)
// .addons(java.util.List<IResolvable)
// .addons(AddonsProperty>)
// .autoRenew(java.lang.Boolean)
// .autoRenew(IResolvable)
// .autoRenewPeriod(java.lang.Number)
// .autoRenewPeriod(IResolvable)
// .chargeType(java.lang.String)
// .chargeType(IResolvable)
// .cloudMonitorFlags(java.lang.Boolean)
// .cloudMonitorFlags(IResolvable)
// .clusterSpec(java.lang.String)
// .clusterSpec(IResolvable)
// .containerCidr(java.lang.String)
// .containerCidr(IResolvable)
// .deletionProtection(java.lang.Boolean)
// .deletionProtection(IResolvable)
// .disableRollback(java.lang.Boolean)
// .disableRollback(IResolvable)
// .endpointPublicAccess(java.lang.Boolean)
// .endpointPublicAccess(IResolvable)
// .isEnterpriseSecurityGroup(java.lang.Boolean)
// .isEnterpriseSecurityGroup(IResolvable)
// .keyPair(java.lang.String)
// .keyPair(IResolvable)
// .loginPassword(java.lang.String)
// .loginPassword(IResolvable)
// .nodeCidrMask(java.lang.String)
// .nodeCidrMask(IResolvable)
// .period(java.lang.Number)
// .period(IResolvable)
// .periodUnit(java.lang.String)
// .periodUnit(IResolvable)
// .profile(java.lang.String)
// .profile(IResolvable)
// .proxyMode(java.lang.String)
// .proxyMode(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .serviceCidr(java.lang.String)
// .serviceCidr(IResolvable)
// .snatEntry(java.lang.Boolean)
// .snatEntry(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .timeoutMins(java.lang.Number)
// .timeoutMins(IResolvable)
// .vpcId(java.lang.String)
// .vpcId(IResolvable)
// .vSwitchIds(java.util.List<java.lang.Object>)
// .vSwitchIds(IResolvable)
// .workerDataDisk(java.lang.Boolean)
// .workerDataDisk(IResolvable)
// .workerDataDiskCategory(java.lang.String)
// .workerDataDiskCategory(IResolvable)
// .workerDataDisks(IResolvable)
// .workerDataDisks(java.util.List<IResolvable)
// .workerDataDisks(WorkerDataDisksProperty>)
// .workerDataDiskSize(java.lang.Number)
// .workerDataDiskSize(IResolvable)
// .workerInstanceTypes(IResolvable)
// .workerInstanceTypes(java.util.List<java.lang.String)
// .workerInstanceTypes(IResolvable>)
// .workerSystemDiskCategory(java.lang.String)
// .workerSystemDiskCategory(IResolvable)
// .workerSystemDiskSize(java.lang.Number)
// .workerSystemDiskSize(IResolvable)
// .zoneIds(IResolvable)
// .zoneIds(java.util.List<java.lang.String)
// .zoneIds(IResolvable>)
.build();
Properties
Name | Type | Description |
---|---|---|
name |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property name: The name of the cluster. |
numOfNodes |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property numOfNodes: Number of worker nodes. |
addons |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property addons: The add-ons to be installed for the cluster. |
autoRenew |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenew: Whether the cluster automatically renews. |
autoRenewPeriod |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenewPeriod: Automatic renewal cycle, which takes effect when prepaid and automatic renewal are selected, and is required: When PeriodUnit = Week, the values are: {"1", "2", "3"} When PeriodUnit = Month, the value is {"1", "2", "3", "6", "12"} Default to 1. |
chargeType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property chargeType: cluster payment type. |
cloudMonitorFlags |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property cloudMonitorFlags: Whether to install the cloud monitoring plugin: true: indicates installation false: Do not install Default to false. |
clusterSpec |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clusterSpec: The edge managed cluster spec. |
containerCidr |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property containerCidr: The container network segment cannot conflict with the VPC network segment. |
deletionProtection |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property deletionProtection: Specifies whether to enable deletion protection for the cluster. |
disableRollback |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property disableRollback: Whether the failure was rolled back: true: indicates that it fails to roll back false: rollback failed The default is true. |
endpointPublicAccess |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property endpointPublicAccess: Whether to enable the public network API Server: true: which means that the public network API Server is open. |
isEnterpriseSecurityGroup |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property isEnterpriseSecurityGroup: Specifies whether to create an advanced security group. |
keyPair |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property keyPair: Key pair name. |
loginPassword |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property loginPassword: SSH login password. |
nodeCidrMask |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property nodeCidrMask: The maximum number of IP addresses that can be assigned to nodes. |
period |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property period: The duration of the annual subscription and monthly subscription. |
periodUnit |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property periodUnit: When you specify PrePaid, you need to specify the period. |
profile |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property profile: Edge cluster ID. |
proxyMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property proxyMode: kube-proxy proxy mode, supports both iptables and ipvs modes. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: The ID of resource group. |
serviceCidr |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property serviceCidr: The service network segment cannot conflict with the VPC network segment and the container network segment. |
snatEntry |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property snatEntry: Whether to configure SNAT for the network. |
tags |
java.util.List<TagsProperty> |
Property tags: Tag the cluster. |
timeoutMins |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property timeoutMins: Cluster resource stack creation timeout, in minutes. |
vpcId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcId: VPC ID. |
vSwitchIds |
java.util.List |
Property vSwitchIds: The virtual switch ID of the worker node. |
workerDataDisk |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property workerDataDisk: Whether to mount the data disk. |
workerDataDiskCategory |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property workerDataDiskCategory: Data disk type. |
workerDataDisks |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property workerDataDisks: A combination of configurations such as worker data disk type and size. |
workerDataDiskSize |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property workerDataDiskSize: Data disk size in GiB. |
workerInstanceTypes |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property workerInstanceTypes: Worker node ECS specification type code. |
workerSystemDiskCategory |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property workerSystemDiskCategory: Worker node system disk type. |
workerSystemDiskSize |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property workerSystemDiskSize: Worker disk system disk size, the unit is GiB. |
zoneIds |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property zoneIds: Zone ids of worker node virtual switches belongs to. |
name
Required
public java.lang.Object getName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the cluster.
The cluster name can use uppercase and lowercase letters, Chinese characters, numbers, and dashes.
numOfNodes
Required
public java.lang.Object getNumOfNodes();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property numOfNodes: Number of worker nodes.
The range is [0,300]
addons
Optional
public java.lang.Object getAddons();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
AddonsProperty>
Property addons: The add-ons to be installed for the cluster.
autoRenew
Optional
public java.lang.Object getAutoRenew();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Whether the cluster automatically renews.
It takes effect when the value of ChargeType is PrePaid. The optional values are: true: automatic renewal false: do not renew automatically Default to true.
autoRenewPeriod
Optional
public java.lang.Object getAutoRenewPeriod();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenewPeriod: Automatic renewal cycle, which takes effect when prepaid and automatic renewal are selected, and is required: When PeriodUnit = Week, the values are: {"1", "2", "3"} When PeriodUnit = Month, the value is {"1", "2", "3", "6", "12"} Default to 1.
chargeType
Optional
public java.lang.Object getChargeType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property chargeType: cluster payment type.
The optional values are: PrePaid: prepaid PostPaid: Pay as you go Default to PostPaid.
cloudMonitorFlags
Optional
public java.lang.Object getCloudMonitorFlags();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property cloudMonitorFlags: Whether to install the cloud monitoring plugin: true: indicates installation false: Do not install Default to false.
clusterSpec
Optional
public java.lang.Object getClusterSpec();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterSpec: The edge managed cluster spec.
Value: ack.pro.small: Professional hosting cluster, namely: "ACK Pro version cluster". ack.standard: Standard hosting cluster. Default value: ack.standard. The value can be empty. When it is empty, a standard managed cluster will be created.
containerCidr
Optional
public java.lang.Object getContainerCidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property containerCidr: The container network segment cannot conflict with the VPC network segment.
When the system is selected to automatically create a VPC, the network segment 172.16.0.0/16 is used by default.
deletionProtection
Optional
public java.lang.Object getDeletionProtection();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deletionProtection: Specifies whether to enable deletion protection for the cluster.
After deletion protection is enabled, the cluster cannot be deleted in the ACK console or by calling API operations. Valid values:true: enables deletion protection for the cluster. false: disables deletion protection for the cluster. Default value: false.
disableRollback
Optional
public java.lang.Object getDisableRollback();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property disableRollback: Whether the failure was rolled back: true: indicates that it fails to roll back false: rollback failed The default is true.
If rollback fails, resources produced during the creation process will be released. False is not recommended.
endpointPublicAccess
Optional
public java.lang.Object getEndpointPublicAccess();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property endpointPublicAccess: Whether to enable the public network API Server: true: which means that the public network API Server is open.
false: If set to false, the API server on the public network will not be created, only the API server on the private network will be created.Default to true.
isEnterpriseSecurityGroup
Optional
public java.lang.Object getIsEnterpriseSecurityGroup();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property isEnterpriseSecurityGroup: Specifies whether to create an advanced security group.
This parameter takes effect only if security_group_id is left empty. Note You must specify an advanced security group for a cluster that has Terway installed. true: creates an advanced security group. false: does not create an advanced security group. Default value: false.
keyPair
Optional
public java.lang.Object getKeyPair();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property keyPair: Key pair name.
Specify one of KeyPair or LoginPassword.
loginPassword
Optional
public java.lang.Object getLoginPassword();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property loginPassword: SSH login password.
Password rules are 8-30 characters and contain three items (upper and lower case letters, numbers, and special symbols). Specify one of KeyPair or LoginPassword.
nodeCidrMask
Optional
public java.lang.Object getNodeCidrMask();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property nodeCidrMask: The maximum number of IP addresses that can be assigned to nodes.
This number is determined by the specified pod CIDR block. This parameter takes effect only if the cluster uses the Flannel plug-in.Default value: 25.
period
Optional
public java.lang.Object getPeriod();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property period: The duration of the annual subscription and monthly subscription.
It takes effect when the ChargeType value is PrePaid and is a required value. The value range is: When PeriodUnit = Week, Period values are: {"1", "2", "3", "4"} When PeriodUnit = Month, Period values are: {"1", "2", "3", "4", "5", "6", "7", "8", "9", "12", "24", "36", "48", "60"} When PeriodUnit = Year, Period values are: {"1", "2", "3", "4", "5"} Default to 1.
periodUnit
Optional
public java.lang.Object getPeriodUnit();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property periodUnit: When you specify PrePaid, you need to specify the period.
The options are: Week: Time is measured in weeks Month: time in months Year: time in years Default to Month
profile
Optional
public java.lang.Object getProfile();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property profile: Edge cluster ID.
The default value is Edge.
proxyMode
Optional
public java.lang.Object getProxyMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property proxyMode: kube-proxy proxy mode, supports both iptables and ipvs modes.
The default is iptables.
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of resource group.
serviceCidr
Optional
public java.lang.Object getServiceCidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceCidr: The service network segment cannot conflict with the VPC network segment and the container network segment.
When the system is selected to automatically create a VPC, the network segment 172.19.0.0/20 is used by default.
snatEntry
Optional
public java.lang.Object getSnatEntry();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property snatEntry: Whether to configure SNAT for the network.
When a VPC can access the public network environment, set it to false. When an existing VPC cannot access the public network environment: When set to True, SNAT is configured and the public network environment can be accessed at this time. If set to false, it means that SNAT is not configured and the public network environment cannot be accessed at this time. Default to true.
tags
Optional
public java.util.List<TagsProperty> getTags();
- Type: java.util.List<TagsProperty>
Property tags: Tag the cluster.
timeoutMins
Optional
public java.lang.Object getTimeoutMins();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property timeoutMins: Cluster resource stack creation timeout, in minutes.
The default value is 60.
vpcId
Optional
public java.lang.Object getVpcId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: VPC ID.
If not set, the system will automatically create a VPC, and the VPC network segment created by the system is 192.168.0.0/16. VpcId and VSwitchId can only be empty at the same time or set the corresponding values at the same time.
vSwitchIds
Optional
public java.lang.Object getVSwitchIds();
- Type: java.util.List
OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchIds: The virtual switch ID of the worker node.
workerDataDisk
Optional
public java.lang.Object getWorkerDataDisk();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property workerDataDisk: Whether to mount the data disk.
The options are as follows: true: indicates that the worker node mounts data disks. false: indicates that the worker node does not mount data disks. Default to false.
workerDataDiskCategory
Optional
public java.lang.Object getWorkerDataDiskCategory();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property workerDataDiskCategory: Data disk type.
workerDataDisks
Optional
public java.lang.Object getWorkerDataDisks();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
WorkerDataDisksProperty>
Property workerDataDisks: A combination of configurations such as worker data disk type and size.
This parameter is valid only when the worker node data disk is mounted.
workerDataDiskSize
Optional
public java.lang.Object getWorkerDataDiskSize();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property workerDataDiskSize: Data disk size in GiB.
workerInstanceTypes
Optional
public java.lang.Object getWorkerInstanceTypes();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property workerInstanceTypes: Worker node ECS specification type code.
For more details, see Instance Specification Family.
workerSystemDiskCategory
Optional
public java.lang.Object getWorkerSystemDiskCategory();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property workerSystemDiskCategory: Worker node system disk type.
Default to cloud_efficiency.
workerSystemDiskSize
Optional
public java.lang.Object getWorkerSystemDiskSize();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property workerSystemDiskSize: Worker disk system disk size, the unit is GiB.
Default to 120.
zoneIds
Optional
public java.lang.Object getZoneIds();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property zoneIds: Zone ids of worker node virtual switches belongs to.