Skip to content

curx/haproxy-k8scp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haproxy for a high-available kubernetes controlplane (k8scp)

Build Status

This OCI container images is used for an StaticPod at a Kubernetes Controlplane.

Available environment variables

# Configure the Kubernetes VirtualIP[:Port]
# - mandatory
#   if Port not set, Default to 6443
# 
KUBEAPI_VIP="192.168.1.10"
KUBEAPI_VIP_PORT="16443"

# Configure the Port for the HAProxy Stats Interface
# Statistic Interface is located at http://$KUBEAPI_VIP_PORT:$KUBEAPI_VIP_STATS_PORT/stats
# - optional, default is set to 9000
#
KUBEAPI_VIP_STATS_PORT="12345"

# configure the BackendServers (List)
# - mandatory
#
HAPROXY_BACKENDS="backendserver1,backendserver2:port2,..."

# configure the Backend Checks
# - optional
#
HAPROXY_CONF_CHK_OPTS="GET /healthz HTTP/1.1\r\nHost:\ rancher.training.lab"

Example

docker run \
  -e KUBEAPI_VIP="0.0.0.0" \
  -e KUBEAPI_VIP_PORT="6443" \
  -e KUBEAPI_VIP_STATS_PORT="19001" \
  -e HAPROXY_BACKENDS="192.168.1.11,192.168.1.12:6443,a.b.c.d:1234" \
  ...

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

GPL-2

Copyright

Copyright (c) 2018 Thorsten Schifferdecker