Skip to content

LukasAuerbeck/simplelb

 
 

Repository files navigation

Simple LB

Operator that allows you to use Kubernetes LoadBalancer Service type on non-public cloud, by exposing ports on nodes with simplelb.amurant.io/enablelb=true label.

Howto use?

1. Deploy operator

kubectl apply -f https://github.com/amurant/simplelb/releases/latest/download/simplelb.yaml

2. Label nodes

kubectl label node <node name> simplelb.amurant.io/enablelb=true
kubectl get nodes --show-labels
# remove a label:
kubectl label node <node name> simplelb.amurant.io/enablelb-

3. Deploy example app (optional)

kubectl create deployment hello-node --image=k8s.gcr.io/echoserver:1.4

kubectl expose deployment hello-node --type=LoadBalancer --port=8080

Local development

git clone https://github.com/amurant/simplelb.git
cd simplelb

# create a kind cluster
./devel/create-cluster.sh

# build the docker images and deploy to kind
./devel/install-operator.sh

Based on

Artifact Hub GH Actions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 77.6%
  • Shell 16.9%
  • Dockerfile 5.5%