Skip to content

Commit 727d400

Browse files
committed
fix(contrib/coreos): configure public IP for fleet
We previously defined this, but we did so by overwriting the stock CoreOS unit file for fleet. That's bad. This enables us to tweak this setting and still use the stock CoreOS unit file, which is good. This is necessary only for Vagrant, but it is safe for cloud providers as well. TESTING: provision multi-node, and make sure `fleetctl list-machines` shows different IPs: ```console $ fleetctl list-machines MACHINE IP METADATA 4cbcb7c5... 172.17.8.101 - e00803ec... 172.17.8.100 - ``` Works on EC2 as well... ``` fleetctl list-machines MACHINE IP METADATA 2c985b00... 172.31.12.86 - 43cca2ad... 172.31.35.1 - ecf3fc08... 172.31.31.144 - ```
1 parent 39fe718 commit 727d400

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

contrib/coreos/user-data

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ coreos:
77
# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923
88
addr: $private_ipv4:4001
99
peer-addr: $private_ipv4:7001
10+
fleet:
11+
# We have to set the public_ip here so this works on Vagrant -- otherwise, Vagrant VMs
12+
# will all publish the same private IP. This is harmless for cloud providers.
13+
public_ip: $private_ipv4
1014
units:
1115
- name: etcd.service
1216
command: start

0 commit comments

Comments
 (0)