This OCI container images is used for an StaticPod at a Kubernetes Controlplane.
# 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"
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" \
...
Fork -> Patch -> Push -> Pull Request
GPL-2
Copyright (c) 2018 Thorsten Schifferdecker