mirror of https://github.com/k3s-io/k3s
coreos/azure: Use drop-in to fix the interwebz -
It turns out `network-online.target` doesn't imply that there is access to the Internet and simply using `curl --retry 10` doesn't work and hangs forever, even if we can already reach github.com...pull/6/head
parent
652972b31a
commit
c8b06a9a85
|
@ -56,6 +56,14 @@ coreos:
|
||||||
group: stable
|
group: stable
|
||||||
reboot-strategy: off
|
reboot-strategy: off
|
||||||
units:
|
units:
|
||||||
|
- name: systemd-networkd-wait-online.service
|
||||||
|
drop-ins:
|
||||||
|
- name: 50-check-github-is-reachable.conf
|
||||||
|
content: |
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/sh -x -c \
|
||||||
|
'until curl --silent --fail https://status.github.com/api/status.json | grep -q \"good\"; do sleep 2; done'
|
||||||
|
|
||||||
- name: docker.service
|
- name: docker.service
|
||||||
drop-ins:
|
drop-ins:
|
||||||
- name: 50-weave-kubernetes.conf
|
- name: 50-weave-kubernetes.conf
|
||||||
|
|
Loading…
Reference in New Issue