-
Notifications
You must be signed in to change notification settings - Fork 35
/
image-cache.yml
48 lines (48 loc) · 1.25 KB
/
image-cache.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
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建ECI ImageCache,管理镜像缓存,配置安全组、VSwitch与EIP,提升容器启动速度。
en: Establish an ECI (Elastic Container Instance) Image Cache, facilitate image
cache management, configure Security Groups, Virtual Switches (VSwitches), and
Elastic IP Addresses (EIPs) to enhance container startup times.
Parameters:
Image:
Type: Json
Description: The image list to be cached.
Default: '["busybox"]'
MaxLength: 20
SecurityGroupId:
Type: String
Description: Security group ID.
VSwitchId:
Type: String
Description: VSwitch ID.
ImageCacheName:
Type: String
Description: Image cache name.
Default: mytest
Resources:
Eip:
Type: ALIYUN::VPC::EIP
Properties:
InternetChargeType: PayByTraffic
Bandwidth: 5
ImageCache:
Type: ALIYUN::ECI::ImageCache
Properties:
VSwitchId:
Ref: VSwitchId
SecurityGroupId:
Ref: SecurityGroupId
EipInstanceId:
Ref: Eip
Image:
Ref: Image
ImageCacheName:
Ref: ImageCacheName
Outputs:
ImageCacheId:
Description: The ID of the image cache.
Value:
Fn::GetAtt:
- ImageCache
- ImageCacheId