mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	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...
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user