Apply a configuration to a resource by filename or stdin.
Apply a configuration to a resource by filename or stdin.
This resource will be created if it doesn't exist yet.
This resource will be created if it doesn't exist yet.
To use 'apply', always create the resource initially with either 'apply' or 'create --save-config'.
To use 'apply', always create the resource initially with either 'apply' or 'create --save-config'.
...
@@ -81,7 +81,7 @@ var (
...
@@ -81,7 +81,7 @@ var (
Alpha Disclaimer: the --prune functionality is not yet complete. Do not use unless you are aware of what the current state is. See https://issues.k8s.io/34274.`))
Alpha Disclaimer: the --prune functionality is not yet complete. Do not use unless you are aware of what the current state is. See https://issues.k8s.io/34274.`))
Update field(s) of a resource using strategic merge patch
Update field(s) of a resource using strategic merge patch
JSON and YAML formats are accepted.
JSON and YAML formats are accepted.
Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/blob/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable.`))
Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/blob/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable.`))
patch_example=templates.Examples(i18n.T(`
patchExample=templates.Examples(i18n.T(`
# Partially update a node using strategic merge patch
# Partially update a node using strategic merge patch
cmd.Flags().String("reject-paths",kubectl.DefaultPathRejectRE,"Regular expression for paths that the proxy should reject.")
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("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",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().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.")
JSON and YAML formats are accepted. If replacing an existing resource, the
JSON and YAML formats are accepted. If replacing an existing resource, the
...
@@ -47,7 +47,7 @@ var (
...
@@ -47,7 +47,7 @@ var (
Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/blob/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable.`))
Please refer to the models in https://htmlpreview.github.io/?https://github.com/kubernetes/kubernetes/blob/HEAD/docs/api-reference/v1/definitions.html to find if a field is mutable.`))