Adding deprecation notice to the userspace proxy-mode

This commit is contained in:
Peri Thompson 2021-08-31 10:19:00 +01:00
parent 5871321310
commit b476eaade4
2 changed files with 2 additions and 0 deletions

View File

@ -346,6 +346,7 @@ func newProxyServer(
proxymetrics.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 'iptables' or 'ipvs' instead")
// TODO this has side effects that should only happen when Run() is invoked.
proxier, err = userspace.NewProxier(

View File

@ -143,6 +143,7 @@ func newProxyServer(config *proxyconfigapi.KubeProxyConfiguration, cleanupAndExi
}
} 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")
execer := exec.New()
var netshInterface utilnetsh.Interface
netshInterface = utilnetsh.New(execer)