Created
December 13, 2014 16:44
-
-
Save rimusz/218bfd40f3d4b95b8d0d to your computer and use it in GitHub Desktop.
etcd-hosts
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
- name: flannel.service | |
command: start | |
content: | | |
[Unit] | |
Requires=etcd.service | |
After=etcd.service | |
After=network-online.target | |
Wants=network-online.target | |
Description=flannel is an etcd backed overlay network for containers | |
[Service] | |
Type=notify | |
ExecStartPre=-/usr/bin/mkdir -p /opt/bin | |
ExecStartPre=/usr/bin/wget -N -P /opt/bin https://storage.googleapis.com/k8s/flanneld | |
ExecStartPre=/usr/bin/chmod +x /opt/bin/flanneld | |
ExecStartPre=-/usr/bin/etcdctl mk /coreos.com/network/config '{"Network":"10.244.0.0/16"}' | |
ExecStart=/opt/bin/flanneld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment