Skip to content

Latest commit

 

History

History
80 lines (54 loc) · 2.65 KB

prepare-environment.md

File metadata and controls

80 lines (54 loc) · 2.65 KB

This document helps you prepare environment for developing code for Sedna. If you follow this guide and find some problem, please fill an issue to update this file.

1. Install Tools

Install Git

Sedna is managed with git, and to develop locally you will need to install git.

You can check if git is already on your system and properly installed with the following command:

git --version

Install Go(optional)

All Sedna's control components(i.e. GM/LC) are written in the Go. If you are planning to change them, you need to set up Go.

Sedna currently builds with Go 1.16, install or upgrade Go using the instructions for your operating system.

You can check if Go is in your system with the following command:

go version

2. Clone the code

Clone the Sedna repo:

git clone https://github.com/kubeedge/sedna.git

Note: If you want to add or change API in pkg/apis, you need to checkout the code to $GOPATH/src/github.com/kubeedge/sedna.

3. Set up Kubernetes/KubeEdge(optional)

If you are planning to run or debug Sedna, you need to set up Kubernetes and KubeEdge.

Sedna requires Kubernetes version 1.16 or higher with CRD support.

Sedna requires KubeEdge version 1.5 or higher with edge support.

Note: You need to check the Kubernetes compatibility of KubeEdge.

Install Kubernetes

Follow Kubernetes setup guides to set up and run Kubernetes, like:

If you're learning Kubernetes, use the tools to set up a Kubernetes cluster on a local machine, e.g.:

Install KubeEdge

Please follow the kubeedge instructions to install KubeEdge.

4. What's Next?

Once you've set up the prerequisites, continue with: