Created
July 22, 2014 20:39
-
-
Save zembutsu/831c840dcd34941f9229 to your computer and use it in GitHub Desktop.
SkyDNS2のセットアップ方法 ref: http://qiita.com/zembutsu/items/626c55cc702d54f7fa65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# etcd -peer-addr 127.0.0.1:7001 -addr 127.0.0.1:4001 \ | |
-data-dir /opt/etcd -name machine1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o etcd-v0.4.5-linux-amd64.tar.gz \ | |
-L https://github.com/coreos/etcd/releases/download/v0.4.5/etcd-v0.4.5-linux-amd64.tar.gz | |
tar xvfz etcd-v0.4.5-linux-amd64.tar.gz | |
sudo cp etcd-v0.4.5-linux-amd64/etcd /usr/bin/etcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/coreos/etcd | |
cd etcd | |
./build | |
sudo cp ./bin/etcd /usr/bin/etcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[zem@sakura1 go]$ go get -d -v github.com/coreos/go-etcd/etcd | |
github.com/coreos/go-etcd (download) | |
[zem@sakura1 go]$ go get -d -v github.com/skynetservices/skydns | |
github.com/skynetservices/skydns (download) | |
github.com/coreos/go-log (download) | |
bitbucket.org/kardianos/osext (download) | |
github.com/coreos/go-systemd (download) | |
github.com/miekg/dns (download) | |
github.com/miekg/go-metrics (download) | |
github.com/influxdb/influxdb (download) | |
github.com/rcrowley/go-metrics (download) | |
github.com/stathat/go (download) | |
[zem@sakura1 go]$ cd ~/go/src/github.com/skynetservices/skydns/ | |
[zem@sakura1 skydns]$ go build | |
[zem@sakura1 skydns]$ sudo cp ./skydns /usr/bin/skydns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# export ETCD_MACHINES='http://127.0.0.1:4001' | |
# skydns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment