ALIYUN::MSE::Cluster creates a Microservices Engine (MSE) cluster.
Syntax
{
"Type": "ALIYUN::MSE::Cluster",
"Properties": {
"InstanceCount": Integer,
"VpcId": String,
"ClusterVersion": String,
"PubNetworkFlow": Integer,
"ClusterSpecification": String,
"VSwitchId": String,
"EipEnabled": Boolean,
"ChargeType": String,
"SecurityGroupType": String,
"ClusterType": String,
"NetType": String,
"ClusterAliasName": String,
"MseVersion": String,
"ConnectionType": String,
"RequestPars": String,
"AclEntryList": List,
"Tags": List,
"ResourceGroupId": String
}
}
Properties
|
Property name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
ClusterSpecification |
String |
Yes |
No |
The engine specifications. |
Valid values:
|
|
ClusterType |
String |
Yes |
No |
The type of the cluster. |
Valid values:
|
|
ClusterVersion |
String |
Yes |
No |
The version of the cluster. |
Valid values:
|
|
InstanceCount |
Integer |
Yes |
No |
The number of instances. |
Valid values: 1 to 9. |
|
NetType |
String |
Yes |
No |
The network type. |
Valid values:
|
|
AclEntryList |
List |
No |
Yes |
The whitelist. |
Separate multiple IP addresses with commas (,). |
|
ChargeType |
String |
No |
No |
The billing method. |
Valid values are PREPAY (subscription) and POSTPAY (pay-as-you-go). This parameter is ignored for Serverless editions. |
|
ClusterAliasName |
String |
No |
Yes |
The alias of the cluster. |
Fuzzy match is supported. |
|
ConnectionType |
String |
No |
No |
The network connection type. |
None |
|
EipEnabled |
Boolean |
No |
No |
Whether to enable public network access through an Elastic IP Address (EIP). |
This parameter is valid only when ConnectionType is set to
|
|
MseVersion |
String |
No |
No |
The edition of the cluster. |
Valid values:
|
|
PubNetworkFlow |
Integer |
No |
No |
The public bandwidth. |
Valid values: 0 to 5000. Unit: Mbps. Note
A value of 0 indicates that the cluster is not connected to the public network. |
|
RequestPars |
String |
No |
No |
The extended request parameters. |
The parameters are in JSON format. |
|
ResourceGroupId |
String |
No |
Yes |
The ID of the resource group. |
None |
|
SecurityGroupType |
String |
No |
No |
The security group type of the instance. |
This parameter is valid only when ConnectionType is set to |
|
Tags |
List |
No |
Yes |
The custom tags. |
For more information, see Tags properties. |
|
VpcId |
String |
No |
No |
The ID of the VPC. |
None |
|
VSwitchId |
String |
No |
No |
The ID of the vSwitch. |
None |
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
|
Property Name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
Key |
String |
Yes |
No |
The tag key. |
The value must be 1 to 128 characters in length. It cannot start with |
|
Value |
String |
No |
No |
The tag value. |
The value can be 0 to 128 characters in length. It cannot start with |
Return values
Fn::GetAtt
-
InternetAddress: The public endpoint.
-
IntranetAddress: The private endpoint.
-
AclEntryList: The whitelist.
-
Cpu: The number of CPU cores.
-
InternetPort: The interface that connects to the internet.
-
IntranetPort: The private network port.
-
AppVersion: The application version.
-
PayInfo: The billing method.
-
ClusterName: The name of the cluster.
-
IntranetDomain: The internal same-region endpoint.
-
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.
-
DiskType: The disk type.
-
AclId: The ID of the access control list.
-
VSwitchId: The ID of the vSwitch.
-
ClusterSpecification: The engine specifications.
-
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 disk capacity.
-
VpcId: The ID of the VPC.
-
PubNetworkFlow: The public bandwidth.
-
ConnectionType: The network connection type.
-
MseVersion: The edition of the cluster.
-
ConfigSecretEnabled: Indicates whether the configuration password is enabled.
-
MCPEnabled: Indicates whether Mesh Configuration Protocol (MCP) is enabled.
-
ConfigAuthEnabled: Specifies whether cluster configuration is enabled.
-
Arn: The Alibaba Cloud Resource Name (ARN).
Examples
ROSTemplateFormatVersion: '2015-09-01'
Description: Test MSE Cluster
Parameters:
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
VSwitchId:
Type: String
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
AssociationPropertyMetadata:
VpcId: ${VpcId}
Resources:
MseCluster:
Type: ALIYUN::MSE::Cluster
Properties:
MseVersion: mse_pro
InstanceCount: 3
ClusterVersion: NACOS_2_0_0
PubNetworkFlow: 1
ClusterType: Nacos-Ans
ClusterSpecification: MSE_SC_2_4_200_c
NetType: pubnet
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
Outputs:
InstanceId:
Value:
Fn::GetAtt:
- MseCluster
- InstanceId
ClusterId:
Value:
Fn::GetAtt:
- MseCluster
- ClusterId {
"ROSTemplateFormatVersion": "2015-09-01",
"Description": "Test MSE Cluster",
"Parameters": {
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
},
"VSwitchId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}"
}
}
},
"Resources": {
"MseCluster": {
"Type": "ALIYUN::MSE::Cluster",
"Properties": {
"MseVersion": "mse_pro",
"InstanceCount": 3,
"ClusterVersion": "NACOS_2_0_0",
"PubNetworkFlow": 1,
"ClusterType": "Nacos-Ans",
"ClusterSpecification": "MSE_SC_2_4_200_c",
"NetType": "pubnet",
"VpcId": {
"Ref": "VpcId"
},
"VSwitchId": {
"Ref": "VSwitchId"
}
}
}
},
"Outputs": {
"InstanceId": {
"Value": {
"Fn::GetAtt": [
"MseCluster",
"InstanceId"
]
}
},
"ClusterId": {
"Value": {
"Fn::GetAtt": [
"MseCluster",
"ClusterId"
]
}
}
}
}