Skip to content

Instantly share code, notes, and snippets.

@f0
Created June 27, 2016 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save f0/79460de6b451db57287bc4eb7ed9956a to your computer and use it in GitHub Desktop.
Save f0/79460de6b451db57287bc4eb7ed9956a to your computer and use it in GitHub Desktop.
[Unit]
Description=Etcd
After=network-online.target
[Service]
Slice=machine.slice
Delegate=true
ExecStartPre=-/opt/rkt/rkt gc --grace-period=0s
ExecStartPre=-/opt/rkt/rkt fetch --insecure-options=all http://repo.example.com/etcd-v2.3.6-linux-amd64.aci
ExecStart=/opt/rkt/rkt --insecure-options=all run --volume=data-dir,kind=host,source=/opt/data/etcd --net=default-restricted,container:IP=10.62.0.22 --dns=10.61.112.254 --dns=10.61.12.254 coreos.com/etcd:v2.3.6 -- --debug --name="10.62.0.22" --data-dir="/data-dir" --listen-client-urls="http://10.62.0.22:2379" --listen-peer-urls="http://10.62.0.22:2380" --initial-cluster-state="existing" --initial-advertise-peer-urls="http://10.62.0.22:2380" --advertise-client-urls="http://10.62.0.22:2379" --initial cluster="10.62.0.22=http://10.62.0.22:2380,10.61.112.200=http://10.61.112.200:2380,10.61.12.168=http://10.61.12.168:2380,10.61.12.169=http://10.61.12.169:2380"
Restart=on-failure
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment