From 2e919da445071cd4ce1d1e0e54677b83630cd510 Mon Sep 17 00:00:00 2001 From: Alex Ellis <alexellis2@gmail.com> Date: Thu, 24 Aug 2017 15:08:57 +0100 Subject: [PATCH] Mention removal of services --- guide/troubleshooting.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/guide/troubleshooting.md b/guide/troubleshooting.md index 58965271..72d46f7b 100644 --- a/guide/troubleshooting.md +++ b/guide/troubleshooting.md @@ -78,6 +78,20 @@ $ docker swarm logs --tail 100 <function> $ docker swarm ps --no-trunc=true <function> ``` +### Stop and remove OpenFaaS + +``` +$ docker stack rm func +``` + +If you have additional services / functions remove the remaining ones like this: + +``` +$ docker service ls -q|xargs docker service rm +``` + +*Use with caution* + ## Kubernetes ### List all functions @@ -98,3 +112,8 @@ $ kubectl logs deploy/<function> $ kubectl describe deploy/<function> ``` +### Remove the OpenFaaS deployment + +``` +$ kubectl delete -f faas.yml,monitoring.yml,rbac.yml +``` -- GitLab