@@ -77,6 +77,7 @@ The above lets you 'curl localhost:8001/custom/api/v1/pods'
...
@@ -77,6 +77,7 @@ The above lets you 'curl localhost:8001/custom/api/v1/pods'
cmd.Flags().String("accept-hosts",kubectl.DefaultHostAcceptRE,"Regular expression for hosts that the proxy should accept.")
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().String("reject-methods",kubectl.DefaultMethodRejectRE,"Regular expression for HTTP methods that the proxy should reject.")
cmd.Flags().IntP("port","p",default_port,"The port on which to run the proxy. Set to 0 to pick a random port.")
cmd.Flags().IntP("port","p",default_port,"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().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.")
cmd.Flags().StringP("unix-socket","u","","Unix socket on which to run the proxy.")
returncmd
returncmd
...
@@ -85,6 +86,7 @@ The above lets you 'curl localhost:8001/custom/api/v1/pods'
...
@@ -85,6 +86,7 @@ The above lets you 'curl localhost:8001/custom/api/v1/pods'