-
-
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
This file contains 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
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