forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster-member.yml
113 lines (113 loc) · 2.39 KB
/
cluster-member.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建EDAS集群与成员,配置ECS实例组,支持网络与磁盘类型选择,自动加入集群。
en: Create EDAS clusters and members, configure ECS instance groups, facilitate
selection of network and disk types, and enable automatic cluster enrollment.
Parameters:
InstanceType:
Type: String
Default: ecs.c5.large
NetworkMode:
Type: Number
Default: 2
AllowedValues:
- 1
- 2
ClusterType:
Type: Number
Default: 2
AllowedValues:
- 1
- 2
- 3
OversoldFactor:
Type: Number
Default: 2
AllowedValues:
- 2
- 4
- 8
SystemDiskCategory:
Type: String
Description: Category of system disk. Default is cloud_efficiency. support cloud|cloud_efficiency|cloud_ssd|cloud_essd|ephemeral_ssd.Old
instances will not be changed.
Default: cloud_essd
AllowedValues:
- cloud
- cloud_efficiency
- cloud_ssd
- cloud_essd
- ephemeral_ssd
ClusterName:
Type: String
Default: mytest
VpcId:
Type: String
VSwitchId:
Type: String
SecurityGroupId:
Type: String
Password:
Type: String
Default: Admin123
Resources:
Cluster:
Type: ALIYUN::EDAS::Cluster
Properties:
VpcId:
Ref: VpcId
NetworkMode:
Ref: NetworkMode
ClusterName:
Ref: ClusterName
ClusterType:
Ref: ClusterType
OversoldFactor:
Ref: OversoldFactor
DependsOn: ECS
ECS:
Type: ALIYUN::ECS::InstanceGroup
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
SecurityGroupId:
Ref: SecurityGroupId
ImageId: centos_7
InstanceName: mytest
IoOptimized: optimized
MaxAmount: 1
AllocatePublicIP: true
InstanceType:
Ref: InstanceType
SystemDiskCategory:
Ref: SystemDiskCategory
Password: Admin123
ClusterMember:
Type: ALIYUN::EDAS::ClusterMember
Properties:
InstanceIds:
Fn::GetAtt:
- ECS
- InstanceIds
Password:
Ref: Password
ClusterId:
Ref: Cluster
Outputs:
ClusterMemberIds:
Value:
Fn::GetAtt:
- ClusterMember
- ClusterMemberIds
ClusterId:
Value:
Fn::GetAtt:
- ClusterMember
- ClusterId
InstanceIds:
Value:
Fn::GetAtt:
- ClusterMember
- InstanceIds