File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -787,6 +787,22 @@ ebs_csi_controller_sidecar_cpu: "10m"
787
787
# pull images in parallel
788
788
serialize_image_pulls : " false"
789
789
790
+ # rate of image pull in the kubelet, see
791
+ # see https://github.com/kubernetes/kubernetes/blob/v1.30.0/staging/src/k8s.io/kubelet/config/v1beta1/types.go#L200-L212
792
+ #
793
+ # registryPullQPS is the limit of registry pulls per second.
794
+ # The value must not be a negative number.
795
+ # Setting it to 0 means no limit.
796
+ # Default: 5
797
+ kubelet_registry_pull_qps : " 20"
798
+
799
+ # registryBurst is the maximum size of bursty pulls, temporarily allows
800
+ # pulls to burst to this number, while still not exceeding registryPullQPS.
801
+ # The value must not be a negative number.
802
+ # Only used if registryPullQPS is greater than 0.
803
+ # Default: 10
804
+ kubelet_registry_burst : " 40"
805
+
790
806
# Version of the scheduler or controller-manager used by the master nodes.
791
807
# Supported values:
792
808
# - upstream: official Kubernetes version
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ write_files:
17
17
- owner : root:root
18
18
path : /etc/kubernetes/config/kubelet.yaml.template
19
19
content : |
20
- # https://github.com/kubernetes/kubernetes/blob/v1.13.6 /staging/src/k8s.io/kubelet/config/v1beta1/types.go
20
+ # https://github.com/kubernetes/kubernetes/blob/v1.30.0 /staging/src/k8s.io/kubelet/config/v1beta1/types.go
21
21
apiVersion: kubelet.config.k8s.io/v1beta1
22
22
kind: KubeletConfiguration
23
23
cgroupDriver: systemd
@@ -35,6 +35,8 @@ write_files:
35
35
{{- if ne .Cluster.ConfigItems.serialize_image_pulls "true" }}
36
36
serializeImagePulls : false
37
37
{{- end }}
38
+ registryPullQPS : {{ .Cluster.ConfigItems.kubelet_registry_pull_qps }}
39
+ registryBurst : {{ .Cluster.ConfigItems.kubelet_registry_burst }}
38
40
healthzPort : 10248
39
41
healthzBindAddress : " 0.0.0.0"
40
42
tlsCertFile : " /etc/kubernetes/ssl/worker.pem"
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ write_files:
77
77
{{- if ne .Cluster.ConfigItems.serialize_image_pulls "true" }}
78
78
serializeImagePulls : false
79
79
{{- end }}
80
+ registryPullQPS : {{ .Cluster.ConfigItems.kubelet_registry_pull_qps }}
81
+ registryBurst : {{ .Cluster.ConfigItems.kubelet_registry_burst }}
80
82
healthzPort : 10248
81
83
healthzBindAddress : " 0.0.0.0"
82
84
tlsCertFile : " /etc/kubernetes/ssl/worker.pem"
You can’t perform that action at this time.
0 commit comments