|
|
@@ -245,11 +245,12 @@ Note: probe messages are broadcast to all the specified ports.
|
|
|
|
|
|
cluster_dns_name {
|
|
|
desc {
|
|
|
- en: """The domain name of the EMQX cluster."""
|
|
|
- zh: """指定 DNS A 记录的名字。emqx 会通过访问这个 DNS A 记录来获取 IP 地址列表,
|
|
|
-然后拼接 cluster.dns.app 里指定的 APP 名得到集群中所有节点的列表。
|
|
|
-当 cluster.discovery_strategy 为 dns 时,此配置项才有效。
|
|
|
- """
|
|
|
+ en: """The domain name from which to discover peer EMQX nodes' IP addresses.
|
|
|
+Applicable when <code>cluster.discovery_strategy = dns</code>
|
|
|
+"""
|
|
|
+ zh: """指定 DNS A 记录的名字。emqx 会通过访问这个 DNS A 记录来获取 IP 地址列表。
|
|
|
+当<code>cluster.discovery_strategy</code> 为 <code>dns</code> 时有效。
|
|
|
+"""
|
|
|
}
|
|
|
label {
|
|
|
en: "Cluster Dns Name"
|
|
|
@@ -257,19 +258,6 @@ Note: probe messages are broadcast to all the specified ports.
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- cluster_dns_app {
|
|
|
- desc {
|
|
|
- en: """The symbolic name of the EMQX service."""
|
|
|
- zh: """用来与从 cluster.dns.name 获取的 IP 列表拼接得到节点名列表。
|
|
|
-当 cluster.discovery_strategy 为 dns 时,此配置项才有效。
|
|
|
- """
|
|
|
- }
|
|
|
- label {
|
|
|
- en: "Cluster DNS App"
|
|
|
- zh: "DNS前缀标识"
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
cluster_etcd_server {
|
|
|
desc {
|
|
|
en: """List of endpoint URLs of the etcd cluster"""
|
|
|
@@ -353,17 +341,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 +356,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."""
|