|
Parâmetro |
Tipo |
Descrição |
Exemplo |
|---|---|---|---|
|
object |
A configuração do contêiner sidecar. |
||
| Name |
string |
O nome do contêiner. |
name |
| Cpu |
integer |
Os recursos de CPU alocados para o contêiner, medidos em milicores. Por exemplo, um valor de 1000 representa 1 vCPU. |
1000 |
| Memory |
integer |
A quantidade de memória alocada para o contêiner, medida em MB. |
1024 |
| ImageUrl |
string |
A URL da imagem do contêiner. |
registry-vpc.cn-hangzhou.aliyuncs.com/demo/nginx:latest |
| Command |
string |
O comando de inicialização da imagem. Este comando substitui o |
python |
| CommandArgs |
string |
Os argumentos para o comando de inicialização. Este parâmetro corresponde ao |
["a","b"] |
| Envs |
string |
As variáveis de ambiente a serem definidas no contêiner. Especifique as variáveis como uma matriz JSON de pares chave-valor. |
[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}] |
| ConfigMapMountDesc |
string |
As configurações para montar um ConfigMap. Use isso para injetar dados de configuração no contêiner como arquivos. |
[{"configMapId":16,"key":"test","mountPath":"/tmp"}] |
| EmptyDirDesc |
string |
A configuração para um volume |
[{\"name\":\"workdir\",\"mountPath\":\"/usr/local/tomcat/webapps\"}] |
| AcrInstanceId |
string |
O ID da instância do ACR Enterprise Edition. Este parâmetro é obrigatório se o |
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. |