You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

install.md 2.8 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ### Prerequisites
  2. - [KUBECTL][kubectl] with right kubeconfig
  3. - [Kubernetes][kubernetes] 1.16+ cluster running
  4. - [KubeEdge][kubeedge] v.15+ running
  5. GM will be deployed to a node which has satisfied these requirements:
  6. 1. Has a IP address which the edge can access to.
  7. Simply you can use the node which `cloudcore` of `kubeedge` is deployed at.
  8. #### Deploy Sedna
  9. Currently we need to deploy GM to a k8s node which edge node can access to.
  10. More specifically, the k8s node has a INTERNAL-IP or EXTERNAL-IP where edge node can access to.
  11. For example, in a kind cluster `kubectl get node -o wide`:
  12. ```shell
  13. NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
  14. edge-node Ready agent,edge 3d21h v1.19.3-kubeedge-v1.6.1 192.168.0.233 <none> Ubuntu 18.04.5 LTS 4.15.0-128-generic docker://20.10.2
  15. sedna-control-plane Ready control-plane,master 3d21h v1.20.2 172.18.0.2 <none> Ubuntu 20.10 4.15.0-128-generic containerd://1.5.0-beta.3-24-g95513021e
  16. ```
  17. In this example the node `sedna-control-plane` has a internal-ip 172.18.0.2, and `edge-node` can access it.
  18. So we can set `SEDNA_GM_NODE=sedna-control-plane` in below instructions:
  19. ```shell
  20. # set the right node where edge node can be access
  21. # SEDNA_GM_NODE=sedna-control-plane
  22. SEDNA_GM_NODE=CHANGE-ME-HERE
  23. curl https://raw.githubusercontent.com/kubeedge/sedna/main/scripts/installation/install.sh | SEDNA_GM_NODE=$SEDNA_GM_NODE SEDNA_ACTION=create bash -
  24. ```
  25. The way above will require the network to access github since it will download the sedna [crd yamls](/build/crds).
  26. If you have unstable network to access github or existing sedna source, you can try the way:
  27. ```shell
  28. # SEDNA_ROOT is the sedna git source directory or cached directory
  29. export SEDNA_ROOT=/opt/sedna
  30. curl https://raw.githubusercontent.com/kubeedge/sedna/main/scripts/installation/install.sh | SEDNA_GM_NODE=$SEDNA_GM_NODE SEDNA_ACTION=create bash -
  31. ```
  32. #### Debug
  33. 1\. Check the GM status:
  34. ```shell
  35. kubectl get deploy -n sedna gm
  36. ```
  37. 2\. Check the LC status:
  38. ```shell
  39. kubectl get ds lc -n sedna
  40. ```
  41. 3\. Check the pod status:
  42. ```shell
  43. kubectl get pod -n sedna
  44. ```
  45. #### Uninstall Sedna
  46. ```shell
  47. # set the right node where edge node can be access
  48. # SEDNA_GM_NODE=sedna-control-plane
  49. SEDNA_GM_NODE=CHANGE-ME-HERE
  50. curl https://raw.githubusercontent.com/kubeedge/sedna/main/scripts/installation/install.sh | SEDNA_GM_NODE=$SEDNA_GM_NODE SEDNA_ACTION=delete bash -
  51. ```
  52. [kubectl]:https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-kubectl-binary-with-curl-on-linux
  53. [kubeedge]:https://github.com/kubeedge/kubeedge
  54. [kubernetes]:https://kubernetes.io/