Skip to content

Commit ecd6a49

Browse files
authored
Merge pull request #885 from nunix/fassd-template-fix
Fassd template fix
2 parents d20f2ca + 482afe7 commit ecd6a49

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

examples/faasd.yaml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
# Deploy faasd (which installs a bundled containerd).
22
#
33
# It can be accessed from the host by authenticating with faas-cli;
4-
# the ports are already forwarded automatically by lima:
5-
#
6-
# Get the faas-cli:
7-
# $ curl -sLS https://cli.openfaas.com | sh
8-
#
9-
# You can now log into your gateway:
10-
# $ export OPENFAAS_URL=http://localhost:8080
11-
# $ limactl shell faasd sudo cat /var/lib/faasd/secrets/basic-auth-password | faas-cli login -u admin --password-stdin
12-
# $
13-
# $ faas-cli store deploy NodeInfo
14-
#
15-
# Deployed. 200 OK.
16-
# URL: http://localhost:8080/function/nodeinfo
4+
# the ports are already forwarded automatically by lima.
175
#
186
# This example requires Lima v0.7.0 or later.
197

8+
message: |
9+
# Get the faas-cli from one of following sources:
10+
# package manager:
11+
brew install faas-cli
12+
#
13+
# script:
14+
curl -sLS https://cli.openfaas.com | sh
15+
#
16+
# You can now log into your gateway:
17+
------
18+
export OPENFAAS_URL=http://localhost:8080
19+
limactl shell faasd sudo cat /var/lib/faasd/secrets/basic-auth-password | faas-cli login -u admin --password-stdin
20+
------
21+
#
22+
# Once logged in, you can deploy your first function
23+
------
24+
faas-cli store deploy NodeInfo
25+
------
26+
2027
# Image is set to jammy (22.04 LTS) for long-term stability
2128
images:
2229
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
@@ -42,7 +49,7 @@ containerd:
4249
user: false
4350

4451
provision:
45-
- mode: system
52+
- mode: user
4653
script: |
4754
#!/bin/sh
4855
curl -sfL https://raw.githubusercontent.com/openfaas/faasd/master/hack/install.sh | bash -s -

0 commit comments

Comments
 (0)