Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfaas-faas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Team Jaz CS 598 CCC Final Project
openfaas-faas
Commits
97cabbf0
Commit
97cabbf0
authored
7 years ago
by
Alex Ellis
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update troubleshooting.md
parent
0ed21a7d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
guide/troubleshooting.md
+14
-6
14 additions, 6 deletions
guide/troubleshooting.md
with
14 additions
and
6 deletions
guide/troubleshooting.md
+
14
−
6
View file @
97cabbf0
...
...
@@ -17,16 +17,18 @@ Checklist:
$ docker service ls
```
You are looking for 1/1 for the replica count of each service listed.
### Find a function's logs
```
$ docker service logs --tail 100
<function>
$ docker service logs --tail 100
FUNCTION
```
### Find out if a function failed to start
```
$ docker service ps --no-trunc=true
<function>
$ docker service ps --no-trunc=true
FUNCTION
```
### Stop and remove OpenFaaS
...
...
@@ -38,7 +40,7 @@ $ docker stack rm func
If you have additional services / functions remove the remaining ones like this:
```
$ docker service ls -q
|
xargs docker service rm
$ docker service ls -q
|
xargs docker service rm
```
*Use with caution*
...
...
@@ -54,13 +56,13 @@ $ kubectl get deploy
### Find a function's logs
```
$ kubectl logs deploy/
<function>
$ kubectl logs deploy/
FUNCTION
```
### Find out if a function failed to start
```
$ kubectl describe deploy/
<function>
$ kubectl describe deploy/
FUNCTION
```
### Remove the OpenFaaS deployment
...
...
@@ -69,6 +71,12 @@ $ kubectl describe deploy/<function>
$ kubectl delete -f faas.yml,monitoring.yml,rbac.yml
```
If you're using the async stack remove it this way:
```
$ kubectl delete -f faas.async.yml,monitoring.yml,rbac.yml,nats.yml
```
## Timeouts
Default timeouts are configured at the HTTP level for the gateway and watchdog. You can also enforce a hard-timeout for your function.
...
...
@@ -83,7 +91,7 @@ For the gateway set the following environmental variables:
### Debug your function without deploying it
Here's an example of how you can deploy a function without using an orchestrator
- it's
useful for testing:
Here's an example of how you can deploy a function without using an orchestrator
and the API gateeway. It is especially
useful for testing:
```
$ docker run --name debug-alpine \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment