diff --git a/docs/getting-started-guides/aws/cloud-configs/node.yaml b/docs/getting-started-guides/aws/cloud-configs/node.yaml index d88fe92b753..e21959fda06 100644 --- a/docs/getting-started-guides/aws/cloud-configs/node.yaml +++ b/docs/getting-started-guides/aws/cloud-configs/node.yaml @@ -6,6 +6,7 @@ coreos: metadata: "role=node" flannel: interface: eth1 + etcd_endpoints: http://:4001 units: - name: etcd.service mask: true @@ -16,9 +17,8 @@ coreos: drop-ins: - name: 50-network-config.conf content: | - [Unit] - Requires=etcd.service [Service] + ExecStartPre=/bin/bash -c "until curl http://:4001/v2/machines; do sleep 2; done" ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{"Network":"10.244.0.0/16", "Backend": {"Type": "vxlan"}}' - name: docker.service command: start diff --git a/docs/getting-started-guides/coreos/cloud-configs/node.yaml b/docs/getting-started-guides/coreos/cloud-configs/node.yaml index 5c9a28ee153..6fee0f66f59 100644 --- a/docs/getting-started-guides/coreos/cloud-configs/node.yaml +++ b/docs/getting-started-guides/coreos/cloud-configs/node.yaml @@ -6,6 +6,7 @@ coreos: metadata: "role=node" flannel: interface: eth1 + etcd_endpoints: http://:4001 units: - name: etcd.service mask: true @@ -16,9 +17,8 @@ coreos: drop-ins: - name: 50-network-config.conf content: | - [Unit] - Requires=etcd.service [Service] + ExecStartPre=/bin/bash -c "until curl http://:4001/v2/machines; do sleep 2; done" ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{"Network":"10.244.0.0/16", "Backend": {"Type": "vxlan"}}' - name: docker.service command: start