diff --git a/pkg/kubelet/kuberuntime/kuberuntime_manager.go b/pkg/kubelet/kuberuntime/kuberuntime_manager.go index 5a1df82b2dd..49cad688cb2 100644 --- a/pkg/kubelet/kuberuntime/kuberuntime_manager.go +++ b/pkg/kubelet/kuberuntime/kuberuntime_manager.go @@ -195,6 +195,8 @@ func NewKubeGenericRuntimeManager( getNodeAllocatable func() v1.ResourceList, memoryThrottlingFactor float64, ) (KubeGenericRuntime, error) { + runtimeService = newInstrumentedRuntimeService(runtimeService) + imageService = newInstrumentedImageManagerService(imageService) kubeRuntimeManager := &kubeGenericRuntimeManager{ recorder: recorder, cpuCFSQuota: cpuCFSQuota, @@ -206,8 +208,8 @@ func NewKubeGenericRuntimeManager( machineInfo: machineInfo, osInterface: osInterface, runtimeHelper: runtimeHelper, - runtimeService: newInstrumentedRuntimeService(runtimeService), - imageService: newInstrumentedImageManagerService(imageService), + runtimeService: runtimeService, + imageService: imageService, internalLifecycle: internalLifecycle, logManager: logManager, runtimeClassManager: runtimeClassManager,