Skip to content

Commit

Permalink
update the title
Browse files Browse the repository at this point in the history
Signed-off-by: lingyu <[email protected]>
  • Loading branch information
Catherine-monk committed Sep 3, 2024
1 parent 94f8b0e commit ce3a088
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
7 changes: 4 additions & 3 deletions docs/advanced/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ sidebar_position: 3

## Update Configurations

1. Update `cloudcore` configuration to enable **cloudStream**.
1. Update `cloudcore` configuration to enable **cloudStream**. (The new version has this feature enabled by default in the cloud, so this configuration can be skipped.)

If `cloudcore` is installed as binary, you can directly modify `/etc/kubeedge/config/cloudcore.yaml` with using editor.
If `cloudcore` is running as kubernetes deployment, you can use `kubectl edit cm -n kubeedge cloudcore` to update `cloudcore`'s ConfigurationMap.
Expand All @@ -83,7 +83,7 @@ sidebar_position: 3
2. Update `edgecore` configuration to enable **edgeStream**.
This modification needs to be done all edge system where `edgecore` runs to update `/etc/kubeedge/config/cloudcore.yaml`.
This modification needs to be done all edge system where `edgecore` runs to update `/etc/kubeedge/config/edgecore.yaml`.
Make sure the `server` IP address to the cloudcore IP (the same as $CLOUDCOREIPS).
```yaml
Expand All @@ -102,7 +102,8 @@ sidebar_position: 3
1. Restart all the cloudcore and edgecore to apply the **Stream** configuration.
If `cloudcore` is installed as binary:
If `cloudcore` is installed as binary (If the `cloudcore.yaml` has not been updated, there is no need to restart.)
:
```shell
sudo systemctl restart cloudcore.service
```
Expand Down
18 changes: 9 additions & 9 deletions i18n/zh/docusaurus-plugin-content-docs/current/advanced/debug.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 启用 Kubectl logs/exec/attach 等能力
title: 启用 Kubectl logs/exec/attach 操作边缘 pods
sidebar_position: 3
---

Expand Down Expand Up @@ -52,7 +52,7 @@ sidebar_position: 3
```
> 端口 10003 和 10350 是 CloudStream 和 edgecore 的默认端口,如果您对它们做过修改,请使用您设置的端口。

如果您不确定是够有 iptables 设置,并且想清理所有 iptables。
如果您不确定是够有 iptables 设置,并且想清理所有 iptables 规则
(如果您设置了错误的 iptables,它会阻止您使用此功能)

以下命令用于清除 iptables 规则:
Expand All @@ -62,9 +62,9 @@ sidebar_position: 3

## 更新配置

1. 分别调整 cloudcore 上的 `/etc/kubeedge/config/cloudcore.yaml` 和 edgecore 上的 `/etc/kubeedge/config/edgecore.yaml` 。调整 **cloudStream****edgeStream**`enable: true`,并且改变server IP 为 cloudcore IP (和 $CLOUDCOREIPS 相同)。
1. 更新 cloudcore 的配置使 CloudStream 生效 (新版本云端已默认开启,可跳过本配置)
如果 cloudcore 是以二进制方式安装的,您可以直接使用编辑器修改 /etc/kubeedge/config/cloudcore.yaml。如果 cloudcore是以容器方式运行,您可以直接使用 kubectl edit cm -n kubeedge cloudcore 来更新 cloudcore 的 ConfigMap。

cloudcore调整 `/etc/kubeedge/config/cloudcore.yaml`:
```yaml
cloudStream:
enable: true
Expand All @@ -77,8 +77,8 @@ sidebar_position: 3
tlsTunnelPrivateKeyFile: /etc/kubeedge/certs/server.key
tunnelPort: 10004
```

edgecore调整 `/etc/kubeedge/config/edgecore.yaml`:
1. 更新 edgecore 的配置使 EdgeStream 生效。
此修改需要在 edgecore 运行所在的边缘节点上进行,更新 /etc/kubeedge/config/edgecore.yaml,确保 server IP 地址为 cloudcore IP (与 $CLOUDCOREIPS 相同)。
``` yaml
edgeStream:
enable: true
Expand All @@ -91,11 +91,11 @@ sidebar_position: 3
writeDeadline: 15
```

## 重新启动
## 重启

1. 重新启动 cloudcore 和 edgecore 让配置生效。
1. 重启 cloudcore 和 edgecore 让配置生效。

在云端:
在云端(若 cloudcore.yaml 未更新,则无需重启)
``` shell
sudo systemctl restart cloudcore.service
```
Expand Down

0 comments on commit ce3a088

Please sign in to comment.