Skip to content

Commit 8002c68

Browse files
committed
Add practical limit for function names
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 7f54fb1 commit 8002c68

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/deployment/troubleshooting.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ Try using the `faas-cli describe` command to check whether the function has been
5959

6060
You can usually view the YAML from Kubernetes for a function with the `kubectl get -n openfaas deploy/NAME` command, then check the logs for the two pods in the gateway and for events in the openfaas-fn namespace.
6161

62+
If you are still encountering problems, try publishing to a different image tag for each version of your function. For instance, if you are working on version `0.1.0`, try changing the tag to `0.1.1` or `0.1.0-a` and so forth.
63+
6264
### My function didn't start
6365

6466
Look for `0/1`, restarts or errors showing up here:
@@ -92,6 +94,10 @@ Common issues:
9294
* You haven't created a secret which is required for your function to start. Check your function request or stack.yml, and create any missing secrets.
9395
* Your function is crashing due to an error in your code, check the logs.
9496

97+
### I think my function's name is too long
98+
99+
When using Kubernetes, a function's name should be no longer than 45 characters if it also mounts a secret. This is due to how the projected volume for the Pod's secrets is named.
100+
95101
### My function is timing out
96102

97103
Check the logs of the gateway for signs of a time-out, or non-200 HTTP code:

0 commit comments

Comments
 (0)