mirror of
https://github.com/kubesphere/website.git
synced 2025-12-29 07:12:48 +00:00
Update metering doc.
Signed-off-by: Rao Yunkun <yunkunrao@yunify.com>
This commit is contained in:
parent
0b8fc0dd02
commit
6b426d493d
|
|
@ -10,7 +10,7 @@ weight: 15420
|
|||
|
||||
默认计费(billing)功能是关闭的,可以通过以下步骤开启计费功能:
|
||||
|
||||
1. 在 ConfigMap `kubesphere-config` 中指定不同资源类型的价格(初始为-1)
|
||||
1. 在 ConfigMap `kubesphere-config` 中指定 `retentionDay` 和相关资源的价格信息
|
||||
|
||||
```shell
|
||||
# kubectl edit cm kubesphere-config -n kubesphere-system
|
||||
|
|
@ -36,7 +36,7 @@ kind: ConfigMap
|
|||
...
|
||||
```
|
||||
|
||||
> 可以通过上述配置`retentionDay`和`billing`相关参数来开启计费功能。其中`retentionDay`参数需要与Prometheus中的`retention`参数保持一致。 而`billing`部分包含货币单位在内的价格信息:货币目前支持人民币 (CNY) 和美元 (USD) ,如果指定其他币种,则前端统一显示人民币。举例来说,上面配置的含义是 CPU 每 core 每小时 1.5 美元,内存每 GB 每小时 5 美元, ingress 网络流量每 MB 每小时 1 美元, egress 网络流量每 MB 每小时 1 美元, PVC 每 GB 每小时 2.1 美元。
|
||||
> 可以通过配置 `retentionDay` 和 `billing` 相关参数来开启计费功能。其中 `retentionDay` 参数需要与 Prometheus 中的 `retention` 参数保持一致。 而 `billing` 部分包含货币单位在内的价格信息:货币目前支持人民币 (CNY) 和美元 (USD) ,如果指定其他币种,则前端统一显示人民币。举例来说,上面配置的含义是 CPU 每 core 每小时 1.5 美元,内存每 GB 每小时 5 美元, ingress 网络流量每 MB 每小时 1 美元, egress 网络流量每 MB 每小时 1 美元, PVC 每 GB 每小时 2.1 美元。
|
||||
|
||||
|
||||
2. 重启 ks-apiserver
|
||||
|
|
|
|||
Loading…
Reference in New Issue