All Products
Search
Document Center

:SidecarContainerConfig

Last Updated:Oct 21, 2026

Parameter

Type

Description

Example

object

The sidecar container configuration.

Name

string

The container name.

name

Cpu

integer

Cpu

1000

Memory

integer

Memory

1024

ImageUrl

string

The image URL.

registry-vpc.cn-hangzhou.aliyuncs.com/demo/nginx:latest

Command

string

The image startup command.

python

CommandArgs

string

The image startup command arguments.

["a","b"]

Envs

string

The container environment variable parameters.

[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}]

ConfigMapMountDesc

string

The ConfigMap mount description.

[{"configMapId":16,"key":"test","mountPath":"/tmp"}]

EmptyDirDesc

string

The EmptyDir description.

[{\"name\":\"workdir\",\"mountPath\":\"/usr/local/tomcat/webapps\"}]

AcrInstanceId

string

The ID of the Container Registry ACR Enterprise instance. This parameter is required when ImageUrl is a Container Registry Enterprise instance.

cri-xxxxxx

SecretMountDesc

string

The Secret mount description.

[{"secretId":10,"key":"test","mountPath":"/tmp"}]

Liveness

string

The liveness probe configuration.

{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}

Readiness

string

The readiness probe configuration.

{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}

PreStop

string

The PreStop configuration.

{"exec":{"command":["sh","-c","echo hello"]}}

PostStart

string

The PostStart configuration.

{"exec":{"command":["sh","-c","echo hello"]}}