資源:NodePool
叢集中的一組 Kubernetes 節點,具有共同的設定和規格。
| JSON 表示法 |
|---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "nodeLocation": string, "nodeCount": integer, "machineFilter": string, "localDiskEncryption": { object ( |
| 欄位 | |
|---|---|
name |
這是必要旗標,節點集區的資源名稱。 |
createTime |
僅供輸出。建立節點集區的時間。 使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例: |
updateTime |
僅供輸出。上次更新節點集區的時間。 使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例: |
labels |
與這項資源相關聯的標籤。 包含 |
nodeLocation |
要建立這個節點集區的 Google Distributed Cloud Edge 可用區名稱。例如: |
nodeCount |
這是必要旗標,集區中的節點數量。 |
machineFilter |
只有符合這個篩選條件的機器才能新增至節點集區。篩選語言接受「name= |
localDiskEncryption |
選用。本機磁碟加密選項。只有在啟用 CMEK 支援時,才會使用這個欄位。 |
nodeVersion |
僅供輸出。所有 worker 節點中最低的發布版本。 |
nodeConfig |
選用。NodePool 中各節點的設定 |
LocalDiskEncryption
CMEK 支援邊緣機器本機磁碟加密的設定。
| JSON 表示法 |
|---|
{ "kmsKey": string, "kmsKeyActiveVersion": string, "kmsKeyState": enum ( |
| 欄位 | |
|---|---|
kmsKey |
選用。Cloud KMS CryptoKey,例如 projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey},用於保護節點本機磁碟。如未指定,系統會改用 Google 代管的金鑰。 |
kmsKeyActiveVersion |
僅供輸出。目前用於保護節點本機磁碟的 Cloud KMS CryptoKeyVersion。只有在設定 kmsKey 時才適用。 |
kmsKeyState |
僅供輸出。Cloud KMS CryptoKey 的可用性。如果不是 |
kmsStatus |
僅供輸出。使用這組金鑰時,Cloud KMS 傳回的錯誤狀態。只有在 |
resourceState |
僅供輸出。與 CMEK 相關聯的目前資源狀態。 |
NodeConfig
NodePool 中各節點的設定
| JSON 表示法 |
|---|
{ "labels": { string: string, ... }, "nodeStorageSchema": string, "nodeSystemPartitionSize": enum /1.13.0/docs/f="/distributed-cloud/connected/latest/docs/reference/container/rest/v1/SystemPartitionGiBSize">SystemPartitionGiBSize) } |
| 欄位 | |
|---|---|
labels |
選用。Kubernetes 節點標籤 包含 |
nodeStorageSchema |
選用。worker 節點儲存空間結構定義的名稱。 |
nodeSystemPartitionSize |
選用。worker 節點的系統分區大小 (以 GiB 為單位)。 |
方法 |
|
|---|---|
|
在指定專案和位置建立新的 NodePool。 |
|
刪除單一 NodePool。 |
|
取得單一 NodePool 的詳細資料。 |
|
列出指定專案和位置中的節點集區。 |
|
更新單一 NodePool 的參數。 |