mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 13:12:20 +00:00
Print resource labels as columns
This commit is contained in:
@@ -46,6 +46,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.
|
||||
-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...
|
||||
--no-headers=false: When using the default output, don't print headers.
|
||||
-o, --output="": Output format. One of: json|yaml|template|templatefile.
|
||||
--output-version="": Output the formatted object with the given version (default api-version).
|
||||
@@ -87,6 +88,6 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-06-05 21:08:36.511279339 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-06-21 22:41:03.746552518 +0000 UTC
|
||||
|
||||
[]()
|
||||
|
@@ -35,6 +35,10 @@ of the \-\-template flag, you can filter the attributes of the fetched resource(
|
||||
\fB\-h\fP, \fB\-\-help\fP=false
|
||||
help for get
|
||||
|
||||
.PP
|
||||
\fB\-L\fP, \fB\-\-label\-columns\fP=[]
|
||||
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...
|
||||
|
||||
.PP
|
||||
\fB\-\-no\-headers\fP=false
|
||||
When using the default output, don't print headers.
|
||||
|
Reference in New Issue
Block a user