|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
Sidecar 容器配置 |
||
| Name |
string |
容器名称 |
name |
| Cpu |
integer |
Cpu |
1000 |
| Memory |
integer |
Memory |
1024 |
| ImageUrl |
string |
镜像地址 |
registry-vpc.cn-hangzhou.aliyuncs.com/demo/nginx:latest |
| Command |
string |
镜像启动命令 |
python |
| CommandArgs |
string |
镜像启动命令参数 |
["a","b"] |
| Envs |
string |
容器环境变量参数 |
[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}] |
| ConfigMapMountDesc |
string |
ConfigMap 挂载描述 |
[{"configMapId":16,"key":"test","mountPath":"/tmp"}] |
| EmptyDirDesc |
string |
EmptyDir 描述 |
[{\"name\":\"workdir\",\"mountPath\":\"/usr/local/tomcat/webapps\"}] |
| AcrInstanceId |
string |
容器镜像服务 ACR 企业版实例 ID。当 ImageUrl 为容器镜像服务企业版时必填 |
cri-xxxxxx |
| SecretMountDesc |
string |
Secret 挂载描述 |
[{"secretId":10,"key":"test","mountPath":"/tmp"}] |
| Liveness |
string |
存活检查(Liveness 配置) |
{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2} |
| Readiness |
string |
业务就绪检查(Readiness 配置) |
{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2} |
| PreStop |
string |
PreStop 配置 |
{"exec":{"command":["sh","-c","echo hello"]}} |
| PostStart |
string |
PostStart 配置 |
{"exec":{"command":["sh","-c","echo hello"]}} |
该文章对您有帮助吗?