update 1.11 --server-print info (#8870)
* update 1.11 --server-print info * Copyedit
This commit is contained in:
committed by
Misty Linville
parent
cac04327ea
commit
7aeb1a2ae2
@@ -203,15 +203,18 @@ submit-queue 610995
|
||||
This means that for any given resource, the server will return columns and rows relevant to that resource, for the client to print.
|
||||
This allows for consistent human-readable output across clients used against the same cluster, by having the server encapsulate the details of printing.
|
||||
|
||||
To output object information using this feature, you can add the `--experimental-server-print` flag to a supported `kubectl` command.
|
||||
This feature is enabled by default in `kubectl` 1.11 and higher. To disable it, add the
|
||||
`--server-print=false` flag to the `kubectl get` command.
|
||||
|
||||
##### Examples
|
||||
|
||||
To print information about the status of a pod, use a command like the following:
|
||||
|
||||
```shell
|
||||
$ kubectl get pods <pod-name> --experimental-server-print
|
||||
kubectl get pods <pod-name> --server-print=false
|
||||
```
|
||||
|
||||
The result of running this command is:
|
||||
Output looks like this:
|
||||
|
||||
```shell
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
|
||||
Reference in New Issue
Block a user