资源:NodePool
集群中具有相同配置和规范的一组 Kubernetes 节点。
| JSON 表示法 |
|---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "nodeLocation": string, "nodeCount": integer, "machineFilter": string, "localDiskEncryption": { object ( |
| 字段 | |
|---|---|
name |
必需。节点池的资源名称。 |
createTime |
仅限输出。节点池的创建时间。 时间戳采用 RFC3339 世界协调时间(UTC,即“祖鲁时”)格式,精确到纳秒,最多九个小数位。示例: |
updateTime |
仅限输出。节点池的上次更新时间。 时间戳采用 RFC3339 世界协调时间(UTC,即“祖鲁时”)格式,精确到纳秒,最多九个小数位。示例: |
labels |
与此资源关联的标签。 包含一系列 |
nodeLocation |
要在其中创建此节点池的 Google Distributed Cloud Edge 地区的名称。例如: |
nodeCount |
必需。池中的节点数。 |
machineFilter |
只有与此过滤条件匹配的机器才能加入节点池。过滤语言接受“name= |
localDiskEncryption |
可选。本地磁盘加密选项。此字段仅在启用 CMEK 支持时使用。 |
nodeVersion |
仅限输出。所有工作器节点中的最低发布版本。 |
nodeConfig |
可选。NodePool 中每个节点的配置 |
LocalDiskEncryption
边缘机器本地磁盘加密的 CMEK 支持配置。
| JSON 表示法 |
|---|
{ "kmsKey": string, "kmsKeyActiveVersion": string, "kmsKeyState": enum ( |
| 字段 | |
|---|---|
kmsKey |
不可变。用于保护节点本地磁盘的 Cloud KMS 加密密钥,例如 projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}。如果未指定,系统会改用 Google 管理的密钥。 |
kmsKeyActiveVersion |
仅限输出。当前用于保护节点本地磁盘的 Cloud KMS CryptoKeyVersion。仅在设置了 kmsKey 的情况下适用。 |
kmsKeyState |
仅限输出。Cloud KMS CryptoKey 的可用性。如果不是 |
kmsStatus |
仅限输出。使用此密钥时 Cloud KMS 返回的错误状态。仅当 |
NodeConfig
NodePool 中每个节点的配置
| JSON 表示法 |
|---|
{ "labels": { string: string, ... } } |
| 字段 | |
|---|---|
labels |
可选。Kubernetes 节点标签 包含一系列 |
方法 |
|
|---|---|
|
在给定的项目和位置中创建一个新 NodePool。 |
|
删除单个 NodePool。 |
|
获取单个 NodePool 的详细信息。 |
|
列出给定项目和位置中的 NodePool。 |
|
更新单个 NodePool 的参数。 |