Skip to content

Instantly share code, notes, and snippets.

@rimusz
Created December 13, 2014 16:44
Show Gist options
  • Save rimusz/218bfd40f3d4b95b8d0d to your computer and use it in GitHub Desktop.
Save rimusz/218bfd40f3d4b95b8d0d to your computer and use it in GitHub Desktop.
etcd-hosts
- 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