--accept-hosts="^localhost$,^127\\.0\\.0\\.1$,^\\[::1\\]$": Regular expression for hosts that the proxy should accept.
--accept-paths="^/api/.*": Regular expression for paths that the proxy should accept.
--api-prefix="/api/": Prefix to serve the proxied API under.
--api-prefix="/api/": Prefix to serve the proxied API under.
--disable-filter=false: If true, disable request filtering in the proxy. This is dangerous, and can leave you vulnerable to XSRF attacks. Use with caution.
-h, --help=false: help for proxy
-h, --help=false: help for proxy
-p, --port=8001: The port on which to run the proxy.
-p, --port=8001: The port on which to run the proxy.
--reject-methods="POST,PUT,PATCH": Regular expression for HTTP methods that the proxy should reject.
--reject-paths="^/api/.*/exec,^/api/.*/run": Regular expression for paths that the proxy should reject.
-w, --www="": Also serve static files from the given directory under the specified prefix.
-w, --www="": Also serve static files from the given directory under the specified prefix.
-P, --www-prefix="/static/": Prefix to serve static files under, if static file directory is specified.
-P, --www-prefix="/static/": Prefix to serve static files under, if static file directory is specified.
@@ -65,7 +65,12 @@ The above lets you 'curl localhost:8001/custom/api/v1/pods'
...
@@ -65,7 +65,12 @@ The above lets you 'curl localhost:8001/custom/api/v1/pods'
cmd.Flags().StringP("www","w","","Also serve static files from the given directory under the specified prefix.")
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("www-prefix","P","/static/","Prefix to serve static files under, if static file directory is specified.")
cmd.Flags().StringP("api-prefix","","/api/","Prefix to serve the proxied API under.")
cmd.Flags().StringP("api-prefix","","/api/","Prefix to serve the proxied API under.")
cmd.Flags().String("accept-paths",kubectl.DefaultPathAcceptRE,"Regular expression for paths that the proxy should accept.")
cmd.Flags().String("reject-paths",kubectl.DefaultPathRejectRE,"Regular expression for paths that the proxy should reject.")
cmd.Flags().String("accept-hosts",kubectl.DefaultHostAcceptRE,"Regular expression for hosts that the proxy should accept.")
cmd.Flags().String("reject-methods",kubectl.DefaultMethodRejectRE,"Regular expression for HTTP methods that the proxy should reject.")
cmd.Flags().IntP("port","p",8001,"The port on which to run the proxy.")
cmd.Flags().IntP("port","p",8001,"The port on which to run the proxy.")
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. Use with caution.")