kallax

command module
v0.0.0-...-4f44eb2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

README

kallax

Kallax is an DNS-SD based service-discovery server for Docker Swarm.

Installation

$: docker service create --name=kallax \
      --mode global \
      --constraint node.labels.role.kallax==yes \
      --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
      --publish published=5353,target=5353,protocol=udp,mode=host \
      faryon93/kallax:latest

Configure Service

$: docker service update --label-add="{\"node_exporter\": {\"port\": 9100, \"net\":\"<prom-net-id>\"}}"

Split DNS

$: cat /etc/dnsmasq.conf
# forward service discovery queries to kallax
server=/kallax.local/<ip-of-kallax-server>#5353

# disable caching: always ask dns server
cache-size=0

# only accessibly by docker containers (ip of docker_gwbridge)
listen-address=172.18.0.1
bind-interfaces

$: docker service update --dns-add 172.18.0.1

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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