Enabling kube-proxy metrics on windows kernel mode

This commit is contained in:
Amim Knabben
2021-11-21 20:16:40 -03:00
parent a8c9dd6274
commit 8b37bfec8e
3 changed files with 19 additions and 34 deletions

View File

@@ -141,6 +141,8 @@ func newProxyServer(config *proxyconfigapi.KubeProxyConfiguration, cleanupAndExi
if err != nil {
return nil, fmt.Errorf("unable to create proxier: %v", err)
}
winkernel.RegisterMetrics()
} else {
klog.V(0).InfoS("Using userspace Proxier.")
klog.V(0).InfoS("The userspace proxier is now deprecated and will be removed in a future release, please use 'kernelspace' instead")