coredns-sidecar provides additional functionality to CoreDNS when run inside Kubernetes.
Currently, it supports watching over nodes and generating an /etc/hosts file that can be consumed by CoreDNS through the hosts plugin.
CoreDNS supports extending functionality through a plugin mechanism. While this makes the implementation easier, it also requires building the plugin binary from CoreDNS source (presumably matching the version of the CoreDNS version intended to run on your Kubernetes cluster).
The sidecar solution depends on the hosts plugin only (at the price of added complexity).
./coredns-sidecar -hosts <path to hostsfile>To increase the amount of logging, add -v=3 as parameter.
make test: run testsmake build: compile a native binary intobin/$OS_$ARCH.make container: create a Docker image (set theVERSIONenvironment variable to choose a custom image tag)make push: push the Docker image
See the deployment guide.
- Update the
VERSIONvariable in the Makefile. - Create and push a version tag like
vX.Y.Z. - Build and push a Docker with
make push. - Create a new Github release.