Skip to content

Commit ba21b2c

Browse files
authored
Add cron-connector
1 parent b519266 commit ba21b2c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,32 @@ The helm chart is available in the [faas-netes](https://github.com/openfaas/faas
1414

1515
For 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
1945
The function should have 2 annotations:

0 commit comments

Comments
 (0)