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.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. This guide covers how to install Sedna on an existing Kubernetes environment.
  2. For interested readers, Sedna also has two important components that would be mentioned below, i.e., [GM(GlobalManager)](/README.md#globalmanager) and [LC(LocalController)](/README.md#localcontroller) for workerload generation and maintenance.
  3. If you don't have an existing Kubernetes, you can:
  4. 1) Install Kubernetes by following the [Kubernetes website](https://kubernetes.io/docs/setup/).
  5. 2) Or follow [quick start](quick-start.md) for other options.
  6. ### Prerequisites
  7. - [Kubectl][kubectl] with right kubeconfig
  8. - [Kubernetes][kubernetes] 1.16+ cluster running
  9. - [KubeEdge][kubeedge] v1.8+ along with **[EdgeMesh][edgemesh]** running
  10. #### Deploy Sedna
  11. Currently GM is deployed as a [`deployment`][deployment], and LC is deployed as a [`daemonset`][daemonset].
  12. Run the one liner:
  13. ```shell
  14. curl https://raw.githubusercontent.com/kubeedge/sedna/main/scripts/installation/install.sh | SEDNA_ACTION=create bash -
  15. ```
  16. It requires the network to access github since it will download the sedna [crd yamls](/build/crds).
  17. If you have unstable network to access github or existing sedna source, you can try the way:
  18. ```shell
  19. # SEDNA_ROOT is the sedna git source directory or cached directory
  20. export SEDNA_ROOT=/opt/sedna
  21. curl https://raw.githubusercontent.com/kubeedge/sedna/main/scripts/installation/install.sh | SEDNA_ACTION=create bash -
  22. ```
  23. #### Debug
  24. 1\. Check the GM status:
  25. ```shell
  26. kubectl get deploy -n sedna gm
  27. ```
  28. 2\. Check the LC status:
  29. ```shell
  30. kubectl get ds lc -n sedna
  31. ```
  32. 3\. Check the pod status:
  33. ```shell
  34. kubectl get pod -n sedna
  35. ```
  36. #### Uninstall Sedna
  37. ```shell
  38. curl https://raw.githubusercontent.com/kubeedge/sedna/main/scripts/installation/install.sh | SEDNA_ACTION=delete bash -
  39. ```
  40. [kubectl]:https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-kubectl-binary-with-curl-on-linux
  41. [kubeedge]:https://github.com/kubeedge/kubeedge
  42. [edgemesh]:https://github.com/kubeedge/edgemesh
  43. [kubernetes]:https://kubernetes.io/
  44. [deployment]: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
  45. [daemonset]: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/