ALIYUN::MSE::Cluster is used to create a cluster.
Syntax
{
"Type": "ALIYUN::MSE::Cluster",
"Properties": {
"DiskType": String,
"InstanceCount": Integer,
"PrivateSlbSpecification": String,
"VpcId": String,
"ClusterVersion": String,
"PubNetworkFlow": String,
"ClusterSpecification": String,
"VSwitchId": String,
"PubSlbSpecification": String,
"ClusterType": String,
"NetType": String,
"ClusterAliasName": String,
"AcceptLanguage": String,
"MseVersion": String,
"ConnectionType": String,
"RequestPars": String,
"AclEntryList": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
DiskType | String | No | No | The disk type. | Set the value to alicloud-disk-ssd-multi-zone. |
AcceptLanguage | String | No | No | The language in which you want the results to be displayed. | None. |
MseVersion | String | No | No | The version of the cluster. | Valid values:
|
InstanceCount | Integer | Yes | No | The number of instances. | Valid values: 1 to 9. |
PrivateSlbSpecification | String | No | No | The specification of the internal-facing Server Load Balancer (SLB) instance. | Valid values:
|
VpcId | String | No | No | The ID of the virtual private cloud (VPC). | None. |
ClusterVersion | String | Yes | No | The version of the cluster. | Valid values:
|
PubNetworkFlow | String | No | No | The public bandwidth. | Valid values: 0 to 5000. Unit: Mbit/s. Note A value of 0 indicates that the cluster cannot be connected to the Internet. |
ClusterSpecification | String | Yes | No | The specification of the engine. | Valid values:
|
VSwitchId | String | No | No | The ID of the vSwitch. | None. |
PubSlbSpecification | String | No | No | The specification of the Internet-facing SLB instance. | Valid values:
|
ClusterType | String | Yes | No | The type of the cluster. | Valid values:
|
NetType | String | Yes | No | The network type of the cluster. | Valid values:
|
ClusterAliasName | String | No | Yes | The alias of the cluster. | Fuzzy match is supported. |
ConnectionType | String | No | No | The network connection type of the cluster. | None. |
RequestPars | String | No | No | The extended properties that you want to specify in the request. | The properties must be in the JSON format. |
AclEntryList | List | No | Yes | The IP addresses in the whitelist. | Separate multiple IP addresses with commas (,). |
Return values
Fn::GetAtt
- InternetAddress: the public IP address.
- IntranetAddress: the internal IP address.
- AclEntryList: the IP addresses in the whitelist.
- Cpu: the number of vCPUs.
- InternetPort: the public port.
- IntranetPort: the internal port.
- DiskType: the disk type.
- AppVersion: the version of the application.
- PayInfo: the payment type.
- ClusterName: the name of the cluster.
- IntranetDomain: the internal domain name.
- NetType: the network type.
- ClusterVersion: the version of the cluster.
- InstanceId: the ID of the instance.
- ClusterId: the ID of the cluster.
- InternetDomain: the public domain name.
- AclId: the ID of the access control list (ACL).
- VSwitchId: the ID of the vSwitch.
- ClusterSpecification: the specification of the engine.
- HealthStatus: the health status.
- MemoryCapacity: the memory capacity.
- ClusterType: the type of the cluster.
- ClusterAliasName: the alias of the cluster.
- InstanceCount: the number of instances.
- DiskCapacity: the capacity of the disk.
- VpcId: the ID of the VPC.
- PubNetworkFlow: the public bandwidth.
- ConnectionType: the network connection type.
- MseVersion: the version of the cluster.
- ConfigSecretEnabled: indicates whether the password takes effect.
- MCPEnabled: indicates whether the mesh configuration protocol (MCP) takes effect.
- ConfigAuthEnabled: indicates whether cluster configuration is enabled.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Description": "Test MSE Cluster", "Parameters": { "InstanceCount": { "Type": "Number", "Default": 3, "MinValue": 3, "MaxValue": 5 }, "ClusterVersion": { "Type": "String", "Default": "NACOS_2_0_0", "AllowedValues": [ "ZooKeeper_3_5_5", "ZooKeeper_3_4_14", "NACOS_2_0_0", "NACOS_ANS_1_2_1" ] }, "ClusterType": { "Type": "String", "Default": "Nacos-Ans", "AllowedValues": [ "ZooKeeper", "Nacos-Ans", "Eureka" ] }, "ClusterSpecification": { "Type": "String", "Default": "MSE_SC_2_4_200_c", "AllowedValues": [ "MSE_SC_1_2_200_c", "MSE_SC_2_4_200_c", "MSE_SC_4_8_200_c", "MSE_SC_8_16_200" ] }, "NetType": { "Type": "String", "Default": "pubnet", "AllowedValues": [ "pubnet", "privatenet" ] }, "VpcId": { "Type": "String" }, "VSwitchId": { "Type": "String" }, "PubSlbSpecification": { "Type": "String", "AllowedValues": [ "slb.s1.small", "slb.s3.medium" ], "Default": "slb.s1.small" } }, "Resources": { "MseCluster": { "Type": "ALIYUN::MSE::Cluster", "Properties": { "MseVersion": "mse_pro", "InstanceCount": { "Ref": "InstanceCount" }, "ClusterVersion": { "Ref": "ClusterVersion" }, "PubNetworkFlow": 1, "ClusterType": { "Ref": "ClusterType" }, "ClusterSpecification": { "Ref": "ClusterSpecification" }, "NetType": { "Ref": "NetType" }, "DiskType": "alicloud-disk-ssd-multi-zone", "VpcId": { "Ref": "VpcId" }, "VSwitchId": { "Ref": "VSwitchId" }, "PubSlbSpecification": { "Ref": "PubSlbSpecification" } } } }, "Outputs": { "InstanceId": { "Value": { "Fn::GetAtt": [ "MseCluster", "InstanceId" ] } }, "ClusterId": { "Value": { "Fn::GetAtt": [ "MseCluster", "ClusterId" ] } } } }
For more examples, visit Cluster.json and Cluster.yml.