ALIYUN::CS::Cluster__资源列表_资源编排-阿里云
ALIYUN::CS::Cluster 类型可用于创建阿里云 Docker 集群
语法
{
"Type" : "ALIYUN::CS::Cluster",
"Properties" : {
"VpcId" : String,
"Name" : String,
"ImageId" : String,
"VSwitchId" : String,
"SubnetCidr" : String,
"Password" : String,
"InstanceType" : String,
"ZoneId" : String,
"Size" : Integer
}
}
属性
属性名称 | 类型 | 必须 | 描述 | 约束 |
Name | string | 是 | 指定Docker集群的名称 | 名称为1-64个字符,可包含数字、汉字、英文字符,或”-“ |
InstanceType | string | 是 | 指定创建Docker集群所用 ECS 的规格 | |
Size | integer | 是 | 指定集群使用多少台 ECS 实例 | |
VpcId | string | 否 | 指定专有网络 ID | |
ImageId | string | 否 | 指定 ECS 实例所用的镜像 ID | |
VSwitchId | string | 否 | 指定 VpcId 下的虚拟交换机 ID | |
SubnetCidr | string | 否 | 指定 Docker 容器的子网地址. | 允许的子网段为:172.17.0.0/24 - 172.31.0.0/24. 确保此网段不能和专有网络相同 |
Password | string | 否 | 指定 ECS 实例的登录密码 | 实例的密码。8 - 30 个字符,同时包含大小写字母和数字,不支持特殊符号 |
ZoneId | string | 否 | 指定创建 Cluster 的可用区 |
返回值
Fn::GetAtt
- MasterUrl 集群的主 URL 地址
- Ca CA 证书
- ClusterId 集群 ID
- Cert 客户端证书
- Key 客户端主键
示例
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"MyCluster": {
"Properties": {
"InstanceType": "ecs.s1.small",
"Name": "stormcluster",
"Password": "Test1234",
"Size": "1"
},
"Type": "ALIYUN::CS::Cluster"
}
},
"Outputs": {
"CaCert": {
"Description": "CA cert of the cluster.",
"Value": {
"Fn::GetAtt": [
"MyCluster",
"Ca"
]
}
},
"ClientCert": {
"Description": "Client cert of the cluster.",
"Value": {
"Fn::GetAtt": [
"MyCluster",
"Cert"
]
}
},
"ClientKey": {
"Description": "Client key of the cluster.",
"Value": {
"Fn::GetAtt": [
"MyCluster",
"Key"
]
}
},
"ClusterId": {
"Description": "Id of the cluster.",
"Value": {
"Fn::GetAtt": [
"MyCluster",
"ClusterId"
]
}
},
"Endpoints": {
"Description": "Endpoints of the app.",
"Value": {
"Fn::GetAtt": [
"App",
"Endpoints"
]
}
},
"MasterUrl": {
"Description": "Master url of the cluster.",
"Value": {
"Fn::GetAtt": [
"MyCluster",
"MasterUrl"
]
}
}
}
}
最后更新:2016-12-20 17:12:42
上一篇:
ALIYUN::CS::App__资源列表_资源编排-阿里云
下一篇:
ALIYUN::ECS::BandwidthPackage__资源列表_资源编排-阿里云
PageRank__示例程序_图模型_大数据计算服务-阿里云
伸缩服务实例__应用API列表_API参考_容器服务-阿里云
容器自动伸缩__日志和监控_用户指南_容器服务-阿里云
路况预测__解决方案_平台介绍_数加平台介绍-阿里云
规则引擎服务协议__相关协议_平台介绍_数加平台介绍-阿里云
添加域名分组__域名分组接口_API文档_云解析-阿里云
日志管理__开发人员指南_消息服务-阿里云
负载均衡实例是否支持不同的OS__后端 ECS 服务器常见问题_常见问题_负载均衡-阿里云
查找数据__数据管理手册_用户操作指南_大数据开发套件-阿里云
查询分库列表__数据库管理_开放API_分布式关系型数据库 DRDS-阿里云
相关内容
常见错误说明__附录_大数据计算服务-阿里云
发送短信接口__API使用手册_短信服务-阿里云
接口文档__Android_安全组件教程_移动安全-阿里云
运营商错误码(联通)__常见问题_短信服务-阿里云
设置短信模板__使用手册_短信服务-阿里云
OSS 权限问题及排查__常见错误及排除_最佳实践_对象存储 OSS-阿里云
消息通知__操作指南_批量计算-阿里云
设备端快速接入(MQTT)__快速开始_阿里云物联网套件-阿里云
查询API调用流量数据__API管理相关接口_API_API 网关-阿里云
使用STS访问__JavaScript-SDK_SDK 参考_对象存储 OSS-阿里云