Created
February 23, 2015 20:32
-
-
Save kelseyhightower/5d4b783d0d605c6ce604 to your computer and use it in GitHub Desktop.
This file contains hidden or 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] | |
| 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 http://192.168.0.1/flanneld | |
| ExecStartPre=/usr/bin/chmod +x /opt/bin/flanneld | |
| ExecStart=/opt/bin/flanneld -etcd-endpoints http://192.168.12.10:2379 | |
| - name: docker.service | |
| command: start | |
| content: | | |
| [Unit] | |
| After=flannel.service | |
| Wants=flannel.service | |
| Description=Docker Application Container Engine | |
| Documentation=http://docs.docker.io | |
| [Service] | |
| EnvironmentFile=/run/flannel/subnet.env | |
| ExecStartPre=/bin/mount --make-rprivate / | |
| ExecStart=/usr/bin/docker -d --bip=${FLANNEL_SUBNET} --mtu=${FLANNEL_MTU} -s=overlay -H fd:// | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment