ALIYUN::EDAS::Cluster is used to create a cluster.
Syntax
{
"Type": "ALIYUN::EDAS::Cluster",
"Properties": {
"VpcId": String,
"NetworkMode": Integer,
"LogicalRegionId": String,
"ClusterName": String,
"ClusterType": Integer,
"OversoldFactor": Integer,
"ResourceGroupId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
VpcId | String | No | No | The ID of the virtual private cloud (VPC). | This property is required if the NetworkMode property is set to 2. |
NetworkMode | Integer | Yes | No | The network type of the cluster. | Valid values:
|
LogicalRegionId | String | No | No | The region ID of the custom namespace. | The region ID is in the format of Physical region ID:Custom namespace identifier . Example: |
ResourceGroupId | String | No | Yes | The ID of the resource group. | None |
ClusterName | String | Yes | No | The name of the cluster. | The name must be 1 to 64 characters in length, and can contain letters, digits, underscores (_), and periods (.). |
ClusterType | Integer | Yes | No | The type of the cluster. | Valid values:
|
OversoldFactor | Integer | No | No | The CPU oversold ratio supported by a Docker cluster. | Valid values:
|
Response parameters
Fn::GetAtt
- ClusterName: the name of the cluster.
- IaasProvider: the service provider.
- ClusterId: the ID of the cluster.
- ClusterType: the type of the cluster.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "VpcId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::VPC::VPCId" } }, "Resources": { "Cluster": { "Type": "ALIYUN::EDAS::Cluster", "Properties": { "LogicalRegionId": { "Fn::Join": [ ":", [ { "Ref": "ALIYUN::Region" }, "prod" ] ] }, "OversoldFactor": 4, "VpcId": { "Ref": "VpcId" }, "ClusterName": "TestCluster", "NetworkMode": 2, "ClusterType": 2 } } }, "Outputs": { "ClusterName": { "Description": "Cluster name", "Value": { "Fn::GetAtt": [ "Cluster", "ClusterName" ] } }, "IaasProvider": { "Description": "Provider", "Value": { "Fn::GetAtt": [ "Cluster", "IaasProvider" ] } }, "ClusterId": { "Description": "Cluster ID", "Value": { "Fn::GetAtt": [ "Cluster", "ClusterId" ] } }, "ClusterType": { "Description": "Cluster type", "Value": { "Fn::GetAtt": [ "Cluster", "ClusterType" ] } } } }