simplelb

module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2023 License: MIT

README

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

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL