-
Notifications
You must be signed in to change notification settings - Fork 5
/
publish.yaml
316 lines (316 loc) · 14.1 KB
/
publish.yaml
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
Type: Component
Name: sae
Provider:
- 阿里云
Version: 1.1.3
Description: 阿里云SAE组件
HomePage: https://github.com/devsapp/sae
Tags: #标签详情
- SAE
Category: 其它
Commands:
Build & Deploy:
deploy: Deploy local application online
remove: Delete online application
start: Start online application
stop: Stop online application
Others:
info: Query online application details
sync: Sync online application config
Config:
rescale: Rescale online application
Properties:
region:
Description: 地区
Required: True
Type:
- String
namespace:
Description: 命名空间
Required: False
Type:
- Struct:
id:
Description: 命名空间ID。仅允许小写英文字母和数字
Required: True
Example: cn-beijing:test
Type:
- String
name:
Description: 命名空间名称
Required: False
Example: name
Type:
- String
description:
Description: 命名空间描述信息
Required: False
Example: desc
Type:
- String
vpcConfig:
Description: VPC配置
Required: False
Type:
- Struct:
vpcId:
Description: SAE命名空间对应的VPC。
Required: True
Example: vpc-bp1ae8mh1q****
Type:
- String
vSwitchId:
Description: 应用实例弹性网卡所在的虚拟交换机。
Required: True
Example: vsw-bp12gk9****
Type:
- String
securityGroupId:
Description: 安全组ID。
Required: True
Example: sg-wz9695i4****
Type:
- String
application:
Description: 应用配置
Required: True
Type:
- Struct:
name:
Description: 应用名称。允许数字、字母以及短划线(-)组合。必须以字母开始,不超过36个字符。
Required: True
Example: test
Type:
- String
description:
Description: 应用描述信息。不超过1024个字符。
Required: False
Example: This is a test description.
Type:
- String
code:
Description: 代码
Required: True
Type:
- Struct
port:
Description: 容器端口。
Required: False
Example: 8080
Type:
- Number
cpu:
Description: 每个实例所需的CPU,单位为毫核,不能为0。目前仅支持以下固定规格:500,1000,2000,4000,8000,16000,32000
Required: False
Example: 1000
Type:
- Number
memory:
Description: 每个实例所需的内存,单位为MB,不能为0。与CPU为一一对应关系,目前仅支持以下固定规格:,1024:对应CPU为500毫核。2048:对应CPU为500和1000毫核。4096:对应CPU为1000和2000毫核。8192:对应CPU为2000和4000毫核。16384:对应CPU为4000和8000毫核。32768:对应CPU为16000毫核。65536:对应CPU为8000、16000和32000毫核。131072:对应CPU为32000毫核。
Required: False
Example: 1024
Type:
- Number
replicas:
Description: 初始实例数。
Required: False
Example: 1
Type:
- Number
command:
Description: 镜像启动命令。该命令必须为容器内存在的可执行的对象。例如:sleep。设置该命令将导致镜像原本的启动命令失效。
Required: False
Example: sleep
Type:
- String
commandArgs:
Description: 镜像启动命令参数。上述启动命令所需参数。例如:1d
Required: False
Example: 1d
Type:
- String
envs:
Description: 容器环境变量参数。
Required: False
Example: '[{"name":"envtmp","value":"0"}]'
Type:
- String
customHostAlias:
Description: 容器内自定义host映射。
Required: False
Example: '[{"hostName":"samplehost","ip":"127.0.0.1"}]'
Type:
- String
jarStartOptions:
Description: JAR包启动应用选项。应用默认启动命令:$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs
Required: False
Example: -Xms4G -Xmx4G
Type:
- String
jarStartArgs:
Description: JAR包启动应用参数。应用默认启动命令:$JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs
Required: False
Example: custom-args
Type:
- String
liveness:
Description: 容器健康检查,健康检查失败的容器将被关闭并恢复。目前仅支持容器内下发命令的方式。例如:{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2},command:设置健康检查命令。,initialDelaySeconds:设置健康检查延迟检测时间,单位为秒。,periodSeconds:设置健康检查周期,单位为秒。,timeoutSeconds:设置健康检查超时等待时间,单位为秒。
Required: False
Example: '{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}'
Type:
- String
readiness:
Description: 应用启动状态检查,多次健康检查失败的容器将被关闭并重启。不通过健康检查的容器将不会有SLB流量进入。例如:{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2},command:设置健康检查命令。,initialDelaySeconds:设置健康检查延迟检测时间,单位为秒。,periodSeconds:设置健康检查周期,单位为秒。,timeoutSeconds:设置健康检查超时等待时间,单位为秒。
Required: False
Example: '{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}'
Type:
- String
deploy:
Description: 是否立即部署。取值说明如下:,true:立即部署。,false:默认值,稍后部署。
Required: False
Example: true
Type:
- Boolean
edasContainerVersion:
Description: Pandora应用使用的运行环境。
Required: False
Example: 3.5.3
Type:
- String
timezone:
Description: 时区默认为Asia/Shanghai。
Required: False
Example: Asia/Shanghai
Type:
- String
slsConfigs:
Description: 文件日志采集配置。,使用SAE自动创建的SLS资源:[{"logDir":"/root/logs/hsf.log"}]。,使用自定义的SLS资源:[{"projectName":"test-sls","logDir":"/tmp/readiness.txt","logstoreName":"logstore","logtailName":"testLogtail"}]。,projectName:配置SLS上的Project名称。,logDir:配置收集日志文件的路径。,logstoreName:配置SLS上的Logstore名称。,logtailName:配置SLS上的Logtail名称,如果不指定,则表示新建Logtail。
Required: False
Example: '[{"logDir":"/root/logs/hsf.log"}]'
Type:
- String
nasId:
Description: 挂载的NAS的ID,必须与集群处在同一个地域。它必须有可用的挂载点创建额度,或者其挂载点已经在VPC内的交换机上。如果不填,且存在mountDescs字段,则默认将自动购买一个NAS并挂载至VPC内的交换机上。
Required: False
Example: KSAK****
Type:
- String
mountHost:
Description: NAS在应用VPC内的挂载点。
Required: False
Example: example.com
Type:
- String
mountDesc:
Description: 挂载描述。
Required: False
Example: '[{MountPath: "/tmp", NasPath: "/"}]'
Type:
- String
preStop:
Description: 停止前执行脚本,格式如:{"exec":{"command":["cat","/etc/group"]}}
Required: False
Example: '{"exec":{"command":["cat","/etc/group"]}}'
Type:
- String
postStart:
Description: 启动后执行脚本,格式如:{"exec":{"command":["cat","/etc/group"]}}
Required: False
Example: '{"exec":{"command":["cat","/etc/group"]}}'
Type:
- String
warStartOptions:
Description: WAR包启动应用选项。应用默认启动命令:java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start
Required: False
Example: custom-option
Type:
- String
configMapMountDesc:
Description: ConfigMap挂载描述。
Required: False
Example: '[{"configMapId":16,"key":"test","mountPath":"/tmp"}]'
Type:
- String
terminationGracePeriodSeconds:
Description: 优雅下线超时时间,默认为30,单位为秒。取值范围为1~60。
Required: False
Example: 30
Type:
- Number
phpArmsConfigLocation:
Description: PHP应用监控挂载路径,需要您保证PHP服务器一定会加载这个路径的配置文件。,您无需关注配置内容,SAE会自动渲染正确的配置文件。
Required: False
Example: /usr/local/etc/php/conf.d/arms.ini
Type:
- String
phpConfigLocation:
Description: PHP应用启动配置挂载路径,需要您保证PHP服务器会使用这个配置文件启动。
Required: False
Example: /usr/local/etc/php/php.ini
Type:
- String
phpConfig:
Description: PHP配置文件内容。
Required: False
Example: k1=v1
Type:
- String
acrAssumeRoleArn:
Description: 跨账号拉取镜像时所需的RAM角色的ARN。
Required: False
Example: acs:ram::123456789012****:role/adminrole
Type:
- String
tomcatConfig:
Description: Tomcat文件配置,设置为""或"{}"表示删除配置:useDefaultConfig:是否使用自定义配置,若为true,则表示不使用自定义配置;若为false,则表示使用自定义配置。若不使用自定义配置,则下面的参数配置将不会生效。contextInputType:选择应用的访问路径。war:无需填写自定义路径,应用的访问路径是WAR包名称。root:无需填写自定义路径,应用的访问路径是/。custom:需要在下面的自定义路径中填写自定义的路径。contextPath:自定义路径,当contextInputType类型为custom时,才需要配置此参数。httpPort:端口范围为1024~65535,小于1024的端口需要Root权限才能操作。因为容器配置的是Admin权限,所以请填写大于1024的端口。如果不配置,则默认为8080。,maxThreads:配置连接池的连接数大小,默认大小是400。,uriEncoding:Tomcat的编码格式,包括UTF-8、ISO-8859-1、GBK和GB2312。如果不设置则默认为ISO-8859-1。useBodyEncoding:是否使用BodyEncoding for URL。,
Required: False
Example: '{"useDefaultConfig":false,"contextInputType":"custom","contextPath":"hello","httpPort":8088,"maxThreads":400,"uriEncoding":"UTF-8","useBodyEncoding":true,"useAdvancedServerXml":false}'
Type:
- String
ossMountDescs:
Description: OSS挂载描述信息。
Required: False
Example: '[{"bucketName": "oss-bucket", "bucketPath": "data/user.data", "mountPath": "/usr/data/user.data", "readOnly": true}]'
Type:
- String
ossAkId:
Description: OSS读写的AccessKey ID。
Required: False
Example: xxxxxx
Type:
- String
ossAkSecret:
Description: OSS读写的AccessKey Secret
Required: False
Example: xxxxxx
Type:
- String
slb:
Description: SLB配置
Required: False
Type:
- Struct:
Internet:
Description: 绑定公网SLB。例如:[{"port":80,"targetPort":8080,"protocol":"TCP"}],表示将容器的8080端口通过SLB的80端口暴露服务,协议为TCP
Required: True
Example: '[{"port":80,"targetPort":8080,"protocol":"TCP"}]'
Type:
- String
Intranet:
Description: 绑定私网SLB。例如:[{"port":80,"targetPort":8080,"protocol":"TCP"}],表示将容器的8080端口通过SLB的80端口暴露服务,协议为TCP
Required: False
Example: '[{"port":80,"targetPort":8080,"protocol":"TCP"}]'
Type:
- String
InternetSlbId:
Description: 使用指定的已购买的公网SLB,目前只支持非共享型实例
Required: False
Example: lb-bp1tg0k6d9nqaw7l1****
Type:
- String
IntranetSlbId:
Description: 使用指定的已购买的私网SLB,目前只支持非共享型实例
Example: lb-bp1tg0k6d9nqaw7l1****
Required: False
Type:
- String