Consulta informações sobre várias instâncias ECI.
Descrição da operação
-
Quando uma instância ECI para de ser executada, seus recursos de computação subjacentes são recuperados. Outros recursos criados com a instância, como EIPs, são liberados com a instância por padrão.
-
Os metadados de instâncias em estado terminal (Failed, Succeeded ou Expired) são retidos da seguinte forma:
-
Todos os metadados de instâncias criadas na última hora são retidos.
-
Para instâncias com mais de uma hora, apenas os metadados das últimas 100 instâncias em cada região são retidos.
-
-
Se você fizer a consulta usando um usuário RAM ou função RAM que não tenha as permissões de API necessárias, uma lista vazia será retornada.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
eci:DescribeContainerGroups |
get |
ContainerGroup
ContainerGroup
|
|
Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Sim |
O ID da região da instância. |
cn-hangzhou |
| RegionId |
string |
Sim |
O ID da região da instância. |
cn-hangzhou |
| ZoneId |
string |
Não |
A zona onde a instância está localizada. Se você deixar este parâmetro vazio, o sistema seleciona uma zona. O valor padrão é vazio. |
cn-hangzhou-h |
| VSwitchId |
string |
Não |
O ID do switch virtual ao qual a instância está conectada. |
vsw-bp1jrgfqqy54kg5hc**** |
| NextToken |
string |
Não |
O token que marca o início da próxima consulta. Se este parâmetro estiver vazio, nenhum outro resultado será retornado. Nota
Você não precisa definir este parâmetro para a primeira consulta. O token para uma consulta subsequente é obtido a partir da resposta da consulta anterior. |
d78f2dd8-5979-42fe-****-b16db43be5bc |
| Limit |
integer |
Não |
O número de recursos a serem retornados. Se você não definir este parâmetro, o valor padrão será 20. O valor máximo é 20. Nota
O número de recursos retornados pode ser menor, mas não será maior que o valor especificado. |
20 |
| ContainerGroupIds |
string |
Não |
Os IDs das instâncias. Você pode especificar até 20 IDs. O valor deve ser uma string formatada em JSON. |
["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"] |
| ContainerGroupName |
string |
Não |
O nome da instância, que também é o nome do grupo de contêineres. |
test |
| Status |
string |
Não |
O status da instância. Valores válidos:
|
Running |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos ao qual a instância pertence. |
rg-aekzh43v***** |
| WithEvent |
boolean |
Não |
Especifica se as informações do evento devem ser retornadas. |
true |
| Tag |
array<object> |
Não |
As tags das instâncias. |
|
|
object |
Não |
As tags das instâncias. |
||
| Key |
string |
Não |
A chave da tag da instância. |
name |
| Value |
string |
Não |
O valor da tag da instância. |
test |
| ComputeCategory |
string |
Não |
A categoria de poder de computação. Valores válidos:
|
economy |
| SecurityGroupId |
string |
Não |
O ID do grupo de segurança ao qual a instância pertence. |
sg-uf66jeqopgqa9hdn**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| TotalCount |
integer |
O número de instâncias. |
1 |
| NextToken |
string |
O token que marca o início da próxima consulta. |
d78f2dd8-5979-42fe-****-b16db43be5bc |
| RequestId |
string |
O ID da solicitação, que é um identificador exclusivo. |
89945DD3-9072-47D0-A318-353284CFC7B3 |
| ContainerGroups |
array<object> |
A lista de informações das instâncias. |
|
|
array<object> |
A lista de informações das instâncias. |
||
| Status |
string |
O status da instância. Valores possíveis:
|
Running |
| CreationTime |
string |
A hora em que o sistema criou a instância após receber a solicitação. A hora está em UTC e segue o padrão RFC3339. |
2018-08-02T15:00:00Z |
| VpcId |
string |
O ID da VPC à qual a instância pertence. |
vpc-1vzjjflab6wvjox**** |
| InternetIp |
string |
O endereço IP público. |
192.0.XX.XX |
| TenantSecurityGroupId |
string |
Este parâmetro não está disponível. |
sg-xxx |
| SecurityGroupId |
string |
O ID do grupo de segurança. |
sg-bp12ujq5zpxuyjfo3o8r |
| HostAliases |
array<object> |
O mapeamento personalizado entre um nome de host e um endereço IP para um contêiner na instância. |
|
|
object |
O mapeamento personalizado entre um nome de host e um endereço IP para um contêiner na instância. |
||
| Hostnames |
array |
The host information. |
|
|
string |
The hostname. |
['hehe.com', 'haha.com'] |
|
| Ip |
string |
The IP address. |
192.0.XX.XX |
| Tags |
array<object> |
As tags da instância. |
|
|
object |
As tags da instância. |
||
| Key |
string |
The tag key. |
name |
| Value |
string |
The tag value. |
test-xh |
| Events |
array<object> |
As informações do evento. No máximo 50 eventos podem ser retornados. |
|
|
object |
As informações do evento. No máximo 50 eventos podem ser retornados. |
||
| Type |
string |
The event type. Possible values:
|
Normal |
| LastTimestamp |
string |
The time when the event ended. |
2018-08-02T15:00:00Z |
| Message |
string |
The event message. |
Started container |
| Name |
string |
The name of the object to which the event belongs. |
test-xxx |
| Reason |
string |
The event name. |
Created |
| Count |
integer |
The number of events. |
20 |
| FirstTimestamp |
string |
The time when the event started. |
2018-08-02T15:00:00Z |
| SucceededTime |
string |
A hora em que todos os contêineres saíram com sucesso. A hora está em UTC e segue o padrão RFC3339. |
2019-12-11T04:33:42Z |
| SpotStrategy |
string |
A política de preemptibilidade para a instância. Valores válidos:
|
NoSpot |
| SpotPriceLimit |
number |
O preço máximo por hora para a instância spot. Este parâmetro é retornado apenas quando SpotStrategy é definido como SpotWithPriceLimit. |
0.025 |
| EphemeralStorage |
integer |
O tamanho do espaço de armazenamento temporário. Unidade: GiB. |
20 |
| TenantEniInstanceId |
string |
Este parâmetro não está disponível. |
i-xxx |
| Discount |
integer |
O desconto. |
9 |
| RestartPolicy |
string |
A política de reinicialização do grupo de contêineres. Valores válidos:
|
Never |
| Memory |
number |
O tamanho da memória da instância. Unidade: GiB. |
4.0 |
| TenantVSwitchId |
string |
Este parâmetro não está disponível. |
vsw-xxx |
| Containers |
array<object> |
A lista de contêineres na instância. |
|
|
array<object> |
A lista de contêineres na instância. |
||
| LivenessProbe |
object |
The liveness probe. |
|
| SuccessThreshold |
integer |
The minimum number of consecutive successes for the probe to be considered successful after having failed. The default value is 1. The value must be 1. |
1 |
| InitialDelaySeconds |
integer |
The time when the check starts to be performed, calculated from when the container starts. |
10 |
| FailureThreshold |
integer |
The minimum number of consecutive failures for the probe to be considered failed after having been successful. The default value is 3. |
3 |
| TimeoutSeconds |
integer |
The timeout period for the check. The default value is 1 second. The minimum value is 1 second. |
10 |
| TcpSocket |
object |
The TCP socket. |
|
| Host |
string |
The hostname. |
1.2.3.4 |
| Port |
integer |
The port number. |
80 |
| Execs |
array |
The command to execute. |
|
|
string |
The command to execute. |
["/bin/sh", "-c", "echo Hello world > /usr/share/message"] |
|
| HttpGet |
object |
The HTTP GET request. |
|
| Scheme |
string |
HTTP or HTTPS. |
HTTP |
| Path |
string |
The path for the HTTP GET request check. |
/usr/nginx/ |
| Port |
integer |
The port for the HTTP GET request check. |
80 |
| PeriodSeconds |
integer |
The interval at which the check is performed. The default value is 10 seconds. The minimum value is 1 second. |
5 |
| Commands |
array |
The container startup command. |
|
|
string |
The container startup command. |
[/bin/sh echo] |
|
| VolumeMounts |
array<object> |
The information about the mounted volumes. |
|
|
object |
The information about the mounted volumes. |
||
| MountPropagation |
string |
The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Possible values:
|
None |
| MountPath |
string |
The mount path. The content in the mount path of the container is overwritten by the content of the volume. |
/usr/share/ |
| ReadOnly |
boolean |
Specifies whether the volume is read-only. |
false |
| Name |
string |
The name of the volume. |
test-empty |
| SubPath |
string |
The subdirectory within the volume. This allows an instance to mount different directories from the same volume to different directories in the container. |
/usr/sub |
| Args |
array |
The container startup arguments. |
|
|
string |
The container startup arguments. |
["hello"] |
|
| Image |
string |
The container image. |
mysql |
| Ports |
array<object> |
The exposed port and protocol. |
|
|
object |
The exposed port and protocol. |
||
| Protocol |
string |
The protocol type. |
TCP |
| Port |
integer |
The port number. Possible values: 1 to 65535. |
8080 |
| RestartCount |
integer |
The number of restarts. |
0 |
| ImagePullPolicy |
string |
The image pull policy. Possible values:
|
Always |
| StdinOnce |
boolean |
If stdin is true, the standard input stream remains open across multiple attach sessions. If StdinOnce is set to true, stdin is opened when the container starts and remains empty until the first client attaches to stdin. After that, it remains open and receives data until the client disconnects. At that point, stdin is closed and remains closed until the container is restarted. |
true |
| Cpu |
number |
The vCPU size of the container. |
2.0 |
| PreviousState |
object |
The previous state. |
|
| StartTime |
string |
The time when the container started running. |
2021-12-02T15:00:00Z |
| FinishTime |
string |
The time when the container stopped running. |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
The details of the status. |
working |
| State |
string |
The container status. Possible values:
|
Terminated |
| Message |
string |
The container status message. |
Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx) |
| Signal |
integer |
The container status signal. |
1 |
| ExitCode |
integer |
The exit code of the container. |
0 |
| Reason |
string |
The reason for the container status. |
Completed |
| Tty |
boolean |
Specifies whether to enable interaction. The default value is false. For example, if you set Command to |
false |
| WorkingDir |
string |
The working directory. |
/usr/local/nginx |
| CurrentState |
object |
The current status of the container. |
|
| StartTime |
string |
The start time of the container. |
2021-12-02T15:00:00Z |
| FinishTime |
string |
The time when the container stopped running. |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
The detailed status of the container. |
working |
| State |
string |
The status of the container. Possible values:
|
Terminated |
| Message |
string |
The status message of the container. |
Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx) |
| Signal |
integer |
The status signal of the container. |
1 |
| ExitCode |
integer |
The exit code of the container. |
0 |
| Reason |
string |
The reason for the container status. |
Started |
| Ready |
boolean |
Indicates whether the container passed its readiness probe. |
true |
| Gpu |
integer |
The number of GPUs. |
1 |
| SecurityContext |
object |
The security context of the instance. |
|
| ReadOnlyRootFilesystem |
boolean |
Indicates whether the root file system is read-only. Currently, only `true` is supported. |
true |
| RunAsUser |
integer |
The user ID that runs the container. |
1000 |
| Capability |
object |
The specific permissions granted to processes in the container. |
|
| Adds |
array |
The specific permissions for processes in the container. |
|
|
string |
A specific capability granted to the processes in the container. |
[NET_ADMIN] |
|
| Memory |
number |
The memory size of the container. The unit is GiB. |
2.0 |
| Stdin |
boolean |
Specifies if the container runtime should allocate a buffer for the container's standard input. If it does not, reading from standard input returns an End-of-File (EOF). The default is false. |
true |
| Name |
string |
The container name. |
nginx |
| EnvironmentVars |
array<object> |
The environment variables. |
|
|
array<object> |
The environment variables. |
||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/bin/ |
| ValueFrom |
object |
The source of the environment variable value. This parameter cannot be used if the Value parameter is not empty. |
|
| FieldRef |
object |
The specified field. |
|
| FieldPath |
string |
The path of the field. |
status.podIP |
| ReadinessProbe |
object |
The readiness probe for the application. It checks whether the container is ready to serve requests. |
|
| SuccessThreshold |
integer |
The minimum number of consecutive successes for the probe to be considered successful after having failed. The default is 1. The value must be 1. |
1 |
| InitialDelaySeconds |
integer |
The number of seconds after the container starts before the check is initiated. |
5 |
| FailureThreshold |
integer |
The number of consecutive failures after the last successful probe for the probe to be considered failed. The default value is 3. |
3 |
| TimeoutSeconds |
integer |
The probe timeout in seconds. The default value is 1 second. The minimum value is 1 second. |
1 |
| TcpSocket |
object |
The health check uses a TCP socket. |
|
| Host |
string |
The hostname or IP address. |
1.2.3.4 |
| Port |
integer |
The port number. |
8888 |
| Execs |
array |
The commands to execute in the container for a command-line health check. |
|
|
string |
The command to execute in the container for a command-line health check. |
["/bin/sh", "-c", "echo Hello world > /usr/share/message"] |
|
| HttpGet |
object |
The health check is performed using an HTTP request. |
|
| Scheme |
string |
HTTP/HTTPS. |
HTTP |
| Path |
string |
The path for the HTTP GET check. |
/usr/local |
| Port |
integer |
The port number for the HttpGet check. |
8080 |
| PeriodSeconds |
integer |
The period for executing the check. The default is 10 seconds. The minimum is 1 second. |
1 |
| EniInstanceId |
string |
O ID da interface de rede elástica (ENI). |
eni-bp14rzqi6fd8satm**** |
| InitContainers |
array<object> |
Uma lista de contêineres de inicialização. |
|
|
array<object> |
A lista de contêineres de inicialização. |
||
| VolumeMounts |
array<object> |
The volumes mounted to the init container. |
|
|
object |
The volume mounted to the init container. |
||
| MountPropagation |
string |
The mount propagation setting for the volume. Mount propagation lets you share a volume mounted by a container with other containers in the same pod. You can also share the volume with other pods on the same node. The possible values are:
|
None |
| MountPath |
string |
The mount path in the container. The content of the volume overwrites any existing content at this path. |
/usr/share/ |
| ReadOnly |
boolean |
Indicates whether the volume is read-only. |
false |
| Name |
string |
The name of the volume. This must be the same as the Name of the Volume. |
test-empty |
| Args |
array |
The startup arguments. |
|
|
string |
The startup arguments. |
['hello world'] |
|
| Image |
string |
The image. |
nginx |
| Ports |
array<object> |
The exposed ports and protocols. |
|
|
object |
The exposed port and protocol. |
||
| Protocol |
string |
The protocol type. |
TCP |
| Port |
integer |
The port number. Valid values: 1 to 65535. |
8888 |
| RestartCount |
integer |
The restart count. |
5 |
| ImagePullPolicy |
string |
The image pull policy. Valid values:
|
Always |
| PreviousState |
object |
The previous state. |
|
| StartTime |
string |
The time when the container started. |
2021-12-02T15:00:00Z |
| FinishTime |
string |
The time when the container stopped running. |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
The details of the status. |
working |
| State |
string |
The status of the container. The enumeration values are Waiting, Running, and Terminated. |
Terminated |
| Message |
string |
The status message of the container. |
Started container |
| Signal |
integer |
The status signal of the container. |
1 |
| ExitCode |
integer |
The exit code of the container. |
0 |
| Reason |
string |
The reason for the container status. |
completed |
| WorkingDir |
string |
The working directory. |
/usr/test |
| Cpu |
number |
The vCPU size. |
1.0 |
| CurrentState |
object |
The current status. |
|
| StartTime |
string |
The time when the container started running. |
2021-12-02T15:00:00Z |
| FinishTime |
string |
The time when the container finished running. |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
The detailed status. |
working |
| State |
string |
The status of the container. Possible values:
|
Running |
| Message |
string |
The event message. |
Created container |
| Signal |
integer |
The signal for the container status. |
1 |
| ExitCode |
integer |
The exit code of the container. |
0 |
| Reason |
string |
The reason for the container status. |
Started |
| Command |
array |
The startup command. |
|
|
string |
The startup command. |
[/bin/sh echo] |
|
| Ready |
boolean |
Indicates whether the container passed its readiness probe. |
true |
| Gpu |
integer |
The number of GPUs. |
1 |
| SecurityContext |
object |
The security context of the container. |
|
| ReadOnlyRootFilesystem |
boolean |
Indicates whether the root file system is read-only. Currently, only true is supported. |
true |
| RunAsUser |
integer |
The UID used to run the entry point of the container process. |
1557 |
| Capability |
object |
The specific permissions for the processes in the container. |
|
| Adds |
array |
The specific permissions that processes in the container have. |
|
|
string |
The specific permission granted to processes in the container. |
NET_ADMIN |
|
| Memory |
number |
The memory size of the init container, in GiB. |
2.0 |
| Name |
string |
The name of the container. |
Init-xxx |
| EnvironmentVars |
array<object> |
The environment variables. |
|
|
array<object> |
The environment variable. |
||
| Key |
string |
The name of the environment variable. |
PATH |
| Value |
string |
The value of the environment variable. |
/usr/local/bin |
| ValueFrom |
object |
The source of the value for the environment variable. This parameter is unavailable if the Value parameter is set. |
|
| FieldRef |
object |
The specified field. |
|
| FieldPath |
string |
The path of the field to select from the specified version. Currently, only |
status.podIP |
| ContainerGroupId |
string |
O ID da instância. |
eci-bp1jrgfqqy54kg5hc**** |
| TenantEniIp |
string |
Este parâmetro não está disponível. |
10.10.XX.XX |
| InstanceType |
string |
O tipo de instância ECS especificado. |
ecs.g5.large |
| IntranetIp |
string |
O endereço IP de intranet. |
172.16.XX.XX |
| Ipv6Address |
string |
O endereço IPv6. |
2001:XXXX:4:4:4:4:4:4 |
| RegionId |
string |
O ID da região da instância. |
cn-hangzhou |
| DnsConfig |
object |
A configuração de DNS. |
|
| Searches |
array |
A list of DNS search domains. |
|
|
string |
The DNS search domain. |
svc.local.kubenetes |
|
| Options |
array<object> |
A list of option objects. Each object consists of a Name and an optional Value. |
|
|
object |
A list of option objects. Each object consists of a Name and an optional Value. |
||
| Value |
string |
The value of the variable. |
value |
| Name |
string |
The name of the object variable. |
name |
| NameServers |
array |
The IP addresses of the DNS servers. |
|
|
string |
The IP address. |
[10.2.*.*] |
|
| Volumes |
array<object> |
Informações do volume. |
|
|
array<object> |
Descreve um volume. |
||
| Type |
string |
The type of the volume. Valid values are:
|
EmptyDirVolume |
| DiskVolumeDiskId |
string |
The ID of the DiskVolume. |
d-xxxx |
| NFSVolumeReadOnly |
boolean |
Indicates whether the volume is read-only. |
false |
| ConfigFileVolumeConfigFileToPaths |
array<object> |
The list of configuration file paths. |
|
|
object |
A list of configuration file paths. |
||
| Path |
string |
The relative path of the file. |
/usr/bin/ |
| Content |
string |
The content of the configuration file. The size is limited to 32 KB. |
hello world |
| FlexVolumeFsType |
string |
The type of the file system to mount. The default value depends on the FlexVolume script. |
ntfs |
| FlexVolumeDriver |
string |
The name of the driver for FlexVolume. |
flexvolume |
| DiskVolumeFsType |
string |
The type of the volume. |
xfs |
| FlexVolumeOptions |
string |
The list of options for the FlexVolume object. |
[nolock,tcp,noresvport] |
| NFSVolumeServer |
string |
The address of the NFS server. |
0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com |
| NFSVolumePath |
string |
The path of the NFS volume. |
/eci |
| Name |
string |
The name of the volume. |
test-empty |
| EmptyDirVolumeMedium |
string |
The storage medium for the emptyDir volume. The default value is empty, which means the node's file system is used. Valid values:
|
Memory |
| EmptyDirVolumeSizeLimit |
string |
The size of the EmptyDir volume. |
256Mi |
| RamRoleName |
string |
O nome da função RAM da instância. ECI e ECS compartilham funções RAM de instância. Para mais informações, consulte Usar uma função RAM de instância usando a API. |
ram:PassRole |
| VSwitchId |
string |
O ID do switch virtual. |
vsw-bp1vzjjflab6wvjox**** |
| Cpu |
number |
O número de vCPUs da instância. |
2.0 |
| ExpiredTime |
string |
A hora em que a instância falhou ao ser executada devido a um pagamento em atraso. A hora está em UTC e é formatada de acordo com o RFC 3339. |
2018-08-02T15:00:00Z |
| ResourceGroupId |
string |
O ID do grupo de recursos. |
rg-8db03793gfrz**** |
| ZoneId |
string |
A zona à qual a instância pertence. |
cn-hangzhou-h |
| ContainerGroupName |
string |
O nome do grupo de contêineres. |
test |
| EciSecurityContext |
object |
O contexto de segurança do grupo de contêineres. |
|
| Sysctls |
array<object> |
The sysctl parameters. |
|
|
object |
The sysctl parameter. |
||
| Value |
string |
The value of the sysctl parameter. |
65536 |
| Name |
string |
The name of the sysctl parameter. |
kernel.msgmax |
| FailedTime |
string |
A hora em que a instância falhou. A hora está em UTC e está em conformidade com o padrão RFC 3339. |
2018-08-02T15:00:00Z |
| ComputeCategory |
string |
A categoria de poder de computação. Valores possíveis:
|
economy |
| DnsPolicy |
string |
A política de DNS. Valores válidos:
|
None |
Exemplos
Resposta de sucesso
JSON formato
{
"TotalCount": 1,
"NextToken": "d78f2dd8-5979-42fe-****-b16db43be5bc",
"RequestId": "89945DD3-9072-47D0-A318-353284CFC7B3",
"ContainerGroups": [
{
"Status": "Running",
"CreationTime": "2018-08-02T15:00:00Z",
"VpcId": "vpc-1vzjjflab6wvjox****",
"InternetIp": "192.0.XX.XX",
"TenantSecurityGroupId": "sg-xxx",
"SecurityGroupId": "sg-bp12ujq5zpxuyjfo3o8r",
"HostAliases": [
{
"Hostnames": [
"['hehe.com', 'haha.com']"
],
"Ip": "192.0.XX.XX"
}
],
"Tags": [
{
"Key": "name",
"Value": "test-xh"
}
],
"Events": [
{
"Type": "Normal",
"LastTimestamp": "2018-08-02T15:00:00Z",
"Message": "Started container",
"Name": "test-xxx",
"Reason": "Created",
"Count": 20,
"FirstTimestamp": "2018-08-02T15:00:00Z"
}
],
"SucceededTime": "2019-12-11T04:33:42Z",
"SpotStrategy": "NoSpot",
"SpotPriceLimit": 0.025,
"EphemeralStorage": 20,
"TenantEniInstanceId": "i-xxx",
"Discount": 9,
"RestartPolicy": "Never",
"Memory": 4,
"TenantVSwitchId": "vsw-xxx",
"Containers": [
{
"LivenessProbe": {
"SuccessThreshold": 1,
"InitialDelaySeconds": 10,
"FailureThreshold": 3,
"TimeoutSeconds": 10,
"TcpSocket": {
"Host": "1.2.3.4",
"Port": 80
},
"Execs": [
"[\"/bin/sh\", \"-c\", \"echo Hello world > /usr/share/message\"]"
],
"HttpGet": {
"Scheme": "HTTP",
"Path": "/usr/nginx/",
"Port": 80
},
"PeriodSeconds": 5
},
"Commands": [
"[/bin/sh echo]"
],
"VolumeMounts": [
{
"MountPropagation": "None",
"MountPath": "/usr/share/",
"ReadOnly": false,
"Name": "test-empty",
"SubPath": "/usr/sub"
}
],
"Args": [
"[\"hello\"]"
],
"Image": "mysql",
"Ports": [
{
"Protocol": "TCP",
"Port": 8080
}
],
"RestartCount": 0,
"ImagePullPolicy": "Always",
"StdinOnce": true,
"Cpu": 2,
"PreviousState": {
"StartTime": "2021-12-02T15:00:00Z",
"FinishTime": "2021-12-02T15:01:00Z",
"DetailStatus": "working",
"State": "Terminated",
"Message": "Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)",
"Signal": 1,
"ExitCode": 0,
"Reason": "Completed"
},
"Tty": false,
"WorkingDir": "/usr/local/nginx",
"CurrentState": {
"StartTime": "2021-12-02T15:00:00Z",
"FinishTime": "2021-12-02T15:01:00Z",
"DetailStatus": "working",
"State": "Terminated",
"Message": "Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)",
"Signal": 1,
"ExitCode": 0,
"Reason": "Started"
},
"Ready": true,
"Gpu": 1,
"SecurityContext": {
"ReadOnlyRootFilesystem": true,
"RunAsUser": 1000,
"Capability": {
"Adds": [
"[NET_ADMIN]"
]
}
},
"Memory": 2,
"Stdin": true,
"Name": "nginx",
"EnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/bin/",
"ValueFrom": {
"FieldRef": {
"FieldPath": "status.podIP"
}
}
}
],
"ReadinessProbe": {
"SuccessThreshold": 1,
"InitialDelaySeconds": 5,
"FailureThreshold": 3,
"TimeoutSeconds": 1,
"TcpSocket": {
"Host": "1.2.3.4",
"Port": 8888
},
"Execs": [
"[\"/bin/sh\", \"-c\", \"echo Hello world > /usr/share/message\"]"
],
"HttpGet": {
"Scheme": "HTTP",
"Path": "/usr/local",
"Port": 8080
},
"PeriodSeconds": 1
}
}
],
"EniInstanceId": "eni-bp14rzqi6fd8satm****",
"InitContainers": [
{
"VolumeMounts": [
{
"MountPropagation": "None",
"MountPath": "/usr/share/",
"ReadOnly": false,
"Name": "test-empty"
}
],
"Args": [
"['hello world']"
],
"Image": "nginx",
"Ports": [
{
"Protocol": "TCP",
"Port": 8888
}
],
"RestartCount": 5,
"ImagePullPolicy": "Always",
"PreviousState": {
"StartTime": "2021-12-02T15:00:00Z",
"FinishTime": "2021-12-02T15:01:00Z",
"DetailStatus": "working",
"State": "Terminated",
"Message": "Started container",
"Signal": 1,
"ExitCode": 0,
"Reason": "completed"
},
"WorkingDir": "/usr/test",
"Cpu": 1,
"CurrentState": {
"StartTime": "2021-12-02T15:00:00Z",
"FinishTime": "2021-12-02T15:01:00Z",
"DetailStatus": "working",
"State": "Running",
"Message": "Created container",
"Signal": 1,
"ExitCode": 0,
"Reason": "Started"
},
"Command": [
"[/bin/sh echo]"
],
"Ready": true,
"Gpu": 1,
"SecurityContext": {
"ReadOnlyRootFilesystem": true,
"RunAsUser": 1557,
"Capability": {
"Adds": [
"NET_ADMIN"
]
}
},
"Memory": 2,
"Name": "Init-xxx",
"EnvironmentVars": [
{
"Key": "PATH",
"Value": "/usr/local/bin",
"ValueFrom": {
"FieldRef": {
"FieldPath": "status.podIP"
}
}
}
]
}
],
"ContainerGroupId": "eci-bp1jrgfqqy54kg5hc****",
"TenantEniIp": "10.10.XX.XX",
"InstanceType": "ecs.g5.large",
"IntranetIp": "172.16.XX.XX",
"Ipv6Address": "2001:XXXX:4:4:4:4:4:4",
"RegionId": "cn-hangzhou",
"DnsConfig": {
"Searches": [
"svc.local.kubenetes"
],
"Options": [
{
"Value": "value",
"Name": "name"
}
],
"NameServers": [
"[10.2.*.*]"
]
},
"Volumes": [
{
"Type": "EmptyDirVolume",
"DiskVolumeDiskId": "d-xxxx",
"NFSVolumeReadOnly": false,
"ConfigFileVolumeConfigFileToPaths": [
{
"Path": "/usr/bin/",
"Content": "hello world"
}
],
"FlexVolumeFsType": "ntfs",
"FlexVolumeDriver": "flexvolume",
"DiskVolumeFsType": "xfs",
"FlexVolumeOptions": "[nolock,tcp,noresvport]",
"NFSVolumeServer": "0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com",
"NFSVolumePath": "/eci",
"Name": "test-empty",
"EmptyDirVolumeMedium": "Memory",
"EmptyDirVolumeSizeLimit": "256Mi"
}
],
"RamRoleName": "ram:PassRole",
"VSwitchId": "vsw-bp1vzjjflab6wvjox****",
"Cpu": 2,
"ExpiredTime": "2018-08-02T15:00:00Z",
"ResourceGroupId": "rg-8db03793gfrz****",
"ZoneId": "cn-hangzhou-h",
"ContainerGroupName": "test",
"EciSecurityContext": {
"Sysctls": [
{
"Value": "65536",
"Name": "kernel.msgmax"
}
]
},
"FailedTime": "2018-08-02T15:00:00Z",
"ComputeCategory": "economy",
"DnsPolicy": "None"
}
]
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter.MismatchInstanceType | The instanceId mismatch instance type. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.