Skip to content

Commit 61d4b9e

Browse files
committed
Notes on preloading secrets
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 9f1ec8b commit 61d4b9e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/edge/preloading.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ On the first boot of the `faasd-provider` service, any YAML files found will be
1010

1111
So before you install OpenFaaS Edge, create the: `/var/lib/faasd-provider/functions` folder, and place any number of OpenFaaS function YAML files within it.
1212

13+
## Secrets for preloaded functions
14+
15+
If any of your functions require secrets, make sure you pre-create the secrets folder: `/var/lib/faasd-provider/secrets`.
16+
17+
Then create functions in a folder that matches the destination namespace, so for a secret named `api-key` in `openfaas-fn`:
18+
19+
```bash
20+
mkdir -p /var/lib/faasd-provider/secrets/openfaas-fn
21+
echo "secret" | sudo tee /var/lib/faasd-provider/secrets/openfaas-fn/api-key
22+
```
23+
1324
## A single stack.yaml
1425

1526
You can ship a single stack.yaml file with all your functions defined separately within it.

0 commit comments

Comments
 (0)