Skip to content

Commit 7cd4fe5

Browse files
committed
Document logs for OpenFaaS Operator
- Adds "-c" approach to find container logs from within a Pod Signed-off-by: Alex Ellis (VMware) <[email protected]>
1 parent 8268d0e commit 7cd4fe5

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

docs/deployment/troubleshooting.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,32 @@ $ kubectl get events --sort-by=.metadata.creationTimestamp -n openfaas-fn
232232

233233
### Check logs of the core services
234234

235+
Check for any relevant events:
236+
237+
```
238+
$ kubectl get events --sort-by=.metadata.creationTimestamp -n openfaas
239+
```
240+
241+
These instructions may differ depending on whether you are using faas-netes (default) or the OpenFaaS Operator
242+
243+
#### Get logs using faas-netes
244+
245+
```
246+
$ kubectl logs -n openfaas deploy/faas-netes
247+
$ kubectl logs -n openfaas deploy/gateway
248+
```
249+
250+
#### Check the queue-worker
251+
235252
```
236-
$ kubectl logs -n openfaas-fn deploy/faas-netes
237-
$ kubectl logs -n openfaas-fn deploy/gateway
238253
$ kubectl logs -n openfaas-fn deploy/queue-worker
239254
```
240255

241-
Check for events too
256+
#### Get logs using OpenFaaS Operator
242257

243258
```
244-
$ kubectl get events --sort-by=.metadata.creationTimestamp -n openfaas
259+
$ kubectl logs -n openfaas deploy/gateway -c operator
260+
$ kubectl logs -n openfaas deploy/gateway -c gateway
245261
```
246262

247263
### Remove the OpenFaaS deployment

0 commit comments

Comments
 (0)