Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created April 20, 2015 20:26
Show Gist options
  • Save kelseyhightower/b2795bc8fee76726e890 to your computer and use it in GitHub Desktop.
Save kelseyhightower/b2795bc8fee76726e890 to your computer and use it in GitHub Desktop.
units:
- name: fleet.socket
command: start
content: |
[Socket]
ListenStream=/var/run/fleet.sock
ListenStream=8080
Service=fleet.service
[Install]
WantedBy=sockets.target
- name: fleet.service
command: start
content: |
[Unit]
Description=A Distributed init System
After=download.service
Requires=download.service
[Service]
Environment=FLEET_METADATA=role=kubernetes
Environment=FLEET_ETCD_SERVERS=http://192.168.12.10:2379
ExecStart=/opt/bin/fleetd
Restart=always
RestartSec=10s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment