Add Windows flags for KubeProxyConfiguration

This commit is contained in:
ksubrmnn
2019-01-11 14:45:34 -08:00
parent a4272099e7
commit a47e99e37a
7 changed files with 110 additions and 0 deletions

View File

@@ -37,4 +37,7 @@ func initForOS(windowsService bool) error {
func (o *Options) addOSFlags(fs *pflag.FlagSet) {
fs.BoolVar(&o.WindowsService, "windows-service", o.WindowsService, "Enable Windows Service Control Manager API integration")
fs.StringVar(&o.config.Winkernel.SourceVip, "source-vip", o.config.Winkernel.SourceVip, "The IP address of the source VIP for non-DSR.")
fs.StringVar(&o.config.Winkernel.NetworkName, "network-name", o.config.Winkernel.NetworkName, "The name of the cluster network.")
fs.BoolVar(&o.config.Winkernel.EnableDSR, "enable-dsr", o.config.Winkernel.EnableDSR, "If true make kube-proxy apply DSR policies for service VIP")
}

View File

@@ -110,6 +110,7 @@ func newProxyServer(config *proxyconfigapi.KubeProxyConfiguration, cleanupAndExi
utilnode.GetNodeIP(client, hostname),
recorder,
healthzUpdater,
config.Winkernel,
)
if err != nil {
return nil, fmt.Errorf("unable to create proxier: %v", err)