Commit 036ac359 authored by AdoHe's avatar AdoHe

update kubectl apply help info

parent be21fe78
...@@ -15,6 +15,7 @@ kubectl apply \- Apply a configuration to a resource by filename or stdin ...@@ -15,6 +15,7 @@ kubectl apply \- Apply a configuration to a resource by filename or stdin
.PP .PP
Apply a configuration to a resource by filename or stdin. Apply a configuration to a resource by filename or stdin.
The resource will be created if it doesn't exist yet. The 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'.
.PP .PP
JSON and YAML formats are accepted. JSON and YAML formats are accepted.
......
...@@ -41,6 +41,7 @@ Apply a configuration to a resource by filename or stdin ...@@ -41,6 +41,7 @@ Apply a configuration to a resource by filename or stdin
Apply a configuration to a resource by filename or stdin. Apply a configuration to a resource by filename or stdin.
The resource will be created if it doesn't exist yet. The 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'.
JSON and YAML formats are accepted. JSON and YAML formats are accepted.
...@@ -102,7 +103,7 @@ cat pod.json | kubectl apply -f - ...@@ -102,7 +103,7 @@ cat pod.json | kubectl apply -f -
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager * [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra on 30-Mar-2016 ###### Auto generated by spf13/cobra on 3-May-2016
<!-- BEGIN MUNGE: GENERATED_ANALYTICS --> <!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_apply.md?pixel)]() [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_apply.md?pixel)]()
......
name: apply name: apply
synopsis: Apply a configuration to a resource by filename or stdin synopsis: Apply a configuration to a resource by filename or stdin
description: "Apply a configuration to a resource by filename or stdin.\nThe resource description: "Apply a configuration to a resource by filename or stdin.\nThe resource
will be created if it doesn't exist yet. \n\nJSON and YAML formats are accepted." will be created if it doesn't exist yet. \nTo use 'apply', always create the resource
initially with either 'apply' or 'create --save-config'.\n\nJSON and YAML formats
are accepted."
options: options:
- name: filename - name: filename
shorthand: f shorthand: f
......
...@@ -41,6 +41,7 @@ type ApplyOptions struct { ...@@ -41,6 +41,7 @@ type ApplyOptions struct {
const ( const (
apply_long = `Apply a configuration to a resource by filename or stdin. apply_long = `Apply a configuration to a resource by filename or stdin.
The resource will be created if it doesn't exist yet. The 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'.
JSON and YAML formats are accepted.` JSON and YAML formats are accepted.`
apply_example = `# Apply the configuration in pod.json to a pod. apply_example = `# Apply the configuration in pod.json to a pod.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment