diff --git a/kube-router.go b/kube-router.go index 3104628b..af5eceda 100644 --- a/kube-router.go +++ b/kube-router.go @@ -4,6 +4,8 @@ import ( "fmt" "os" + "flag" + "github.com/cloudnativelabs/kube-router/app" "github.com/cloudnativelabs/kube-router/app/options" "github.com/spf13/pflag" @@ -15,6 +17,10 @@ func main() { config.AddFlags(pflag.CommandLine) pflag.Parse() + // Workaround for this issue: + // https://github.com/kubernetes/kubernetes/issues/17162 + flag.CommandLine.Parse([]string{}) + pflag.Set("logtostderr", "true") if config.HelpRequested {