You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by yu...@apache.org on 2023/05/07 16:04:39 UTC
[yunikorn-site] branch master updated: [YUNIKORN-1678] Add instance type support to doc. (#288)
This is an automated email from the ASF dual-hosted git repository.
yuteng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-site.git
The following commit(s) were added to refs/heads/master by this push:
new 007f5e5ba [YUNIKORN-1678] Add instance type support to doc. (#288)
007f5e5ba is described below
commit 007f5e5baa293717e21bd5ef239501308af6e818
Author: Qi Zhu <82...@qq.com>
AuthorDate: Mon May 8 00:04:33 2023 +0800
[YUNIKORN-1678] Add instance type support to doc. (#288)
---
docs/design/config_v2.md | 1 +
docs/user_guide/service_config.md | 12 ++++++++++++
.../current/user_guide/service_config.md | 12 ++++++++++++
3 files changed, 25 insertions(+)
diff --git a/docs/design/config_v2.md b/docs/design/config_v2.md
index ae190bd4b..e943bf489 100644
--- a/docs/design/config_v2.md
+++ b/docs/design/config_v2.md
@@ -176,6 +176,7 @@ specified. Note that these values are subject to change in future releases.
service.disableGangScheduling: "false"
service.enableConfigHotRefresh: "true"
service.placeholderImage: "registry.k8s.io/pause:3.7"
+ service.instanceTypeNodeLabelKey: "node.kubernetes.io/instance-type"
health.checkInterval: "30s"
log.level: "0"
kubernetes.qps: "1000"
diff --git a/docs/user_guide/service_config.md b/docs/user_guide/service_config.md
index aa1727c73..5c707a53b 100644
--- a/docs/user_guide/service_config.md
+++ b/docs/user_guide/service_config.md
@@ -443,6 +443,7 @@ data:
service.disableGangScheduling: "false"
service.enableConfigHotRefresh: "true"
service.placeholderImage: "registry.k8s.io/pause:3.7"
+ service.instanceTypeNodeLabelKey: "node.kubernetes.io/instance-type"
health.checkInterval: "30s"
log.level: "0"
kubernetes.qps: "1000"
@@ -606,6 +607,17 @@ Example:
```yaml
service.placeholderImage: "registry.k8s.io/pause:3.6"
```
+#### service.instanceTypeNodeLabelKey
+Sets the node label that will be used to determine the instance type of node.
+
+A change to this setting requires a restart of YuniKorn to take effect.
+
+Default: `node.kubernetes.io/instance-type`
+
+Example:
+```yaml
+service.instanceTypeNodeLabelKey: "node.kubernetes.io/my-instance-type"
+```
### Health settings
#### health.checkInterval
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/service_config.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/service_config.md
index 3a477f679..362c1af74 100644
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/service_config.md
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/user_guide/service_config.md
@@ -415,6 +415,7 @@ YuniKorn的服务配置由两个 Kubernetes ConfigMaps 控制,它们分别是
service.disableGangScheduling: "false"
service.enableConfigHotRefresh: "true"
service.placeholderImage: "registry.k8s.io/pause:3.7"
+ service.instanceTypeNodeLabelKey: "node.kubernetes.io/instance-type"
health.checkInterval: "30s"
log.level: "0"
kubernetes.qps: "1000"
@@ -566,6 +567,17 @@ YuniKorn可理解以下参数:
service.placeholderImage: "registry.k8s.io/pause:3.6"
+#### service.instanceTypeNodeLabelKey
+设置节点标签的键,该键用于标识节点的实例类型。如果设置了此值,则YuniKorn将使用此标签来区分节点的实例类型。
+
+更改此设置需要重新启动YuniKorn才能生效。
+
+默认值: `node.kubernetes.io/instance-type`
+
+示例:
+
+ service.instanceTypeNodeLabelKey: "node.kubernetes.io/my-instance-type"
+
### 健康检查设置
#### health.checkInterval