Short:i18n.T("Run a proxy to the Kubernetes API server"),
Long:proxyLong,
Example:proxyExample,
Run:func(cmd*cobra.Command,args[]string){
err:=RunProxy(f,out,cmd)
cmdutil.CheckErr(err)
},
}
cmd.Flags().StringP("www","w","","Also serve static files from the given directory under the specified prefix.")
cmd.Flags().StringP("www-prefix","P","/static/","Prefix to serve static files under, if static file directory is specified.")
cmd.Flags().StringP("api-prefix","","/","Prefix to serve the proxied API under.")
cmd.Flags().String("accept-paths",proxy.DefaultPathAcceptRE,"Regular expression for paths that the proxy should accept.")
cmd.Flags().String("reject-paths",proxy.DefaultPathRejectRE,"Regular expression for paths that the proxy should reject. Paths specified here will be rejected even accepted by --accept-paths.")
cmd.Flags().String("accept-hosts",proxy.DefaultHostAcceptRE,"Regular expression for hosts that the proxy should accept.")
cmd.Flags().String("reject-methods",proxy.DefaultMethodRejectRE,"Regular expression for HTTP methods that the proxy should reject (example --reject-methods='POST,PUT,PATCH'). ")
cmd.Flags().IntP("port","p",defaultPort,"The port on which to run the proxy. Set to 0 to pick a random port.")
cmd.Flags().StringP("address","","127.0.0.1","The IP address on which to serve on.")
cmd.Flags().Bool("disable-filter",false,"If true, disable request filtering in the proxy. This is dangerous, and can leave you vulnerable to XSRF attacks, when used with an accessible port.")
cmd.Flags().StringP("unix-socket","u","","Unix socket on which to run the proxy.")