coredns-sidecar

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2019 License: MIT Imports: 22 Imported by: 0

README

coredns-sidecar

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.

sidecar vs. 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).

Usage

./coredns-sidecar -hosts <path to hostsfile>

To increase the amount of logging, add -v=3 as parameter.

Makefile targets

  • make test: run tests
  • make build: compile a native binary into bin/$OS_$ARCH.
  • make container: create a Docker image (set the VERSION environment variable to choose a custom image tag)
  • make push: push the Docker image

Deploying

See the deployment guide.

Releasing

  1. Update the VERSION variable in the Makefile.
  2. Create and push a version tag like vX.Y.Z.
  3. Build and push a Docker with make push.
  4. Create a new Github release.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL