Skip to content

Commit c9296de

Browse files
committed
Add note on bootstrap.ran file
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 997dd3d commit c9296de

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

docs/edge/preloading.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@ But when it comes to functions, you generally have to deploy these via `faas-cli
66

77
Preloading is a solution to this problem.
88

9-
On the first boot of the `faasd-provider` service, any YAML files found will be deployed automatically.
9+
On the first boot of the `faasd-provider` service, any OpenFaaS Stack YAML files found will be deployed automatically.
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+
This is designed for an initial deployment of a set of functions when shipping a product to an end customer.
14+
15+
To update existing functions or to deploy new ones after the initial preload, you have two options:
16+
17+
* Use `faas-cli deploy`
18+
* Remove `/var/lib/faasd-provider/bootstrap.ran` and restart the `faasd-provider` service.
19+
20+
To delete functions which were previously deployed via preloading, use `faas-cli remove`. Removing them from the `/var/lib/faasd-provider/functions` folder will have no effect.
21+
1322
## Secrets for preloaded functions
1423

1524
If any of your functions require secrets, make sure you pre-create the secrets folder: `/var/lib/faasd-provider/secrets`.

0 commit comments

Comments
 (0)