Merge pull request #104631 from perithompson/kp-userspace-deprecation

Adding deprecation notice to the userspace proxy-mode
This commit is contained in:
Kubernetes Prow Robot 2021-10-06 15:32:32 -07:00 committed by GitHub
commit 84027bc07d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -341,6 +341,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)