From 22c3c13d50e1eea2d2801f4aa1866e46752e56d5 Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Mon, 7 May 2018 12:59:23 +0200 Subject: [PATCH] Set parallel downloads in Docker to 15 Kubernetes pulls up to 10 images in parallel. If Docker's parallel downloads is less than this, some downloads might stale and cause ImagePullBackOff errors. https://github.com/kubernetes/kubernetes/issues/59376 --- templates/worker.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/worker.yaml b/templates/worker.yaml index c253b37..866f504 100644 --- a/templates/worker.yaml +++ b/templates/worker.yaml @@ -55,6 +55,10 @@ Parameters: PrivateSubnet: Type: String + DockerOpts: + Type: String + Default: "--max-concurrent-downloads=15" + assetBucket: Type: String @@ -270,6 +274,13 @@ Resources: }, { "name": "locksmithd.service", "mask": true + }, { + "name": "docker.service", + "enable": true, + "dropins": [{ + "name": "20-docker-opts.conf", + "contents": "[Service]\nEnvironment=\"DOCKER_OPTS=${DockerOpts}\"" + }] }] }, "networkd": {},