Skip to content

Commit

Permalink
Enable parallel image pulls
Browse files Browse the repository at this point in the history
As of 1.27, Kubernetes added support for parallelizing image pulls but
this is not enabled by default.  This is especially useful in situations
where multiple images need to be downloaded to a host, but one of them
is particularly large.
  • Loading branch information
yankcrime committed Nov 5, 2024
1 parent be3b1c1 commit 80749d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/cluster-api-cluster-openstack/templates/workload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ spec:
path: {{ $file.path }}
permissions: "0600"
{{- end }}
- path: /etc/kubernetes/patches/kubeletconfiguration0+strategic.json
owner: "root:root"
permissions: "0644"
content: |
{
"apiVersion": "kubelet.config.k8s.io/v1beta1",
"kind": "KubeletConfiguration",
"serializeImagePulls": false,
"maxParallelImagePulls": 10,
}
joinConfiguration:
nodeRegistration:
name: {{ "'{{ local_hostname }}'" }}
Expand All @@ -115,4 +125,6 @@ spec:
node-labels: {{- include "openstack.nodelabels.workload" $context | nindent 14 }}
taints:
{{- include "openstack.taints.workload" $ | nindent 10 }}
patches:
directory: /etc/kubernetes/patches
{{- end }}

0 comments on commit 80749d1

Please sign in to comment.