mirror of https://github.com/knative/docs.git
Get logs by label selector (#538)
Now user doesn't need to fill in the actual pod name.
This commit is contained in:
parent
b950ebc91d
commit
dc77aaa3fe
|
@ -58,7 +58,7 @@ kubectl run -i --tty busybox --image=busybox --restart=Never -- sh
|
|||
Once the shell comes up, just exit it and kill the pod.
|
||||
|
||||
```shell
|
||||
kubectl delete pods busybox
|
||||
kubectl delete pod busybox
|
||||
```
|
||||
|
||||
|
||||
|
@ -68,7 +68,7 @@ We will verify that the kubernetes events were sent into the Knative eventing sy
|
|||
|
||||
```shell
|
||||
kubectl get pods
|
||||
kubectl logs message-dumper-XXXX user-container
|
||||
kubectl logs -l serving.knative.dev/service=message-dumper -c user-container
|
||||
```
|
||||
|
||||
You should see log lines similar to:
|
||||
|
|
Loading…
Reference in New Issue