You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- this change moves users over to the function store instead
of deploying a static set of functions.
Signed-off-by: Alex Ellis (VMware) <[email protected]>
Copy file name to clipboardExpand all lines: docs/deployment/docker-swarm.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,15 +99,31 @@ Within a few seconds (or minutes if on a poor WiFi connection) the API gateway a
99
99
!!! tip
100
100
If you're running on Linux you may find that accessing `localhost` times out. We recommend using an IPv4 address such as http://127.0.0.1:8080 to prevent any ambiguity.
101
101
102
-
## 2.2 Deploy the sample functions
102
+
## 2.2 Deploy functions from the OpenFaaS Function Store
103
103
104
-
The earlier `git clone` included a set of sample functions in `stack.yml`, to deploy them [install the OpenFaaS CLI](/cli/install/) and run:
104
+
You can find many different sample functions from the community through the OpenFaaS Function Store. The Function Store is built into the UI portal and also available via the CLI.
Copy file name to clipboardExpand all lines: docs/deployment/kubernetes.md
+18-40Lines changed: 18 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,60 +136,38 @@ For simplicity the default configuration uses NodePorts rather than an IngressCo
136
136
137
137
There are currently no sample functions built into this stack, but we can deploy them quickly via the UI or FaaS-CLI.
138
138
139
-
#### Use the CLI
139
+
#### Deploy functions from the OpenFaaS Function Store
140
140
141
-
* Then clone some samples to deploy on your cluster.
141
+
You can find many different sample functions from the community through the OpenFaaS Function Store. The Function Store is built into the UI portal and also available via the CLI.
142
142
143
-
```bash
144
-
$ git clone https://github.com/openfaas/faas-cli
145
-
```
146
-
147
-
Edit stack.yml and change your gateway URL from `localhost:8080` to `kubernetes-node-ip:31112` or pass the `--gateway` / `-g` flag to commands.
148
-
149
-
i.e.
150
-
151
-
```bash
152
-
provider:
153
-
name: faas
154
-
gateway: http://192.168.4.95:31112
155
-
```
156
-
Now deploy the samples:
157
-
158
-
```bash
159
-
faas-cli deploy -f stack.yml
160
-
```
143
+
You may need to pass the `--gateway` / `-g` flag to each `faas-cli` command or alternatively you can set an environmental variable such as:
161
144
162
-
!!! info
163
-
The `faas-cli` also supports an override of `--gateway http://...` for example:
0 commit comments