You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit updates the heading levels in the troubleshooting guide to
avoid multiple top-level header declarations (MD-025).
Signed-off-by: John McCabe <[email protected]>
Copy file name to clipboardExpand all lines: docs/deployment/troubleshooting.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,31 +160,31 @@ On certain Linux distributions the name `localhost` maps to an IPv6 alias meanin
160
160
161
161
3. Edit the `/etc/hosts` file on your machine and remove the IPv6 alias for localhost (this forces the use of IPv4)
162
162
163
-
# Troubleshooting Swarm or Kubernetes
163
+
##Troubleshooting Swarm or Kubernetes
164
164
165
-
## Docker Swarm
165
+
###Docker Swarm
166
166
167
-
### List all functions
167
+
####List all functions
168
168
169
169
```
170
170
$ docker service ls
171
171
```
172
172
173
173
You are looking for 1/1 for the replica count of each service listed.
174
174
175
-
### Find a function's logs
175
+
####Find a function's logs
176
176
177
177
```
178
178
$ docker service logs --tail 100 FUNCTION
179
179
```
180
180
181
-
### Find out if a function failed to start
181
+
####Find out if a function failed to start
182
182
183
183
```
184
184
$ docker service ps --no-trunc=true FUNCTION
185
185
```
186
186
187
-
### Stop and remove OpenFaaS
187
+
####Stop and remove OpenFaaS
188
188
189
189
```
190
190
$ docker stack rm func
@@ -198,29 +198,29 @@ $ docker service ls -q | xargs docker service rm
198
198
199
199
*Use with caution*
200
200
201
-
## Kubernetes
201
+
###Kubernetes
202
202
203
203
If you have deployed OpenFaaS to the recommended namespaces then functions are in the `openfaas-fn` namespace and the core services are in the `openfaas` namespace. The `-n` flag to `kubectl` sets the namespace to look at.
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:
276
276
@@ -286,7 +286,7 @@ Now you can access the function with one of the supported HTTP methods such as G
286
286
$ curl -4 127.0.0.1:8081
287
287
```
288
288
289
-
## Edit your function without rebuilding it
289
+
###Edit your function without rebuilding it
290
290
291
291
You can bind-mount code straight into your function and work with it locally, until you are ready to re-build. This is a common flow with containers, but should be used sparingly.
0 commit comments