File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,32 @@ The helm chart is available in the [faas-netes](https://github.com/openfaas/faas
1414
1515For faasd, you can edit your ` docker-compose.yaml ` file to see the deployment. See the chart above for the image name and configuration required.
1616
17+ ### Add to faasd
18+
19+ Edit ` /var/lib/faasd/docker-compose.yaml ` and add:
20+
21+ ``` yaml
22+ cron-connector :
23+ image : " ghcr.io/openfaas/cron-connector:latest"
24+ environment :
25+ - gateway_url=http://gateway:8080
26+ - basic_auth=true
27+ - secret_mount_path=/run/secrets
28+ volumes :
29+ # we assume cwd == /var/lib/faasd
30+ - type : bind
31+ source : ./secrets/basic-auth-password
32+ target : /run/secrets/basic-auth-password
33+ - type : bind
34+ source : ./secrets/basic-auth-user
35+ target : /run/secrets/basic-auth-user
36+ cap_add :
37+ - CAP_NET_RAW
38+ depends_on :
39+ - gateway
40+ ` ` `
41+
42+ Then restart faasd.
1743### Trigger a function from Cron
1844
1945The function should have 2 annotations:
You can’t perform that action at this time.
0 commit comments