diff --git a/charts/cluster-api-cluster-openstack/templates/workload.yaml b/charts/cluster-api-cluster-openstack/templates/workload.yaml index 165e2f1..78b5e6a 100644 --- a/charts/cluster-api-cluster-openstack/templates/workload.yaml +++ b/charts/cluster-api-cluster-openstack/templates/workload.yaml @@ -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 }}'" }} @@ -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 }}