Use kubectl logs verify the message (#887)

This commit is contained in:
zxxa 2019-02-14 00:41:43 +08:00 committed by Knative Prow Robot
parent df7afb0856
commit 27b74f6a39
1 changed files with 11 additions and 5 deletions

View File

@ -68,10 +68,8 @@ kubectl apply -f cronjob-source.yaml
We will verify that the message was sent to the Knative eventing system by
looking at message dumper logs.
1. Use [`kail`](https://github.com/boz/kail) to tail the logs of the subscriber.
```shell
kail -l serving.knative.dev/service=message-dumper -c user-container --since=10m
kubectl logs -l serving.knative.dev/service=message-dumper -c user-container --since=10m
```
You should see log lines showing the request headers and body from the source:
@ -83,3 +81,11 @@ You should see log lines showing the request headers and body from the source:
"Body": "{\"message\": \"Hello world!\"}"
}
```
You can also use [`kail`](https://github.com/boz/kail) instead of `kubectl logs` to tail the logs of the subscriber.
```shell
kail -l serving.knative.dev/service=message-dumper -c user-container --since=10m
```