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-discoveryCONSUL_APP_DIR: default/appCONSUL_DATA_DIR: Default:/consul-dataCONSUL_BOOTSTRAP_SIZE: Number of nodes to expect before electing a leader. Default:3CONSUL_AGENT_MODE: Required, starts consul inserverorclientmode. Default: EXPLODEGOMAXPROCS: default,2
PORTS:
- 8300 HTTP TCP
- 8600 DNS TCP, UDP