This repo is designed to package up Consul for deployment in a Kubernetes cluster.
Why Consul in k8s? If you need a CP store for your app, Consul should do the trick.
Given K8S service discovery and APIs Consul's support for SD and health checking isn't the primary focus here.
This Docker image is built using a buildroot base image. I would have used alpine except for the fact that consul requires glibc.
CONSUL_DISCOVERY_ADDRESS
: defaultconsul-server-discovery
CONSUL_APP_DIR
: default/app
CONSUL_DATA_DIR
: Default:/consul-data
CONSUL_BOOTSTRAP_SIZE
: Number of nodes to expect before electing a leader. Default:3
CONSUL_AGENT_MODE
: Required, starts consul inserver
orclient
mode. Default: EXPLODEGOMAXPROCS
: default,2
PORTS:
- 8300 HTTP TCP
- 8600 DNS TCP, UDP