Build the OpenELB Project
This document describes how to build the OpenELB project for testing.
Prerequisites
- You need to prepare a Linux environment.
- You need to install Go 1.12 or later.
- You need to install Docker.
- You need to install Docker Buildx.
Procedure
- 
Visit https://github.com/kubesphere/OpenELB and click Fork to fork the OpenELB repository to your own GitHub account. 
- 
Log in to your environment, and run the following commands to clone the OpenELB repository and go to the openelbdirectory:git clone <Address of your own OpenELB repository>cd openelb
- 
Run the following command to install Kustomize and Kubebuilder: ./hack/install_tools.sh
- 
Run the following command to install controller-gen: go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.0
- 
Run the following command to configure the environment variable for controller-gen: export PATH=/root/go/bin/:$PATHNOTE You need to change/root/go/bin/to the actual path of controller-gen.
- 
Run the following command to generate CRDs and webhooks: make generate
- 
Customize the values of IMG_MANAGERandIMG_AGENTinMakefileand run the following command to generate a YAML release file in thedeploydirectory:make releaseNOTE - 
IMG_MANAGERspecifies the repository and tag of the openelb-manager image.
- 
IMG_AGENTspecifies the repository and tag of the openelb-agent image.
- 
Currently, OpenELB uses only the openelb-manager image. The openelb-agent image will be used in future versions. 
 
- 
- 
Run the following command to deploy OpenELB as a plugin: kubectl apply -f deploy/release.yaml
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.