forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
any-cluster.yml
57 lines (57 loc) · 1.29 KB
/
any-cluster.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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建托管Kubernetes集群,配置服务器less profile,支持特定区域和规格,默认启用SNAT,输出ClusterId与TaskId。
en: Create a managed Kubernetes cluster, configure a serverless profile, support
specific regions and instance types, enable SNAT by default, and output the ClusterId
and TaskId.
Parameters:
RegionId:
Type: String
Default: cn-hangzhou
ClusterType:
Type: String
Default: ManagedKubernetes
Profile:
Type: String
Default: Serverless
ZoneId:
Type: String
Default: cn-hangzhou-i
Name:
Type: String
Default: ros-fvt-test
ClusterSpec:
Type: String
Default: ack.pro.small
Resources:
Cluster:
Type: ALIYUN::CS::AnyCluster
Properties:
ClusterConfig:
region_id:
Ref: RegionId
tags:
- key: test
cluster_type:
Ref: ClusterType
zoneid:
Ref: ZoneId
snat_entry: true
private_zone: false
name:
Ref: Name
cluster_spec:
Ref: ClusterSpec
profile:
Ref: Profile
Outputs:
ClusterId:
Value:
Fn::GetAtt:
- Cluster
- ClusterId
TaskId:
Value:
Fn::GetAtt:
- Cluster
- TaskId