From 69c4b09a531e14227f1e06bde83f7d3ffd2ce0e0 Mon Sep 17 00:00:00 2001 From: ucloudhsl Date: Wed, 23 Jun 2021 20:14:08 +0800 Subject: [PATCH] =?UTF-8?q?VK=20=E5=88=9B=E5=BB=BA=20cube=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- administercluster/virtual_kubelet.md | 21 ++++++++++++++++++++- network/static_ip.md | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/administercluster/virtual_kubelet.md b/administercluster/virtual_kubelet.md index 82b98a13..4f7eade2 100644 --- a/administercluster/virtual_kubelet.md +++ b/administercluster/virtual_kubelet.md @@ -56,4 +56,23 @@ tolerations: |1|1Gi/2Gi/4Gi| |2|2Gi/4Gi/8Gi| |4|4Gi/8Gi/16Gi| -|8|8Gi/16Gi| \ No newline at end of file +|8|8Gi/16Gi| + +### 详细注释说明 + +通过 VK 插件创建 Cube 时,支持在 Pod annotations,或 Deployment / Statefulset spec.template.annotations 中添加相应字段,为 Cube 进行进一步配置 + +| 注释名称 | 注释 | 参数类型 | 注释说明 | 默认值 | +| ------ | ------ | ------ | ------ | ------ | +| 指定业务组名称 | cube.ucloud.cn/cube-tag | string | 需要指定的业务组的名称 | / | +| 付费模式 | cube.ucloud.cn/cube-chargetype | year/month/postpay | 即按年预付费、按月预付费、按秒后付费,请参照[计费说明](/cube/introduction/charge) | postpay | +| 付费时长 | cube.ucloud.cn/cube-quantity | int | 月付时,此参数传 0,代表购买至月末 | 1 | +| 绑定 EIP | cube.ucloud.cn/cube-eip | true/false | 创建的 Cube 是否需要绑定 EIP | false | +| 绑定已有 EIP | cube.ucloud.cn/cube-eip-id | eip-xxxxxxxx | 指定的 EIP ID | /,仅在 cube.ucloud.cn/cube-eip: "true" 时生效,
如该项留空,则创建新的 EIP | +| EIP 计费模式 | cube.ucloud.cn/cube-eip-paymode | traffic/bandwidth/sharebandwidth | EIP 计费模式,分别代表流量计费 / 带宽计费 / 共享带宽模式 | bandwidth | +| 共享带宽 ID | cube.ucloud.cn/cube-eip-share-bandwidth-id | 仅在 EIP 计费模式为「共享带宽」时生效 | bwshare-xxxxxx | / | +| EIP 带宽 | cube.ucloud.cn/cube-eip-bandwidth | int | 绑定 EIP 的外网带宽大小,共享带宽模式必须指定 0 | 2 | +| EIP 付费模式 | cube.ucloud.cn/cube-eip-chargetype | year/month/dynamic | EIP 付费模式,即按年预付费、按月预付费、按时后付费 | 取 cube.ucloud.cn/cube-chargetype 值;
该项为 postpay 时取 dynamic | +| EIP 付费时长 | cube.ucloud.cn/cube-eip-quantity | int | EIP 付费时长 | 取 cube.ucloud.cn/cube-quantity 值 | +| EIP 释放策略 | cube.ucloud.cn/cube-eip-release | true/false | 删除 Cube 实例时是否需要释放绑定的 EIP | true | +| 防火墙 | cube.ucloud.cn/cube-eip-security-group-id | firewall-xxxxxxxx | 需要绑定的外网防火墙策略,不指定时绑定项目默认防火墙 |/ | \ No newline at end of file diff --git a/network/static_ip.md b/network/static_ip.md index 5315e611..fe6327b3 100644 --- a/network/static_ip.md +++ b/network/static_ip.md @@ -18,7 +18,7 @@ kubectl apply -f https://gitee.com/uk8s/uk8s/raw/master/yaml/network/cni-vpc-ipa 当前仅支持通过 Yaml 形式创建固定 IP 类型的 StatefulSet,需要您在 spec.template.annotations 添加相应注释进行配置,后续版本将支持通过控制台表单创建: -| 注释 | 注释说明 | 变量值 | 默认值 | +| 注释 | 注释说明 | 参数类型 | 默认值 | |--------|--------|--------|--------| | network.beta.kubernetes.io/ucloud-statefulset-static-ip | 是否需要开启固定 IP 功能 | true / false | false | | network.beta.kubernetes.io/ucloud-statefulset-ip-claim-policy | IP 回收策略,即 Pod 销毁及绑定的 VpcIP 解绑后释放的时间 | hms / Never
例:1h10m20s 代表 VpcIP 解绑后 1 小时 10 分 20 秒后被释放| Never |