Skip to content

theGunner295/kbproxy

Repository files navigation

Simple Sync for HAProxy and Kubernetes Nodes

This service syncs live Kubernetes nodes with an HAProxy instance running on pfSense. It is designed to run every 20 minutes and only applies updates when necessary.

How It Works

  • Updates all HAProxy backends containing the string specified in BACKEND_SEARCH_STRING (found in appsettings.json).
  • Compatible with clusters using a private CA (requires a cacerts.pem chain in the config directory).

Setup

All additional/config files must be placed in a config folder at the root level.

Example appsettings.json

{
  "USERNAME": "admin",           // Username for the HAProxy API
  "PASSWORD": "pfsense",         // Password for the HAProxy API
  "HAProxyHostApi": "https://myrouter.local", // HAProxy pfSense Host
  "BACKEND_SEARCH_STRING": "ClusterName" // Backend search string
}

Note: Remove comments when copying this JSON; the service will error otherwise.

Required Files

  • cacerts.pem: Private CA chain for SSL. Place in the config directory during build or runtime.
  • config.yaml: Kubernetes kubeconfig file. Place in the config directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published