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.
- Updates all HAProxy backends containing the string specified in
BACKEND_SEARCH_STRING(found inappsettings.json). - Compatible with clusters using a private CA (requires a
cacerts.pemchain in theconfigdirectory).
All additional/config files must be placed in a config folder at the root level.
{
"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.
cacerts.pem: Private CA chain for SSL. Place in theconfigdirectory during build or runtime.config.yaml: Kubernetes kubeconfig file. Place in theconfigdirectory.