全部產品
Search
文件中心

:SidecarContainerConfig

更新時間:Oct 21, 2026

名稱

類型

描述

樣本值

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"]}}