Merge pull request #70508 from dashpole/pod_resources_socket

Add socket-based kubelet pod resources API.
This commit is contained in:
k8s-ci-robot
2018-11-15 13:43:44 -08:00
committed by GitHub
36 changed files with 1871 additions and 0 deletions

View File

@@ -1015,6 +1015,9 @@ func startKubelet(k kubelet.Bootstrap, podCfg *config.PodConfig, kubeCfg *kubele
if kubeCfg.ReadOnlyPort > 0 {
go k.ListenAndServeReadOnly(net.ParseIP(kubeCfg.Address), uint(kubeCfg.ReadOnlyPort))
}
if utilfeature.DefaultFeatureGate.Enabled(features.KubeletPodResources) {
go k.ListenAndServePodResources()
}
}
func CreateAndInitKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,