Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization of kubeedge deployment documentation: Handling issues with insufficient edge node resources for normal deployment. #551

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c96e24a
kubeedge部署文档内容优化:边缘节点资源紧张无法正常部署的问题处理
hyp4293 May 22, 2024
571e55c
Optimization of kubeedge deployment documentation: Handling issues wi…
hyp4293 May 23, 2024
a294732
镜像预加载功能指导文档
hyp4293 May 24, 2024
b2f2d09
Merge remote-tracking branch 'upstream/master'
hyp4293 May 25, 2024
d75689d
New Blog for Release KubeEdge v1.11
1Shubham7 May 15, 2024
214001a
fixed the release date
1Shubham7 May 16, 2024
b512169
New Blog for Release KubeEdge v1.11
1Shubham7 May 16, 2024
cd9db44
New Blog for Release KubeEdge v1.14
1Shubham7 May 16, 2024
755bcee
added the release date
1Shubham7 May 16, 2024
11c7d68
update version for release 1.17
fisherxu May 20, 2024
18d7615
kubeedge部署文档内容优化:边缘节点资源紧张无法正常部署的问题处理
hyp4293 May 22, 2024
345a540
Optimization of kubeedge deployment documentation: Handling issues wi…
hyp4293 May 23, 2024
4af8dd1
镜像预加载功能指导文档
hyp4293 May 24, 2024
1712f6a
Replacing Twitter with X
1Shubham7 May 17, 2024
603928a
Merge branch 'master' of https://github.com/hyp4293/website
hyp4293 Jul 8, 2024
d59f6bc
KubeEdge Image PrePull Feature Guide Document
hyp4293 May 25, 2024
52ac1e3
KubeEdge Image PrePull Feature Guide Document
hyp4293 Jun 12, 2024
bf2a75e
6/7/2024
hyp4293 Jul 6, 2024
3bb5a84
add case study about raisecom tech
wbc6080 May 27, 2024
0c2e057
add case study about XingHai IoT
wbc6080 May 27, 2024
a5f98d9
Part 1: improving the install with keadm docs
1Shubham7 May 17, 2024
628e9d7
fix merge
hyp4293 Jul 10, 2024
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
17 changes: 17 additions & 0 deletions docs/setup/install-with-keadm.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,23 @@ keadm init --set server.advertiseAddress="THE-EXPOSED-IP" --set server.nodeName=
If you are familiar with the helm chart installation, please refer to [KubeEdge Helm Charts](https://github.com/kubeedge/kubeedge/tree/master/manifests/charts).


**SPECIAL SCENARIO:**
In the case of insufficient qualifications for edge nodes, we need to label them to prevent some applications from extending to edge nodes.

```
kubectl get daemonset -n kube-system |grep -v NAME |awk '{print $1}' | xargs -n 1 kubectl patch daemonset -n kube-system --type='json' -p='[{"op": "replace","path": "/spec/template/spec/affinity","value":{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"node-role.kubernetes.io/edge","operator":"DoesNotExist"}]}]}}}}]'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/kubeedge/website/pull/551/files#diff-58f39633768f7241615b445ab20cf0842acb0f0f38597ca61e8c4afceeeac56fR308 has a similar description, we need to let users know that kube-proxy and some others is not required at the edge

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will remind users that kube-proxy and some other components are not required at the edge. They can handle it accordingly.


```


```
kubectl get daemonset -n metallb-system |grep -v NAME |awk '{print $1}' | xargs -n 1 kubectl patch daemonset -n metallb-system --type='json' -p='[{"op": "replace","path": "/spec/template/spec/affinity","value":{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"node-role.kubernetes.io/edge","operator":"DoesNotExist"}]}]}}}}]'
hyp4293 marked this conversation as resolved.
Show resolved Hide resolved

```

Any daemonset cannot occupy the hardware resources of edge nodes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is too radical.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This description is indeed too abrupt; we will make modifications.



### keadm manifest generate

You can also get the manifests with `keadm manifest generate`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@ KubeEdge cloudcore is running, For logs visit: /var/log/kubeedge/cloudcore.log

当您看到以上信息,说明 KubeEdge 的云端组件 cloudcore 已经成功运行。

**特殊场景:**
边缘计算的硬件条件不好的情况,这里我们需要打上标签,让一些应用不扩展到edge节点上去。


```
kubectl get daemonset -n kube-system |grep -v NAME |awk '{print $1}' | xargs -n 1 kubectl patch daemonset -n kube-system --type='json' -p='[{"op": "replace","path": "/spec/template/spec/affinity","value":{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"node-role.kubernetes.io/edge","operator":"DoesNotExist"}]}]}}}}]'

```


```
kubectl get daemonset -n metallb-system |grep -v NAME |awk '{print $1}' | xargs -n 1 kubectl patch daemonset -n metallb-system --type='json' -p='[{"op": "replace","path": "/spec/template/spec/affinity","value":{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"node-role.kubernetes.io/edge","operator":"DoesNotExist"}]}]}}}}]'

```

凡是daemonset的都不可以去占用edge节点的硬件资源。


### keadm beta init

如果您想要使用容器化方式部署云端组件 cloudcore ,您可以使用 `keadm beta init` 进行云端组件安装。
Expand Down