Skip to content

Commit d09cfbc

Browse files
committed
Port-forward in the background
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 1b7523e commit d09cfbc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/openfaas-pro/builder.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,14 @@ The `faas-cli` `publish` and `up` commands can use the `--remote-builder` flag t
6262

6363
First, port-forward the builder, and obtain the payload secret:
6464

65-
```
65+
```bash
6666
kubectl port-forward -n openfaas \
67-
deploy/pro-builder 8081:8080
67+
deploy/pro-builder 8081:8080 &
68+
```
69+
70+
Then:
71+
72+
```bash
6873
export PAYLOAD=$(kubectl get secret -n openfaas payload-secret -o jsonpath='{.data.payload-secret}' | base64 --decode)
6974
echo $PAYLOAD > $HOME/.openfaas/payload.txt
7075
```
@@ -169,7 +174,7 @@ Now port-forward the service and invoke it:
169174

170175
```bash
171176
kubectl port-forward -n openfaas \
172-
deploy/pro-builder 8081:8080
177+
deploy/pro-builder 8081:8080 &
173178
```
174179

175180
Generate a SHA256 HMAC signature and invoke the function passing in the `X-Build-Signature` header.

0 commit comments

Comments
 (0)