|
Parámetro |
Tipo |
Descripción |
Ejemplo |
|---|---|---|---|
|
object |
La configuración del contenedor sidecar. |
||
| Name |
string |
El nombre del contenedor. |
name |
| Cpu |
integer |
Los recursos de CPU asignados al contenedor, medidos en milinúcleos. Por ejemplo, un valor de 1000 representa 1 vCPU. |
1000 |
| Memory |
integer |
La cantidad de memoria asignada al contenedor, medida en MB. |
1024 |
| ImageUrl |
string |
La URL de la imagen del contenedor. |
registry-vpc.cn-hangzhou.aliyuncs.com/demo/nginx:latest |
| Command |
string |
El comando de inicio para la imagen. Este comando anula el |
python |
| CommandArgs |
string |
Los argumentos para el comando de inicio. Este parámetro corresponde a |
["a","b"] |
| Envs |
string |
Las variables de entorno que se deben configurar en el contenedor. Especifique las variables como una matriz JSON de pares clave-valor. |
[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}] |
| ConfigMapMountDesc |
string |
La configuración para montar un ConfigMap. Utilice esta opción para inyectar datos de configuración en el contenedor como archivos. |
[{"configMapId":16,"key":"test","mountPath":"/tmp"}] |
| EmptyDirDesc |
string |
La configuración para un volumen |
[{\"name\":\"workdir\",\"mountPath\":\"/usr/local/tomcat/webapps\"}] |
| AcrInstanceId |
string |
El ID de la instancia de ACR Enterprise Edition. Este parámetro es obligatorio si |
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. |