Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/setup/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Verify the configurations before running `edgecore`
7. Configure the token.

```shell
kubectl get secret tokensecret -n kubeedge -oyaml
kubectl get secret tokensecret -n kubeedge -o yaml
```

Then you get it like this:
Expand Down
42 changes: 28 additions & 14 deletions docs/setup/install-with-binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ There're two ways to download `cloudcore` binary.

- Download from github release.

Now KubeEdge github officially holds three arch releases: amd64, arm, arm64. Please download the right package according to your platform.
Now KubeEdge github officially holds three arch releases: amd64, arm, arm64. Please download the right package with the correct release binary version (e.g v1.21.0) according to your platform.

```shell
wget https://github.com/kubeedge/kubeedge/releases/download/v1.12.0/kubeedge-v1.12.0-linux-amd64.tar.gz
tar -zxvf kubeedge-v1.12.0-linux-amd64.tar.gz
cp kubeedge-v1.12.0-linux-amd64/cloud/cloudcore/cloudcore /usr/local/bin/cloudcore
wget https://github.com/kubeedge/kubeedge/releases/download/v1.21.0/kubeedge-v1.21.0-linux-amd64.tar.gz
tar -zxvf kubeedge-v1.21.0-linux-amd64.tar.gz
cp kubeedge-v1.21.0-linux-amd64/cloud/cloudcore/cloudcore /usr/local/bin/cloudcore
```

- Build from source
Expand Down Expand Up @@ -69,16 +69,16 @@ There're three ways to download a `edgecore` binary.

- Download from github release.

Now KubeEdge github officially holds three arch releases: amd64, arm, arm64. Please download the right arch package according to your platform.
Now KubeEdge github officially holds three arch releases: amd64, arm, arm64. Please download the right arch package with the correct release binary version (e.g v1.21.0) according to your platform.
```shell
wget https://github.com/kubeedge/kubeedge/releases/download/v1.12.0/kubeedge-v1.12.0-linux-amd64.tar.gz
tar -zxvf kubeedge-v1.12.0-linux-amd64.tar.gz
cp kubeedge-v1.12.0-linux-amd64/edge/edgecore /usr/local/bin/edgecore
wget https://github.com/kubeedge/kubeedge/releases/download/v1.21.0/kubeedge-v1.21.0-linux-amd64.tar.gz
tar -zxvf kubeedge-v1.21.0-linux-amd64.tar.gz
cp kubeedge-v1.21.0-linux-amd64/edge/edgecore /usr/local/bin/edgecore
```

- Download from dockerhub KubeEdge official release image.
```shell
docker run --rm kubeedge/installation-package:v1.12.0 cat /usr/local/bin/edgecore > /usr/local/bin/edgecore && chmod +x /usr/local/bin/edgecore
docker run --rm kubeedge/installation-package:v1.21.0 cat /usr/local/bin/edgecore > /usr/local/bin/edgecore && chmod +x /usr/local/bin/edgecore
```

- Build from source
Expand All @@ -90,13 +90,13 @@ docker run --rm kubeedge/installation-package:v1.12.0 cat /usr/local/bin/edgecor
- generate config file

```shell
edgecore --defaultconfig > edgecore.yaml
edgecore --defaultconfig > /etc/kubeedge/config/edgecore.yaml
```

- get token value at cloud side:

```shell
kubectl get secret -nkubeedge tokensecret -o=jsonpath='{.data.tokendata}' | base64 -d
kubectl get secret -n kubeedge tokensecret -o=jsonpath='{.data.tokendata}' | base64 -d
```

- update token value in edgecore config file:
Expand All @@ -120,13 +120,27 @@ export CHECK_EDGECORE_ENVIRONMENT="false"
Start edgecore:

```shell
edgecore --config edgecore.yaml
edgecore --config /etc/kubeedge/config/edgecore.yaml
```

If running with sudo and need user env vars, use -E:

```shell
sudo -E edgecore --config edgecore.yaml
sudo -E edgecore --config /etc/kubeedge/config/edgecore.yaml
```

If you want to integrate edgecore binary with systemd, you need:

```shell

wget -O edgecore.service \
https://raw.githubusercontent.com/kubeedge/kubeedge/master/build/tools/edgecore.service

cp edgecore.service /etc/systemd/system/edgecore.service

systemctl daemon-reload
systemctl enable edgecore
systemctl start edgecore
```

Run `edgecore -h` to get help info and add options if needed.
Expand Down Expand Up @@ -157,7 +171,7 @@ After you start both `cloudcore` and `edgecore` successfully, you can run `kubec
```shell
# kubectl get node
NAME STATUS ROLES AGE VERSION
ecs-8f95 Ready agent,edge 5m45s v1.22.6-kubeedge-v1.12.0
ecs-8f95 Ready agent,edge 5m45s v1.22.6-kubeedge-v1.21.0
kind-control-plane Ready control-plane,master 13m v1.23.4
```
Now we can deploy a Pod to edge node, just run the following command:
Expand Down