From f5e9eaabb7ccc46c004ec90f40a3dadb68ae1548 Mon Sep 17 00:00:00 2001 From: Bettygogo2021 Date: Thu, 8 Dec 2022 20:20:38 +0800 Subject: [PATCH] update agent connection Signed-off-by: Bettygogo2021 --- .../enable-multicluster/agent-connection.md | 8 +++++--- .../enable-multicluster/agent-connection.md | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/content/en/docs/v3.3/multicluster-management/enable-multicluster/agent-connection.md b/content/en/docs/v3.3/multicluster-management/enable-multicluster/agent-connection.md index ccbb6c81c..66ce91eeb 100644 --- a/content/en/docs/v3.3/multicluster-management/enable-multicluster/agent-connection.md +++ b/content/en/docs/v3.3/multicluster-management/enable-multicluster/agent-connection.md @@ -132,7 +132,7 @@ Generally, there is always a LoadBalancer solution in the public cloud, and the {{< tab "No LoadBalancer available in your cluster" >}} - ``` + 1. Run the following command to check the service: ```shell @@ -145,7 +145,7 @@ Generally, there is always a LoadBalancer solution in the public cloud, and the tower LoadBalancer 10.233.63.191 8080:30721/TCP 16h ``` -2. If `EXTERNAL-IP` is `pending`, you need to manually set the proxy address. For example, if your public IP address is `139.198.120.120`, you need to expose port (for example, `8080`) of this public IP address to :. +2. If `EXTERNAL-IP` is `pending`, you need to manually set the proxy address. For example, if your public IP address is `139.198.120.120`, you need to expose port (for example, `30721`) of this public IP address to `NodeIP`:`NodePort`. 3. Add the value of `proxyPublishAddress` to the configuration file of `ks-installer` and provide the public IP address (`139.198.120.120` in this tutorial) and port number as follows. @@ -164,9 +164,11 @@ Generally, there is always a LoadBalancer solution in the public cloud, and the ```yaml multicluster: clusterRole: host - proxyPublishAddress: http://139.198.120.120:8080 # Add this line to set the address to access tower + proxyPublishAddress: http://139.198.120.120:{NodePort} # Add this line to set the address to access tower ``` + In the YAML file, you need to replace `NodePort` with the port ID you specified in Step 2. + 4. Save the configuration and wait for a while, or you can manually restart `ks-apiserver` to make the change effective immediately using the following command. ```shell diff --git a/content/zh/docs/v3.3/multicluster-management/enable-multicluster/agent-connection.md b/content/zh/docs/v3.3/multicluster-management/enable-multicluster/agent-connection.md index 4f0cb84fc..0e56327d9 100644 --- a/content/zh/docs/v3.3/multicluster-management/enable-multicluster/agent-connection.md +++ b/content/zh/docs/v3.3/multicluster-management/enable-multicluster/agent-connection.md @@ -140,7 +140,7 @@ tower LoadBalancer 10.233.63.191 139.198.110.23 8080:30721/TCP tower LoadBalancer 10.233.63.191 8080:30721/TCP 16h ``` -2. 由于 `EXTERNAL-IP` 处于 `pending` 状态,您需要手动设置代理地址。例如,如果您的公有 IP 地址为 `139.198.120.120`,则需要将公网 IP 的端口,如`8080` 转发到 `NodeIP`:`NodePort`。 +2. 由于 `EXTERNAL-IP` 处于 `pending` 状态,您需要手动设置代理地址。例如,如果您的公有 IP 地址为 `139.198.120.120`,则需要将公网 IP 的端口,如`30721` 转发到 `NodeIP`:`NodePort`。 3. 将 `proxyPublishAddress` 的值添加到 `ks-installer` 的配置文件中,并按如下所示输入公有 IP 地址(此处示例 `139.198.120.120`)和端口号。 @@ -159,8 +159,9 @@ tower LoadBalancer 10.233.63.191 139.198.110.23 8080:30721/TCP ```yaml multicluster: clusterRole: host - proxyPublishAddress: http://139.198.120.120:8080 # Add this line to set the address to access tower + proxyPublishAddress: http://139.198.120.120:{NodePort} # Add this line to set the address to access tower ``` + 请将 YAML 文件中的 {NodePort} 替换为您在步骤 2 中指定的端口。 4. 保存配置并稍等片刻,或者您可以运行以下命令手动重启 `ks-apiserver` 使修改立即生效。