From 253b56dd991563b9cd673b5fc165a8364c67c1d8 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 12 Aug 2023 15:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E8=8A=82=E7=82=B9=E7=9A=84api.yaml?= =?UTF-8?q?=E6=94=B9=E4=B8=BAapi=5Fnode.yaml=EF=BC=8C=E5=B9=B6=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E9=85=8D=E7=BD=AE=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../@default/clusters/cluster/createNode.html | 5 ++-- .../clusters/cluster/node/install.html | 26 ++++++++++++------- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/web/views/@default/clusters/cluster/createNode.html b/web/views/@default/clusters/cluster/createNode.html index c0ee6d28..c25a9fe6 100644 --- a/web/views/@default/clusters/cluster/createNode.html +++ b/web/views/@default/clusters/cluster/createNode.html @@ -143,10 +143,9 @@
-
上传边缘节点程序到服务器并解压,然后在边缘节点安装目录下,复制configs/api.template.yamlconfigs/api.yaml,修改文件里面的内容为以下内容:
+
上传边缘节点程序到服务器并解压,然后在边缘节点安装目录下,复制configs/api_node.template.yamlconfigs/api_node.yaml,修改文件里面的内容为以下内容:
- rpc: - endpoints: [ {{apiEndpoints}} ] + rpc.endpoints: [ {{apiEndpoints}} ] nodeId: "{{node.uniqueId}}" secret: "{{node.secret}}"
diff --git a/web/views/@default/clusters/cluster/node/install.html b/web/views/@default/clusters/cluster/node/install.html index 9d812da0..3f1e62bf 100644 --- a/web/views/@default/clusters/cluster/node/install.html +++ b/web/views/@default/clusters/cluster/node/install.html @@ -61,14 +61,19 @@ - 配置文件(configs/api.yaml)
- [下载] + 配置文件 - rpc: - endpoints: [ {{apiEndpoints}} ] + configs/api_node.yaml   + [下载] + + + + 配置内容 + + rpc.endpoints: [ {{apiEndpoints}} ] nodeId: "{{node.uniqueId}}" secret: "{{node.secret}}" -

手动替换edge-node安装目录下的configs/api.yaml文件,然后重新启动生效;如果此文件不存在,则需要创建。

+

手动替换edge-node安装目录下的configs/api_node.yaml文件,然后重新启动生效;如果此文件不存在,则需要创建。

@@ -92,11 +97,14 @@ secret: "{{node.secret}}"

配置文件

- + + + +
配置文件(configs/api.yaml)
- [下载]
配置文件 - rpc: - endpoints: [ {{apiEndpoints}} ] + configs/api_node.yaml   [下载] +
配置内容 + rpc.endpoints: [ {{apiEndpoints}} ] nodeId: "{{node.uniqueId}}" secret: "{{node.secret}}"