Skip to content

Commit 6baa7b3

Browse files
Erich Stoeklalexellis
authored andcommitted
Update messaging on specifying a different gateway endpoint
Signed-off-by: Eric Stoekl <[email protected]>
1 parent feecf56 commit 6baa7b3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lab2.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ You'll see an ASCII logo generated like this:
6060

6161
You can now test out the CLI, but first a note on alternate gateways URLs:
6262

63-
If your gateway is not deployed at http://127.0.0.1:8080 then you will need to specify the `--gateway` flag followed by the alternate URL.
63+
If your gateway is not deployed at http://127.0.0.1:8080 then you will need to specify the alternative location. There are several ways to accomplish this:
6464

65-
> A shorter versions of flags are available most of the time so `--gateway` can be shortened to `-g` too. Check `faas-cli --help` for more information.
65+
1. Set the environment variable `OPENFAAS_URL` and the `faas-cli` will point to that endpoint in your current shell session. For example: `export OPENFAAS_URL=http://openfaas.endpoint.com:8080`
66+
2. Specify the correct endpoint inline with the `-g` or `--gateway` flag: `faas deploy --gateway http://openfaas.endpoint.com:8080`
67+
3. In your deployment YAML file, change the value specified by the `gateway:` object under `provider:`.
6668

6769
### List the deployed functions
6870

lab3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ functions:
9797
* The folder used to build from is called `handler`, this must be a folder not a file
9898
* The Docker image name to be used is under the field `image`
9999

100-
For ease of use the `gateway` URL can be overriden in the YAML file or on the CLI.
100+
Remember that the `gateway` URL can be overriden in the YAML file (by editing the `gateway:` value under `provider:`) or on the CLI (by using `--gateway` or setting the `OPENFAAS_URL` environment variable).
101101

102102
Here is the contents of the `handler.py` file:
103103

0 commit comments

Comments
 (0)