a10-bgp-neighbor-manager

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

A10 BGP Neighbor Manager

This is a Kubernetes controller to manage BGP neighbors on an A10 device.

It uses the A10 API to manage the BGP neighbors and the Kubernetes API to add eligible nodes to the A10 device and remove them if they are not eligible.

Nodes are eligible if they are:

  1. labeled with the NODES_LABEL_SELECTOR label
  2. are ready
  3. are not cordoned
  4. have an external IP address

Actually, this controller doesn't control anything in K8S. It just uses the K8S API to watch for nodes events.

Usage

Local
export KUBECONFIG=kubeconfig.yaml
export A10_ADDRESS=https://address
export A10_USERNAME=admin
export A10_PASSWORD=XXX
export A10_AS=12345
export A10_REMOTE_AS=54321
export NODES_LABEL_SELECTOR="bgp=cilium"
go run .
  • If kubeconfig is not set, the tool will use the in-cluster config.
  • export DEBUG=true will enable debug logging.
Helm

Adjust the values in helm/values.yaml

helm upgrade --install a10-bgp-neighbor-controller ./helm

Development

  1. mise install to install dev dependencies
  2. go run . to run the app locally
  3. tilt up to deploy app to a cluster
  4. tilt down to tear down the app
  5. mise run publish to build and push the docker image to a registry

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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