lb-api

module
v0.0.0-...-547473f Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT

README

Loadbalancer API

This is a small tool to make it possible to configure your loadbalancer via HTTP API calls.

Installation

To install the Cloud Provider Manager best use the Helm Chart.

Simply run

$ cat <<EOF > values.yaml
config:
  loadbalancer:
    url: https://<url>:29999
    bearer_token: <secret>
EOF
$ helm --kubeconfig kubeconfig upgrade --install --namespace kube-system cloud-provider-manager ./install/charts/lb-api-cloud-provider-manager -f values.yaml

Development

You can setup a development environment using Vagrant. With a proper Vagrant installation simply run

make setup_init

and a VM is created and properly set up with lb-api, haproxy, a kind cluster with 3 Nodes and the Cloud Provider Manager.

Evething properly configured to talk to each other.

This will also create a kubeconfig which you can use to access the cluster.

A simple test for the loadbalancer would, e.g. to install an ingress

helm repo add nginx-stable https://helm.nginx.com/stable
helm repo update
helm --kubeconfig kubeconfig upgrade --install --namespace ingress --create-namespace ingress nginx-stable/nginx-ingress

You can use the vagrant command from within scripts to take a look at them.

To compile and update the binaries in the setup during development simply run:

make setup_update

And to destroy the setup again run:

make setup_destroy

to enter the VM run

make setup_ssh

Directories

Path Synopsis
cmd
lb-api command
pkg
generate
Package generate provides primitives to interact with the openapi HTTP API.
Package generate provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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