Skip to content

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.

clusterNameRequired

public readonly clusterName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property clusterName: Cluster name.


clusterTypeRequired

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


networkModeRequired

public readonly networkMode: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property networkMode: Network Type.

1- classic network, 2-VPC


logicalRegionIdOptional

public readonly logicalRegionId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property logicalRegionId: Custom namespace RegionId (format: Physical Region: custom namespace identifier).


oversoldFactorOptional

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)


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: Resource group id.


vpcIdOptional

public readonly vpcId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vpcId: VPC network ID.

If network selection VPC, this parameter Required