ClusterProps
Properties for defining a Cluster
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-edas-cluster
Initializer
import { ClusterProps } from '@alicloud/ros-cdk-edas'
const clusterProps: ClusterProps = { ... }
Properties
Name | Type | Description |
---|---|---|
clusterName |
string | @alicloud/ros-cdk-core.IResolvable |
Property clusterName: Cluster name. |
clusterType |
number | @alicloud/ros-cdk-core.IResolvable |
Property clusterType: Cluster type. |
networkMode |
number | @alicloud/ros-cdk-core.IResolvable |
Property networkMode: Network Type. |
logicalRegionId |
string | @alicloud/ros-cdk-core.IResolvable |
Property logicalRegionId: Custom namespace RegionId (format: Physical Region: custom namespace identifier). |
oversoldFactor |
number | @alicloud/ros-cdk-core.IResolvable |
Property oversoldFactor: Docker CPU cluster oversold. |
resourceGroupId |
string | @alicloud/ros-cdk-core.IResolvable |
Property resourceGroupId: Resource group id. |
vpcId |
string | @alicloud/ros-cdk-core.IResolvable |
Property vpcId: VPC network ID. |
clusterName
Required
public readonly clusterName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property clusterName: Cluster name.
clusterType
Required
public readonly clusterType: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property clusterType: Cluster type.
1-Swarm cluster, 2-ECS cluster, 3-Kubernetes Cluster
networkMode
Required
public readonly networkMode: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property networkMode: Network Type.
1- classic network, 2-VPC
logicalRegionId
Optional
public readonly logicalRegionId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property logicalRegionId: Custom namespace RegionId (format: Physical Region: custom namespace identifier).
oversoldFactor
Optional
public readonly oversoldFactor: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property oversoldFactor: Docker CPU cluster oversold.
Support 2 (1: 2 ratio) \/ 4 (1: 4) \/ 8 (1: 8 ratio)
resourceGroupId
Optional
public readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: Resource group id.
vpcId
Optional
public readonly vpcId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property vpcId: VPC network ID.
If network selection VPC, this parameter Required