SidecarContainerConfig

更新时间:
复制 MD 格式

Parameter

Type

Description

Example

object

The configuration of the sidecar container.

Name

string

The name of the container.

name

Cpu

integer

The CPU resources allocated to the container, measured in millicores. For example, a value of 1000 represents 1 vCPU.

1000

Memory

integer

The amount of memory allocated to the container, measured in MB.

1024

ImageUrl

string

The container image URL.

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

Command

string

The startup command for the image. This command overrides the ENTRYPOINT defined in the image.

python

CommandArgs

string

The arguments for the startup command. This parameter corresponds to CMD in the Dockerfile.

["a","b"]

Envs

string

The environment variables to set in the container. Specify the variables as a JSON array of key-value pairs.

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

ConfigMapMountDesc

string

The settings for mounting a ConfigMap. Use this to inject configuration data into the container as files.

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

EmptyDirDesc

string

The configuration for an emptyDir volume. This creates a temporary directory that persists for the life of the application instance.

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

AcrInstanceId

string

The instance ID of the ACR Enterprise Edition. This parameter is required if the ImageUrl is from an ACR Enterprise Edition repository.

cri-xxxxxx

SecretMountDesc

string

Specifies how to mount a Secret. This lets you securely use sensitive data, such as credentials or keys, in your application.

Liveness

string

The configuration for the liveness probe. The liveness probe checks if the container is running. If the probe fails, the system restarts the container.

Readiness

string

The configuration for the readiness probe. The readiness probe checks if the container is ready to handle requests. The system will not direct traffic to a container until its readiness probe succeeds.

PreStop

string

The configuration for the preStop hook. This hook runs immediately before the container is terminated to ensure a graceful shutdown.

PostStart

string

The configuration for the postStart hook. This hook runs immediately after the container starts to perform initialization tasks.