disable collecting of accelerator metrics and exposing it for containerd

This commit is contained in:
Sergey Kanzhelev
2021-04-30 22:16:34 +00:00
parent 204ff6caeb
commit e8ae653c1d
5 changed files with 143 additions and 20 deletions

View File

@@ -679,7 +679,8 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
klet.runtimeCache,
kubeDeps.RemoteRuntimeService,
kubeDeps.RemoteImageService,
hostStatsProvider)
hostStatsProvider,
utilfeature.DefaultFeatureGate.Enabled(features.DisableAcceleratorUsageMetrics))
}
klet.pleg = pleg.NewGenericPLEG(klet.containerRuntime, plegChannelCapacity, plegRelistPeriod, klet.podCache, clock.RealClock{})