mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
getting 7bc7f47
fully right.
given that etcd is disabled in the nodes we need to wait for master's etcd to be available so that flanneld gets properly wired. Signed-off-by: António Meireles <antonio.meireles@reformi.st>
This commit is contained in:
parent
8a7a127352
commit
bb4071e8be
@ -6,6 +6,7 @@ coreos:
|
||||
metadata: "role=node"
|
||||
flannel:
|
||||
interface: eth1
|
||||
etcd_endpoints: http://<master-private-ip>: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://<master-private-ip>: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
|
||||
|
@ -6,6 +6,7 @@ coreos:
|
||||
metadata: "role=node"
|
||||
flannel:
|
||||
interface: eth1
|
||||
etcd_endpoints: http://<master-private-ip>: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://<master-private-ip>: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
|
||||
|
Loading…
Reference in New Issue
Block a user