Skip to content

Commit

Permalink
Set parallel downloads in Docker to 15
Browse files Browse the repository at this point in the history
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.

kubernetes/kubernetes#59376
  • Loading branch information
discordianfish committed May 7, 2018
1 parent c7b3123 commit 22c3c13
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ Parameters:
PrivateSubnet:
Type: String

DockerOpts:
Type: String
Default: "--max-concurrent-downloads=15"

assetBucket:
Type: String

Expand Down Expand Up @@ -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": {},
Expand Down

0 comments on commit 22c3c13

Please sign in to comment.