mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 12:11:43 +00:00
Fix the service printer to be a single line per service
This commit is contained in:
@@ -151,11 +151,11 @@ kubectl expose rc nginx --port=80
|
||||
This should print:
|
||||
|
||||
```console
|
||||
NAME LABELS SELECTOR IP PORT(S)
|
||||
nginx run=nginx run=nginx <ip-addr> 80/TCP
|
||||
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
|
||||
nginx 10.0.93.211 <none> 80/TCP run=nginx 1h
|
||||
```
|
||||
|
||||
If ip-addr is blank run the following command to obtain it. Know issue #10836
|
||||
If `CLUSTER_IP` is blank run the following command to obtain it. Know issue #10836
|
||||
|
||||
```sh
|
||||
kubectl get svc nginx
|
||||
|
Reference in New Issue
Block a user