Skip to content

Instantly share code, notes, and snippets.

@hkjn
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkjn/e1c4e338f90dfc20958b to your computer and use it in GitHub Desktop.
Save hkjn/e1c4e338f90dfc20958b to your computer and use it in GitHub Desktop.
cloud-config.yaml for AWS using etcd2, with no log spam due to trying to connect to etcd < 2.0 ports
coreos:
etcd2:
discovery: https://discovery.etcd.io/[...]
advertise-client-urls: http://$private_ipv4:2379
initial-advertise-peer-urls: http://$private_ipv4:2380
listen-client-urls: http://0.0.0.0:2379
listen-peer-urls: http://$private_ipv4:2380
units:
- name: docker.service
command: start
- name: etcd2.service
command: start
- name: fleet.service
command: start
content: |
[Unit]
Description=fleet daemon
After=etcd2.service
Wants=fleet.socket
After=fleet.socket
[Service]
Environment="FLEET_ETCD_SERVERS=http://127.0.0.1:2379"
ExecStart=/usr/bin/fleetd
Restart=always
RestartSec=10s
fleet:
metadata: "platform=aws,region=eu-west-1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment