@@ -352,6 +352,11 @@ async def ensure_image_pre_puller_daemonset(self) -> None:
352352 seccomp_profile = k8s_client .V1SeccompProfile (type = "RuntimeDefault" ),
353353 )
354354
355+ minimal_resources = k8s_client .V1ResourceRequirements (
356+ requests = {"cpu" : "10m" , "memory" : "8Mi" },
357+ limits = {"cpu" : "100m" , "memory" : "32Mi" },
358+ )
359+
355360 for i , image_ref in enumerate (sorted (all_images )):
356361 sanitized_image_ref = image_ref .split ("/" )[- 1 ].replace (":" , "-" ).replace ("." , "-" ).replace ("_" , "-" )
357362 self .logger .info (f"DAEMONSET: before: { image_ref } -> { sanitized_image_ref } " )
@@ -361,6 +366,7 @@ async def ensure_image_pre_puller_daemonset(self) -> None:
361366 command = ["/bin/sh" , "-c" , f'echo "Image { image_ref } pulled."' ],
362367 image_pull_policy = "Always" ,
363368 security_context = psa_security_context ,
369+ resources = minimal_resources ,
364370 ))
365371
366372 daemonset = k8s_client .V1DaemonSet (
@@ -376,6 +382,7 @@ async def ensure_image_pre_puller_daemonset(self) -> None:
376382 containers = [k8s_client .V1Container (
377383 name = "pause" , image = "registry.k8s.io/pause:3.9" ,
378384 security_context = psa_security_context ,
385+ resources = minimal_resources ,
379386 )],
380387 tolerations = [k8s_client .V1Toleration (operator = "Exists" )],
381388 security_context = k8s_client .V1PodSecurityContext (
0 commit comments