調用DescribeContainerGroups批量查詢ECI執行個體的資訊。
介面說明
當 ECI 執行個體運行終止後,底層計算資源將會被回收。隨執行個體一起建立的其它資源(例如 EIP 等)預設隨執行個體一起釋放。
- 終態(處於 Failed、Succeeded 或 Expired 狀態)執行個體的中繼資料資訊的保留情況如下:
1 小時內的執行個體資訊全部保留。
超出 1 小時的執行個體僅保留最近的 100 條(單個地區分別計算)。
如果使用 RAM 使用者帳號或者 RAM 角色進行查詢,當 RAM 使用者或者角色缺乏介面許可權時,會返回空列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eci:DescribeContainerGroups |
get |
ContainerGroup
ContainerGroup
|
|
無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
執行個體所屬的地區 ID。 |
cn-hangzhou |
| RegionId |
string |
是 |
執行個體所屬的地區 ID。 |
cn-hangzhou |
| ZoneId |
string |
否 |
執行個體所屬的可用性區域。如果取值為空白,則表示由系統選擇。 預設值為空白。 |
cn-hangzhou-h |
| VSwitchId |
string |
否 |
執行個體所屬的虛擬交換器 ID。 |
vsw-bp1jrgfqqy54kg5hc**** |
| NextToken |
string |
否 |
下一個查詢開始的 Token,NextToken 為空白表示沒有下一個。 說明
首次查詢時無需設定該參數,後續查詢的 Token 從返回結果中擷取。 |
d78f2dd8-5979-42fe-****-b16db43be5bc |
| Limit |
integer |
否 |
限定此次返回資源的數量。如果不設定,預設返回 20 個,最大不能超過 20 個。 說明
返回結果可能小於指定的數量,但不會多於指定的數量。 |
20 |
| ContainerGroupIds |
string |
否 |
執行個體 ID 序列。最多 20 個,字串需按照 JSON 格式傳入。 |
["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"] |
| ContainerGroupName |
string |
否 |
執行個體名稱,即容器組名稱。 |
test |
| Status |
string |
否 |
執行個體狀態。取值範圍:
|
Running |
| ResourceGroupId |
string |
否 |
執行個體所屬的資源群組 ID。 |
rg-aekzh43v***** |
| WithEvent |
boolean |
否 |
是否返回事件資訊。 |
true |
| Tag |
array<object> |
否 |
執行個體標籤資訊。 |
|
|
object |
否 |
執行個體標籤資訊。 |
||
| Key |
string |
否 |
執行個體標籤鍵。 |
name |
| Value |
string |
否 |
執行個體標籤值。 |
test |
| ComputeCategory |
string |
否 |
指定算力類別。取值範圍:
|
economy |
| SecurityGroupId |
string |
否 |
執行個體所屬的安全性群組 ID。 |
sg-uf66jeqopgqa9hdn**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| TotalCount |
integer |
執行個體數量。 |
1 |
| NextToken |
string |
下一個查詢開始的 Token。 |
d78f2dd8-5979-42fe-****-b16db43be5bc |
| RequestId |
string |
請求 ID,唯一標識。 |
89945DD3-9072-47D0-A318-353284CFC7B3 |
| ContainerGroups |
array<object> |
執行個體資訊列表。 |
|
|
array<object> |
執行個體資訊列表。 |
||
| Status |
string |
執行個體狀態。可能值:
|
Running |
| CreationTime |
string |
接到請求後的系統建立時間。UTC 時間,RFC3339 標準。 |
2018-08-02T15:00:00Z |
| VpcId |
string |
執行個體所屬的 VPC ID。 |
vpc-1vzjjflab6wvjox**** |
| InternetIp |
string |
公網 IP。 |
192.0.XX.XX |
| TenantSecurityGroupId |
string |
該參數未開放使用。 |
sg-xxx |
| SecurityGroupId |
string |
安全性群組 ID。 |
sg-bp12ujq5zpxuyjfo3o8r |
| HostAliases |
array<object> |
自訂執行個體內一個容器的 Hostname 映射。 |
|
|
object |
自訂執行個體內一個容器的 Hostname 映射。 |
||
| Hostnames |
array |
主機資訊。 |
|
|
string |
主機名稱。 |
['hehe.com', 'haha.com'] |
|
| Ip |
string |
IP 位址。 |
192.0.XX.XX |
| Tags |
array<object> |
執行個體標籤資訊。 |
|
|
object |
執行個體標籤資訊。 |
||
| Key |
string |
標籤鍵。 |
name |
| Value |
string |
標籤值。 |
test-xh |
| Events |
array<object> |
事件資訊,上限 50。 |
|
|
object |
事件資訊,上限 50。 |
||
| Type |
string |
事件類型,可能值:
|
Normal |
| LastTimestamp |
string |
事件結束時間。 |
2018-08-02T15:00:00Z |
| Message |
string |
事件訊息。 |
Started container |
| Name |
string |
事件的歸屬對象名。 |
test-xxx |
| Reason |
string |
事件名。 |
Created |
| Count |
integer |
事件數目量。 |
20 |
| FirstTimestamp |
string |
事件起始時間。 |
2018-08-02T15:00:00Z |
| SucceededTime |
string |
容器全部成功退出後的時間。UTC 時間,RFC3339 標準。 |
2019-12-11T04:33:42Z |
| SpotStrategy |
string |
執行個體的搶佔策略。取值範圍:
|
NoSpot |
| SpotPriceLimit |
number |
搶佔式執行個體的每小時最高價格。 僅當 SpotStrategy 為 SpotWithPriceLimit 時返回。 |
0.025 |
| EphemeralStorage |
integer |
臨時儲存空間大小。單位為:GiB。 |
20 |
| TenantEniInstanceId |
string |
該參數未開放使用。 |
i-xxx |
| Discount |
integer |
折扣。 |
9 |
| RestartPolicy |
string |
容器組的重啟策略。取值範圍:
|
Never |
| Memory |
number |
執行個體層級記憶體大小。單位為 GiB。 |
4.0 |
| TenantVSwitchId |
string |
該參數未開放使用。 |
vsw-xxx |
| Containers |
array<object> |
執行個體包含的容器列表。 |
|
|
array<object> |
執行個體包含的容器列表。 |
||
| LivenessProbe |
object |
存活探針。 |
|
| SuccessThreshold |
integer |
從上次檢查失敗後重新認定檢查成功的檢查次數閾值(必須是連續成功),預設為 1。當前必須為 1。 |
1 |
| InitialDelaySeconds |
integer |
檢查開始執行的時間,以容器啟動完成為起點計算。 |
10 |
| FailureThreshold |
integer |
從上次檢查成功後認定檢查失敗的檢查次數閾值(必須是連續失敗),預設為 3。 |
3 |
| TimeoutSeconds |
integer |
檢查逾時的時間,預設為 1 秒,最小為 1 秒。 |
10 |
| TcpSocket |
object |
TcpSocket。 |
|
| Host |
string |
主機名稱。 |
1.2.3.4 |
| Port |
integer |
連接埠號碼。 |
80 |
| Execs |
array |
執行命令。 |
|
|
string |
執行命令。 |
["/bin/sh", "-c", "echo Hello world > /usr/share/message"] |
|
| HttpGet |
object |
HttpGet。 |
|
| Scheme |
string |
HTTP 或 HTTPS。 |
HTTP |
| Path |
string |
HttpGet 檢測的路徑。 |
/usr/nginx/ |
| Port |
integer |
HttpGet 檢測的連接埠。 |
80 |
| PeriodSeconds |
integer |
檢查執行的周期,預設為 10 秒,最小為 1 秒。 |
5 |
| Commands |
array |
容器啟動命令。 |
|
|
string |
容器啟動命令。 |
[/bin/sh echo] |
|
| VolumeMounts |
array<object> |
掛載的資料卷資訊。 |
|
|
object |
掛載的資料卷資訊。 |
||
| MountPropagation |
string |
資料卷的掛載傳播設定。掛載傳播允許將 Container 掛載的卷共用到同一 Pod 中的其他 Container,甚至可以共用到同一節點上的其他 Pod。可能值:
|
None |
| MountPath |
string |
掛載目錄,容器的掛載目錄下的內容被 Volume 的內容直接覆蓋。 |
/usr/share/ |
| ReadOnly |
boolean |
是否唯讀。 |
false |
| Name |
string |
資料卷名稱。 |
test-empty |
| SubPath |
string |
資料卷下的子目錄。方便執行個體將同一個資料卷下的不同目錄掛載到容器的不同目錄。 |
/usr/sub |
| Args |
array |
容器啟動參數。 |
|
|
string |
容器啟動參數。 |
["hello"] |
|
| Image |
string |
容器鏡像。 |
mysql |
| Ports |
array<object> |
暴露連接埠和協議。 |
|
|
object |
暴露連接埠和協議。 |
||
| Protocol |
string |
協議類型。 |
TCP |
| Port |
integer |
連接埠號碼。可能值:1~65535。 |
8080 |
| RestartCount |
integer |
重啟次數。 |
0 |
| ImagePullPolicy |
string |
鏡像拉取策略。可能值:
|
Always |
| StdinOnce |
boolean |
當標準輸入為 true 時,標準輸入資料流將在多個附加會話中保持開啟狀態。如果 StdinOnce 設為 true,標準輸入在容器開啟時被開啟,在首個用戶端附加到標準輸入之前都為空白,然後會一直保持開啟狀態,接收資料,直到用戶端串連斷開,此時標準輸入被關閉,在容器重啟前一直保持關閉狀態。 |
true |
| Cpu |
number |
容器的 vCPU 大小。 |
2.0 |
| PreviousState |
object |
上一次狀態。 |
|
| StartTime |
string |
容器運行開始時間。 |
2021-12-02T15:00:00Z |
| FinishTime |
string |
容器運行結束時間。 |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
狀態詳情。 |
working |
| State |
string |
容器狀態。可能值:
|
Terminated |
| Message |
string |
容器狀態資訊。 |
Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx) |
| Signal |
integer |
容器狀態訊號。 |
1 |
| ExitCode |
integer |
容器運行退出碼。 |
0 |
| Reason |
string |
容器狀態 Reason。 |
Completed |
| Tty |
boolean |
是否開啟互動。預設為 false。例如:當 Command 配置為 |
false |
| WorkingDir |
string |
工作目錄。 |
/usr/local/nginx |
| CurrentState |
object |
容器目前狀態。 |
|
| StartTime |
string |
容器運行開始時間。 |
2021-12-02T15:00:00Z |
| FinishTime |
string |
容器運行結束時間。 |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
容器狀態詳情。 |
working |
| State |
string |
容器狀態,可能值:
|
Terminated |
| Message |
string |
容器狀態資訊。 |
Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx) |
| Signal |
integer |
容器狀態訊號。 |
1 |
| ExitCode |
integer |
容器運行退出碼。 |
0 |
| Reason |
string |
容器狀態 Reason。 |
Started |
| Ready |
boolean |
指定容器是否已通過其就緒探針。 |
true |
| Gpu |
integer |
GPU 個數。 |
1 |
| SecurityContext |
object |
執行個體啟動並執行安全上下文。 |
|
| ReadOnlyRootFilesystem |
boolean |
是否唯讀根檔案系統,目前僅支援 True。 |
true |
| RunAsUser |
integer |
運行容器的使用者識別碼。 |
1000 |
| Capability |
object |
容器內的進程所具備的特定許可權。 |
|
| Adds |
array |
容器內的進程所具備的特定許可權。 |
|
|
string |
容器內的進程所具備的特定許可權。 |
[NET_ADMIN] |
|
| Memory |
number |
容器記憶體大小。單位為 GiB。 |
2.0 |
| Stdin |
boolean |
此容器是否應在容器運行時為標準輸入分配緩衝區。如果未設定,則容器中標準輸入的讀取值將導致 EOF。預設為 false。 |
true |
| Name |
string |
容器名稱。 |
nginx |
| EnvironmentVars |
array<object> |
環境變數。 |
|
|
array<object> |
環境變數。 |
||
| Key |
string |
環境變數名。 |
PATH |
| Value |
string |
環境變數值。 |
/usr/bin/ |
| ValueFrom |
object |
環境變數值的來源。 如果值不為空白,則無法使用。 |
|
| FieldRef |
object |
指定欄位。 |
|
| FieldPath |
string |
欄位的路徑。 |
status.podIP |
| ReadinessProbe |
object |
應用業務探針(即就緒探針),用於檢查容器是否已經就緒,可以為請求提供服務。 |
|
| SuccessThreshold |
integer |
從上次檢查失敗後重新認定檢查成功的檢查次數閾值(必須是連續成功),預設為 1。當前必須為 1。 |
1 |
| InitialDelaySeconds |
integer |
檢查開始執行的時間,以容器啟動完成為起點計算。 |
5 |
| FailureThreshold |
integer |
從上次檢查成功後認定檢查失敗的檢查次數閾值(必須是連續失敗),預設為 3。 |
3 |
| TimeoutSeconds |
integer |
檢查逾時的時間,預設為 1 秒,最小為 1 秒。 |
1 |
| TcpSocket |
object |
使用 TCP Socket 方式進行健全狀態檢查。 |
|
| Host |
string |
Host。 |
1.2.3.4 |
| Port |
integer |
連接埠號碼。 |
8888 |
| Execs |
array |
使用命令列方式進行健全狀態檢查時,在容器內執行的命令。 |
|
|
string |
使用命令列方式進行健全狀態檢查時,在容器內執行的命令。 |
["/bin/sh", "-c", "echo Hello world > /usr/share/message"] |
|
| HttpGet |
object |
使用 HTTP 要求方式進行健全狀態檢查。 |
|
| Scheme |
string |
HTTP/HTTPS。 |
HTTP |
| Path |
string |
HttpGet 檢測的路徑。 |
/usr/local |
| Port |
integer |
HttpGet 檢測的連接埠號碼。 |
8080 |
| PeriodSeconds |
integer |
檢查執行的周期,預設為 10 秒,最小為 1 秒。 |
1 |
| EniInstanceId |
string |
彈性網卡 ID。 |
eni-bp14rzqi6fd8satm**** |
| InitContainers |
array<object> |
Init 容器列表。 |
|
|
array<object> |
Init 容器列表。 |
||
| VolumeMounts |
array<object> |
Init 容器掛載的資料卷資訊。 |
|
|
object |
Init 容器掛載的資料卷資訊。 |
||
| MountPropagation |
string |
資料卷的掛載傳播設定。掛載傳播允許將 Container 掛載的卷共用到同一 Pod 中的其他 Container,甚至可以共用到同一節點上的其他 Pod。可能值:
|
None |
| MountPath |
string |
掛載目錄,容器的掛載目錄下的內容被 Volume 的內容直接覆蓋。 |
/usr/share/ |
| ReadOnly |
boolean |
是否唯讀。 |
false |
| Name |
string |
資料卷名稱,同 Volume 中的 Name。 |
test-empty |
| Args |
array |
啟動參數。 |
|
|
string |
啟動參數。 |
['hello world'] |
|
| Image |
string |
鏡像。 |
nginx |
| Ports |
array<object> |
暴露連接埠和協議。 |
|
|
object |
暴露連接埠和協議。 |
||
| Protocol |
string |
協議類型。 |
TCP |
| Port |
integer |
連接埠號碼。可能值:1~65535。 |
8888 |
| RestartCount |
integer |
重啟次數。 |
5 |
| ImagePullPolicy |
string |
鏡像拉取策略。可能值:
|
Always |
| PreviousState |
object |
上一次狀態。 |
|
| StartTime |
string |
容器運行開始時間。 |
2021-12-02T15:00:00Z |
| FinishTime |
string |
容器運行結束時間。 |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
狀態詳情。 |
working |
| State |
string |
容器狀態,枚舉值:Waiting,Running,Terminated。 |
Terminated |
| Message |
string |
容器狀態資訊。 |
Started container |
| Signal |
integer |
容器狀態訊號。 |
1 |
| ExitCode |
integer |
容器運行退出碼。 |
0 |
| Reason |
string |
容器狀態 Reason。 |
completed |
| WorkingDir |
string |
工作目錄。 |
/usr/test |
| Cpu |
number |
vCPU 大小。 |
1.0 |
| CurrentState |
object |
目前狀態。 |
|
| StartTime |
string |
容器運行開始時間。 |
2021-12-02T15:00:00Z |
| FinishTime |
string |
容器運行結束時間。 |
2021-12-02T15:01:00Z |
| DetailStatus |
string |
狀態詳情。 |
working |
| State |
string |
容器狀態,可能值:
|
Running |
| Message |
string |
事件訊息。 |
Created container |
| Signal |
integer |
容器狀態訊號。 |
1 |
| ExitCode |
integer |
容器退出碼。 |
0 |
| Reason |
string |
容器狀態 Reason。 |
Started |
| Command |
array |
啟動命令。 |
|
|
string |
啟動命令。 |
[/bin/sh echo] |
|
| Ready |
boolean |
指定容器是否已通過其就緒探針。 |
true |
| Gpu |
integer |
GPU 個數。 |
1 |
| SecurityContext |
object |
容器啟動並執行安全上下文。 |
|
| ReadOnlyRootFilesystem |
boolean |
是否唯讀根檔案系統,目前僅支援 True。 |
true |
| RunAsUser |
integer |
用於運行容器進程進入點的 UID。 |
1557 |
| Capability |
object |
容器內的進程所具備的特定許可權。 |
|
| Adds |
array |
容器內的進程所具備的特定許可權。 |
|
|
string |
容器內的進程所具備的特定許可權。 |
NET_ADMIN |
|
| Memory |
number |
Init 容器記憶體大小。單位為 GiB。 |
2.0 |
| Name |
string |
容器名稱。 |
Init-xxx |
| EnvironmentVars |
array<object> |
環境變數。 |
|
|
array<object> |
環境變數。 |
||
| Key |
string |
環境變數名。 |
PATH |
| Value |
string |
環境變數值。 |
/usr/local/bin |
| ValueFrom |
object |
環境變數值的來源。 如果值不為空白,則無法使用。 |
|
| FieldRef |
object |
指定的欄位。 |
|
| FieldPath |
string |
指定的版本中選擇欄位的路徑。目前只支援 |
status.podIP |
| ContainerGroupId |
string |
執行個體 ID。 |
eci-bp1jrgfqqy54kg5hc**** |
| TenantEniIp |
string |
該參數未開放使用。 |
10.10.XX.XX |
| InstanceType |
string |
指定的 ECS 執行個體規格。 |
ecs.g5.large |
| IntranetIp |
string |
內網 IP。 |
172.16.XX.XX |
| Ipv6Address |
string |
IPv6 地址。 |
2001:XXXX:4:4:4:4:4:4 |
| RegionId |
string |
執行個體所屬的地區 ID。 |
cn-hangzhou |
| DnsConfig |
object |
DNS 配置資訊。 |
|
| Searches |
array |
DNS 搜尋域列表。 |
|
|
string |
DNS 搜尋域。 |
svc.local.kubenetes |
|
| Options |
array<object> |
對象選項列表,每個對象由 Name 和 Value(可選)構成。 |
|
|
object |
對象選項列表,每個對象由 Name 和 Value(可選)構成。 |
||
| Value |
string |
物件變數值。 |
value |
| Name |
string |
物件變數名。 |
name |
| NameServers |
array |
DNS 伺服器 IP 位址列表。 |
|
|
string |
IP 位址。 |
[10.2.*.*] |
|
| Volumes |
array<object> |
資料卷資訊。 |
|
|
array<object> |
資料卷資訊。 |
||
| Type |
string |
資料卷類型,可能值:
|
EmptyDirVolume |
| DiskVolumeDiskId |
string |
DiskVolume 的 ID。 |
d-xxxx |
| NFSVolumeReadOnly |
boolean |
是否唯讀。 |
false |
| ConfigFileVolumeConfigFileToPaths |
array<object> |
設定檔路徑列表。 |
|
|
object |
設定檔路徑列表。 |
||
| Path |
string |
相對檔案路徑。 |
/usr/bin/ |
| Content |
string |
設定檔內容 (32KB)。 |
hello world |
| FlexVolumeFsType |
string |
掛載的檔案系統類型,預設取決於 FlexVolume 的 script。 |
ntfs |
| FlexVolumeDriver |
string |
用於 FlexVolume 的驅動程式名稱。 |
flexvolume |
| DiskVolumeFsType |
string |
資料卷類型。 |
xfs |
| FlexVolumeOptions |
string |
FlexVolume 對象選項列表。 |
[nolock,tcp,noresvport] |
| NFSVolumeServer |
string |
NFS 伺服器地址。 |
0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com |
| NFSVolumePath |
string |
NFS 資料卷路徑。 |
/eci |
| Name |
string |
資料卷名稱。 |
test-empty |
| EmptyDirVolumeMedium |
string |
EmptyDir 資料卷的儲存媒介。預設為空白,表示使用 node 檔案系統。支援配置為以下值:
|
Memory |
| EmptyDirVolumeSizeLimit |
string |
EmptyDir 資料卷的大小。 |
256Mi |
| RamRoleName |
string |
執行個體 RAM 角色名稱,ECI 與 ECS 共用執行個體 RAM 角色,具體操作,請參見通過 API 使用執行個體 RAM 角色。 |
ram:PassRole |
| VSwitchId |
string |
虛擬交換器 ID。 |
vsw-bp1vzjjflab6wvjox**** |
| Cpu |
number |
執行個體層級 vCPU 大小。 |
2.0 |
| ExpiredTime |
string |
由於賬戶欠費導致執行個體運行失敗的時間。UTC 時間,RFC3339 標準。 |
2018-08-02T15:00:00Z |
| ResourceGroupId |
string |
資源群組 ID。 |
rg-8db03793gfrz**** |
| ZoneId |
string |
執行個體所屬的可用性區域。 |
cn-hangzhou-h |
| ContainerGroupName |
string |
執行個體名稱。 |
test |
| EciSecurityContext |
object |
容器組啟動並執行安全上下文。 |
|
| Sysctls |
array<object> |
sysctl 參數。 |
|
|
object |
sysctl 參數。 |
||
| Value |
string |
sysctl 參數值。 |
65536 |
| Name |
string |
sysctl 參數名。 |
kernel.msgmax |
| FailedTime |
string |
執行個體運行失敗的時間。UTC 時間,RFC 3339 標準。 |
2018-08-02T15:00:00Z |
| ComputeCategory |
string |
算力類別。可能值:
|
economy |
| DnsPolicy |
string |
DNS 策略。可能值
|
None |
樣本
正常返回樣本
JSON格式
{
"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"
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.MismatchInstanceType | The instanceId mismatch instance type. | 執行個體類型錯誤 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。