DNS Stats Compactor configured to run on Docker and Kubernetes.
Mount /var/dnstap/
in both the dns-stats-compactor container and the name server
container. This will contain the dnstap.sock Unix socket.
Mount /var/log/dnstap/
in the dns-stats-compactor container. This will contain
the logs from compactor.
Optionally, mount a config map at /etc/dns-stats-compactor/
to provide compactor.conf.
Run dns-stats-compactor in the same Kubernetes pod as your name server. I found this blog post on multi container pods useful.
Configure your name server to send dnstap records to the dnstap Unix socket.
Download the MaxMind GeoIP Lite
City and ASN databases and create a mount at /usr/share/GeoIP
containing
the uncompressed mmdb files.
cd compactor
vi Makefile
: ModifyIMAGES_REPO
to point to your repo.make all
: Build the image and push it to your repo.