ALIYUN::MSE::Cluster类型用于创建集群。
语法
{
"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
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
DiskType | String | 否 | 否 | 磁盘类型。 | 取值:alicloud-disk-ssd-multi-zone。 |
InstanceCount | Integer | 是 | 否 | 实例数。 | 取值范围:1~5。 |
PrivateSlbSpecification | String | 否 | 否 | 私网SLB规格。 | 取值:
|
VpcId | String | 否 | 否 | 专有网络ID。 | 无 |
ClusterVersion | String | 是 | 否 | 集群版本。 | 取值:
|
PubNetworkFlow | String | 否 | 否 | 公网带宽。 | 取值范围:0~5000。
单位:Mbps。 说明 0表示不接入公网。
|
ClusterSpecification | String | 是 | 否 | 引擎规格。 | 取值:
|
VSwitchId | String | 否 | 否 | 交换机ID。 | 无 |
PubSlbSpecification | String | 否 | 否 | 公网SLB规格。 | 取值:
|
ClusterType | String | 是 | 否 | 集群类型。 | 取值:
|
NetType | String | 是 | 否 | 网络类型。 | 取值:
|
返回值
Fn::GetAtt
- InternetAddress:公网地址。
- IntranetAddress:私网地址。
- AclEntryList:白名单列表。
- Cpu:CPU数量。
- InternetPort:公网接口。
- IntranetPort:私网接口。
- DiskType:磁盘类型。
- AppVersion:App版本。
- PayInfo:付费类型。
- ClusterName:集群名称。
- IntranetDomain:内网域名。
- NetType:网络类型。
- ClusterVersion:集群版本。
- InstanceId:实例ID。
- ClusterId:集群ID。
- InternetDomain:公网域名。
- AclId:访问控制列表ID。
- VSwitchId:交换机ID。
- ClusterSpecification:引擎规格。
- HealthStatus:健康状态。
- MemoryCapacity:内存容量。
- ClusterType:集群类型。
- OrderId:订单ID。
- ClusterAliasName:集群别名。
- InstanceCount:实例数量。
- DiskCapacity:磁盘容量。
- VpcId:专有网络ID。
- PubNetworkFlow:公网带宽。
- RegionId:地域ID。
- InitStatus:集群创建状态。
示例
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DiskType": {
"Type": "String",
"Description": "disk type"
},
"PrivateSlbSpecification": {
"Type": "String",
"Description": ""
},
"InstanceCount": {
"Type": "Number",
"Description": "instance count"
},
"VpcId": {
"Type": "String",
"Description": "vpc id"
},
"ClusterVersion": {
"Type": "String",
"Description": "cluster version, Enum: ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3"
},
"PubNetworkFlow": {
"Type": "String",
"Description": "pub network flow"
},
"ClusterSpecification": {
"Type": "String",
"Description": "cluster specification, Enum: MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c"
},
"VSwitchId": {
"Type": "String",
"Description": "switcher Id"
},
"PubSlbSpecification": {
"Type": "String",
"Description": ""
},
"ClusterType": {
"Type": "String",
"Description": "cluster type"
},
"NetType": {
"Type": "String",
"Description": "network type, Enum: privatenet,pubnet"
}
},
"Resources": {
"MSECluster": {
"Type": "ALIYUN::MSE::Cluster",
"Properties": {
"DiskType": {
"Ref": "DiskType"
},
"PrivateSlbSpecification": {
"Ref": "PrivateSlbSpecification"
},
"InstanceCount": {
"Ref": "InstanceCount"
},
"VpcId": {
"Ref": "VpcId"
},
"ClusterVersion": {
"Ref": "ClusterVersion"
},
"PubNetworkFlow": {
"Ref": "PubNetworkFlow"
},
"ClusterSpecification": {
"Ref": "ClusterSpecification"
},
"VSwitchId": {
"Ref": "VSwitchId"
},
"PubSlbSpecification": {
"Ref": "PubSlbSpecification"
},
"ClusterType": {
"Ref": "ClusterType"
},
"NetType": {
"Ref": "NetType"
}
}
}
},
"Outputs": {
"InternetAddress": {
"Description": "internet address",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"InternetAddress"
]
}
},
"AclEntryList": {
"Description": "acl entry list",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"AclEntryList"
]
}
},
"Cpu": {
"Description": "cpu core size",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"Cpu"
]
}
},
"InternetPort": {
"Description": "internet port",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"InternetPort"
]
}
},
"IntranetPort": {
"Description": "intranet port",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"IntranetPort"
]
}
},
"DiskType": {
"Description": "disk type",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"DiskType"
]
}
},
"AppVersion": {
"Description": "app version",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"AppVersion"
]
}
},
"PayInfo": {
"Description": "pay info",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"PayInfo"
]
}
},
"ClusterName": {
"Description": "cluster name",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"ClusterName"
]
}
},
"IntranetDomain": {
"Description": "intranet domain",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"IntranetDomain"
]
}
},
"NetType": {
"Description": "network type, Enum: privatenet,pubnet",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"NetType"
]
}
},
"ClusterVersion": {
"Description": "cluster version, Enum: ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"ClusterVersion"
]
}
},
"InstanceId": {
"Description": "instance id",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"InstanceId"
]
}
},
"ClusterId": {
"Description": "cluster id",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"ClusterId"
]
}
},
"InternetDomain": {
"Description": "internet domain",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"InternetDomain"
]
}
},
"AclId": {
"Description": "acl id",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"AclId"
]
}
},
"VSwitchId": {
"Description": "switcher Id",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"VSwitchId"
]
}
},
"ClusterSpecification": {
"Description": "cluster specification, Enum: MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"ClusterSpecification"
]
}
},
"HealthStatus": {
"Description": "health status",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"HealthStatus"
]
}
},
"MemoryCapacity": {
"Description": "memory capacity",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"MemoryCapacity"
]
}
},
"ClusterType": {
"Description": "cluster type",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"ClusterType"
]
}
},
"OrderId": {
"Description": "order id",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"OrderId"
]
}
},
"ClusterAliasName": {
"Description": "cluster alias name",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"ClusterAliasName"
]
}
},
"InstanceCount": {
"Description": "instance count",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"InstanceCount"
]
}
},
"IntranetAddress": {
"Description": "intranet address",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"IntranetAddress"
]
}
},
"DiskCapacity": {
"Description": "disk capacity, unit: G",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"DiskCapacity"
]
}
},
"VpcId": {
"Description": "vpc id",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"VpcId"
]
}
},
"PubNetworkFlow": {
"Description": "pub network flow",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"PubNetworkFlow"
]
}
},
"RegionId": {
"Description": "region id",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"RegionId"
]
}
},
"InitStatus": {
"Description": "init status, Enum: INIT_ING, INIT_FAILED, INIT_SUCCESS, INIT_TIME_OUT,DESTROY_ING, DESTROY_FAILED, DESTROY_SUCCESS, RESTART_ING, RESTART_SUCCESS, RESTART_FAILED, SCALE_ING, SCALE_SUCCESS, SCALE_FAILED",
"Value": {
"Fn::GetAtt": [
"MSECluster",
"InitStatus"
]
}
}
}
}
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DiskType:
Type: String
Description: disk type
PrivateSlbSpecification:
Type: String
Description: ''
InstanceCount:
Type: Number
Description: instance count
VpcId:
Type: String
Description: vpc id
ClusterVersion:
Type: String
Description: >-
cluster version, Enum:
ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3
PubNetworkFlow:
Type: String
Description: pub network flow
ClusterSpecification:
Type: String
Description: >-
cluster specification, Enum:
MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c
VSwitchId:
Type: String
Description: switcher Id
PubSlbSpecification:
Type: String
Description: ''
ClusterType:
Type: String
Description: cluster type
NetType:
Type: String
Description: 'network type, Enum: privatenet,pubnet'
Resources:
MSECluster:
Type: 'ALIYUN::MSE::Cluster'
Properties:
DiskType:
Ref: DiskType
PrivateSlbSpecification:
Ref: PrivateSlbSpecification
InstanceCount:
Ref: InstanceCount
VpcId:
Ref: VpcId
ClusterVersion:
Ref: ClusterVersion
PubNetworkFlow:
Ref: PubNetworkFlow
ClusterSpecification:
Ref: ClusterSpecification
VSwitchId:
Ref: VSwitchId
PubSlbSpecification:
Ref: PubSlbSpecification
ClusterType:
Ref: ClusterType
NetType:
Ref: NetType
Outputs:
InternetAddress:
Description: internet address
Value:
'Fn::GetAtt':
- MSECluster
- InternetAddress
AclEntryList:
Description: acl entry list
Value:
'Fn::GetAtt':
- MSECluster
- AclEntryList
Cpu:
Description: cpu core size
Value:
'Fn::GetAtt':
- MSECluster
- Cpu
InternetPort:
Description: internet port
Value:
'Fn::GetAtt':
- MSECluster
- InternetPort
IntranetPort:
Description: intranet port
Value:
'Fn::GetAtt':
- MSECluster
- IntranetPort
DiskType:
Description: disk type
Value:
'Fn::GetAtt':
- MSECluster
- DiskType
AppVersion:
Description: app version
Value:
'Fn::GetAtt':
- MSECluster
- AppVersion
PayInfo:
Description: pay info
Value:
'Fn::GetAtt':
- MSECluster
- PayInfo
ClusterName:
Description: cluster name
Value:
'Fn::GetAtt':
- MSECluster
- ClusterName
IntranetDomain:
Description: intranet domain
Value:
'Fn::GetAtt':
- MSECluster
- IntranetDomain
NetType:
Description: 'network type, Enum: privatenet,pubnet'
Value:
'Fn::GetAtt':
- MSECluster
- NetType
ClusterVersion:
Description: >-
cluster version, Enum:
ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3
Value:
'Fn::GetAtt':
- MSECluster
- ClusterVersion
InstanceId:
Description: instance id
Value:
'Fn::GetAtt':
- MSECluster
- InstanceId
ClusterId:
Description: cluster id
Value:
'Fn::GetAtt':
- MSECluster
- ClusterId
InternetDomain:
Description: internet domain
Value:
'Fn::GetAtt':
- MSECluster
- InternetDomain
AclId:
Description: acl id
Value:
'Fn::GetAtt':
- MSECluster
- AclId
VSwitchId:
Description: switcher Id
Value:
'Fn::GetAtt':
- MSECluster
- VSwitchId
ClusterSpecification:
Description: >-
cluster specification, Enum:
MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c
Value:
'Fn::GetAtt':
- MSECluster
- ClusterSpecification
HealthStatus:
Description: health status
Value:
'Fn::GetAtt':
- MSECluster
- HealthStatus
MemoryCapacity:
Description: memory capacity
Value:
'Fn::GetAtt':
- MSECluster
- MemoryCapacity
ClusterType:
Description: cluster type
Value:
'Fn::GetAtt':
- MSECluster
- ClusterType
OrderId:
Description: order id
Value:
'Fn::GetAtt':
- MSECluster
- OrderId
ClusterAliasName:
Description: cluster alias name
Value:
'Fn::GetAtt':
- MSECluster
- ClusterAliasName
InstanceCount:
Description: instance count
Value:
'Fn::GetAtt':
- MSECluster
- InstanceCount
IntranetAddress:
Description: intranet address
Value:
'Fn::GetAtt':
- MSECluster
- IntranetAddress
DiskCapacity:
Description: 'disk capacity, unit: G'
Value:
'Fn::GetAtt':
- MSECluster
- DiskCapacity
VpcId:
Description: vpc id
Value:
'Fn::GetAtt':
- MSECluster
- VpcId
PubNetworkFlow:
Description: pub network flow
Value:
'Fn::GetAtt':
- MSECluster
- PubNetworkFlow
RegionId:
Description: region id
Value:
'Fn::GetAtt':
- MSECluster
- RegionId
InitStatus:
Description: >-
init status, Enum: INIT_ING, INIT_FAILED, INIT_SUCCESS,
INIT_TIME_OUT,DESTROY_ING, DESTROY_FAILED, DESTROY_SUCCESS, RESTART_ING,
RESTART_SUCCESS, RESTART_FAILED, SCALE_ING, SCALE_SUCCESS, SCALE_FAILED
Value:
'Fn::GetAtt':
- MSECluster
- InitStatus
在文档使用中是否遇到以下问题
更多建议
匿名提交