Skip to content

Commit 9fc7e49

Browse files
committed
Notes on openfaas usage
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 2de744e commit 9fc7e49

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

blog/_posts/2022-11-16-service-provider-uplinks.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,20 @@ Imagine that you'd forwarded Postgres database from a customer site `acmeco` to
6868
psql -U postgres -h prod.acmeco -p 25060 -d finance --set=sslmode=require
6969
```
7070

71+
### Two or more HTTP tunnels over the same tunnel
72+
73+
You can now tunnel multiple HTTP services over the same tunnel, just make sure the HTTP host header is sent to port 8000 when you access the tunnel server's ClusterIP service from within Kubernetes.
74+
75+
Kubiya.ai uses this approach to command & control remote OpenFaaS installations. The REST API is exposed via one Host header, and the Prometheus metrics are accessed via another.
76+
77+
Here's how it looks:
78+
79+
```bash
80+
inlets-pro uplink client \
81+
--upstream prometheus.tenant1=http://127.0.0.1:9090 \
82+
--upstream openfaas.tenant1=http://127.0.0.1:8080
83+
```
84+
7185
### Multiple TCP hosts and port remapping
7286

7387
You can now tunnel multiple TCP upstream hosts over one tunnel, publishing different ports:

0 commit comments

Comments
 (0)