From 41da1afea4a74f99f862ef1c5485ecbb32b2be1b Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Wed, 23 Aug 2017 08:43:20 +0100 Subject: [PATCH] Create troubleshooting.md --- guide/troubleshooting.md | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 guide/troubleshooting.md diff --git a/guide/troubleshooting.md b/guide/troubleshooting.md new file mode 100644 index 00000000..bd4dee2b --- /dev/null +++ b/guide/troubleshooting.md @@ -0,0 +1,42 @@ +# Troubleshooting guide + +## Docker Swarm + +### List all functions + +``` +$ docker service ls +``` + +### Find a function's logs + +``` +$ docker swarm logs --tail 100 +``` + +### Find out if a function failed to start + +``` +$ docker swarm ps --no-trunc=true +``` + +## Kubernetes + +### List all functions + +``` +$ kubectl get deploy +``` + +### Find a function's logs + +``` +$ kubectl logs deploy/ +``` + +### Find out if a function failed to start + +``` +$ kubectl describe deploy/ +``` +