|
|
@@ -353,17 +353,14 @@ It is refreshed automatically, as long as the node is alive.
|
|
|
|
|
|
cluster_k8s_address_type {
|
|
|
desc {
|
|
|
- en: """Address type used for connecting to the discovered nodes."""
|
|
|
+ en: """Address type used for connecting to the discovered nodes.
|
|
|
+setting <code>cluster.k8s.address_type</code> to <code>ip</code> will
|
|
|
+make EMQX to discover IP addresses of peer nodes from Kubernetes API.
|
|
|
+"""
|
|
|
zh: """当使用 k8s 方式集群时,address_type 用来从 Kubernetes 接口的应答里获取什么形式的 Host 列表。
|
|
|
-指定 cluster.k8s.address_type 为 ip,则将从 Kubernetes 接口中获取 emqx 服务的 IP 地址列表:
|
|
|
-- 172.16.122.31 </br>
|
|
|
-- 172.16.122.32 </br>
|
|
|
-- 172.16.122.33 </br>
|
|
|
-然后与 cluster.k8s.app_name 配置指定的 app name 拼接,得到 emqx 节点列表: </br>
|
|
|
-- emqx@172.16.122.31
|
|
|
-- emqx@172.16.122.32
|
|
|
-- emqx@172.16.122.33
|
|
|
- """
|
|
|
+指定 <code>cluster.k8s.address_type</code. 为 <code>ip</code>,则将从 Kubernetes 接口中获取集群中其他节点
|
|
|
+的IP地址。
|
|
|
+"""
|
|
|
}
|
|
|
label {
|
|
|
en: "K8s Address Type"
|
|
|
@@ -371,22 +368,6 @@ It is refreshed automatically, as long as the node is alive.
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- cluster_k8s_app_name {
|
|
|
- desc {
|
|
|
- en: """This parameter should be set to the part of the <code>node.name</code>
|
|
|
-before the '@'.</br>
|
|
|
-For example, if the <code>node.name</code> is <code>emqx@127.0.0.1</code>, then this parameter
|
|
|
-should be set to <code>emqx</code>."""
|
|
|
- zh: """app_name 用来跟获取的 Host 列表拼接,得到节点列表。</br>
|
|
|
-当 cluster.discovery_strategy 为 k8s 时,此配置项才有效。
|
|
|
- """
|
|
|
- }
|
|
|
- label {
|
|
|
- en: "K8s App Name"
|
|
|
- zh: "K8s 节点名前缀"
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
cluster_k8s_namespace {
|
|
|
desc {
|
|
|
en: """Kubernetes namespace."""
|