marathon-lb-ddns

command module
v0.0.0-...-5c459f9 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: MIT Imports: 12 Imported by: 0

README

DDNS(Dynamic DNS) for marathon-lb

Build Status

Configure DNS Records on Route53 for marathon-lb automatically.

How it works

This component subscribes events of marathon. When events fired, it retrieves IP addresses of marathon-lb and VHOST names of marathon apps. The hosts which marathon-lb running on are registered as A record, and marathon apps which has HAPROXY_{n}_VHOST label are registered as CNAME record corresponding to marathon-lb's A Records.

Figure 1

DNS records which was registered by this component are stored in ZooKeeper. This component delete DNS records only existing in ZooKeeper.
You should not to run this component concurrently.

How to use

Using marathon-lb.ddns.json.sample as template.

Options

name default description
m http://mrathon.mesos:8080 The url of marathon
group external The group of marathon-lb
domain marathon-lb.example.com The A record name of marathon-lb
z The HostedZoneId of Route53
lb-id /marathon-lb The id of marathon-lb
zk The url of zookeeper

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