@@ -67,6 +67,9 @@ $ kubectl get replicationcontroller web
...
@@ -67,6 +67,9 @@ $ kubectl get replicationcontroller web
# List a single pod in JSON output format.
# List a single pod in JSON output format.
$ kubectl get -o json pod web-pod-13je7
$ kubectl get -o json pod web-pod-13je7
# List a pod identified by type and name specified in "pod.yaml" in JSON output format.
$ kubectl get -f pod.yaml -o json
# Return only the phase value of the specified pod.
# Return only the phase value of the specified pod.
$ kubectl get -o template web-pod-13je7 --template={{.status.phase}} --api-version=v1
$ kubectl get -o template web-pod-13je7 --template={{.status.phase}} --api-version=v1
...
@@ -81,6 +84,7 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
...
@@ -81,6 +84,7 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
```
```
--all-namespaces[=false]: If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
--all-namespaces[=false]: If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
-f, --filename=[]: Filename, directory, or URL to a file identifying the resource to get from a server.
-h, --help[=false]: help for get
-h, --help[=false]: help for get
-L, --label-columns=[]: Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag statements like -L label1 -L label2...
-L, --label-columns=[]: Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag statements like -L label1 -L label2...
--no-headers[=false]: When using the default output, don't print headers.
--no-headers[=false]: When using the default output, don't print headers.
...
@@ -126,7 +130,7 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
...
@@ -126,7 +130,7 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
*[kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
*[kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-08-12 23:41:01.301023165 +0000 UTC
###### Auto generated by spf13/cobra at 2015-08-13 06:12:05.386038784 +0000 UTC
cmd.Flags().Bool("watch-only",false,"Watch for changes to the requested object(s), without listing/getting first.")
cmd.Flags().Bool("watch-only",false,"Watch for changes to the requested object(s), without listing/getting first.")
cmd.Flags().Bool("all-namespaces",false,"If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
cmd.Flags().Bool("all-namespaces",false,"If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
cmd.Flags().StringSliceP("label-columns","L",[]string{},"Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag statements like -L label1 -L label2...")
cmd.Flags().StringSliceP("label-columns","L",[]string{},"Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag statements like -L label1 -L label2...")
usage:="Filename, directory, or URL to a file identifying the resource to get from a server."