Build the PorterLB Project
This document describes how to build the PorterLB project for testing.
- 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.
Visit https://github.com/kubesphere/porterlb and click Fork to fork the PorterLB repository to your own GitHub account.
Log in to your environment, and run the following commands to clone the PorterLB repository and go to the
git clone <Address of your own PorterLB repository>
Run the following command to install Kustomize and Kubebuilder:
Run the following command to install controller-gen:
go get firstname.lastname@example.org
Run the following command to configure the environment variable for controller-gen:
NOTEYou need to change
/root/go/bin/to the actual path of controller-gen.
Run the following command to generate CRDs and webhooks:
Customize the values of
Makefileand run the following command to generate a YAML release file in the
IMG_MANAGERspecifies the repository and tag of the porter-manager image.
IMG_AGENTspecifies the repository and tag of the porter-agent image.
Currently, PorterLB uses only the porter-manager image. The porter-agent image will be used in future versions.
Run the following command to deploy PorterLB as a plugin:
kubectl apply -f deploy/release.yaml
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.