mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
Create troubleshooting.md
This commit is contained in:
parent
360de12c36
commit
41da1afea4
42
guide/troubleshooting.md
Normal file
42
guide/troubleshooting.md
Normal file
@ -0,0 +1,42 @@
|
||||
# Troubleshooting guide
|
||||
|
||||
## Docker Swarm
|
||||
|
||||
### List all functions
|
||||
|
||||
```
|
||||
$ docker service ls
|
||||
```
|
||||
|
||||
### Find a function's logs
|
||||
|
||||
```
|
||||
$ docker swarm logs --tail 100 <function>
|
||||
```
|
||||
|
||||
### Find out if a function failed to start
|
||||
|
||||
```
|
||||
$ docker swarm ps --no-trunc=true <function>
|
||||
```
|
||||
|
||||
## Kubernetes
|
||||
|
||||
### List all functions
|
||||
|
||||
```
|
||||
$ kubectl get deploy
|
||||
```
|
||||
|
||||
### Find a function's logs
|
||||
|
||||
```
|
||||
$ kubectl logs deploy/<function>
|
||||
```
|
||||
|
||||
### Find out if a function failed to start
|
||||
|
||||
```
|
||||
$ kubectl describe deploy/<function>
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user