Public Repository

Last pushed: 2 years ago
Short Description
skydns for coreos
Full Description

based on skydns 2.0.1d

[Unit]
Description=SkyDNS
Documentation=https://github.com/skynetservices/skydns
Requires=etcd.service
After=etcd.service
Requires=docker.service
After=docker.service

[Service]
Type=simple
Restart=on-failure
RestartSec=5
EnvironmentFile=/etc/environment
Environment="IMAGE=giladkhen/skydns"

TimeoutStartSec=5m
ExecStartPre=-/usr/bin/docker kill %p
ExecStartPre=-/usr/bin/docker rm %p
ExecStartPre=/usr/bin/docker pull ${IMAGE}
ExecStartPre=/usr/bin/etcdctl set /skydns/local/cluster/hosts/%m '{"host":"${COREOS_PRIVATE_IPV4}"}'

ExecStart=/bin/bash -c '/usr/bin/docker run --name %p --net host ${IMAGE} -logtostderr -addr $(ifconfig docker0 | grep \'inet \' | awk \'{ print $2}\'):53 -machines 127.0.0.1:4001 -nameservers 8.8.8.8:53,8.8.4.4:53 -local "%m.hosts.cluster.local" -domain cluster.local.'

[X-Fleet]
Global=true

[Install]
WantedBy=multi-user.target
Docker Pull Command
Owner
giladkhen

Comments (0)