Skip to content

Commit

Permalink
Notes on openfaas usage
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Sep 23, 2024
1 parent 2de744e commit 9fc7e49
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions blog/_posts/2022-11-16-service-provider-uplinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ Imagine that you'd forwarded Postgres database from a customer site `acmeco` to
psql -U postgres -h prod.acmeco -p 25060 -d finance --set=sslmode=require
```

### Two or more HTTP tunnels over the same tunnel

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.

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.

Here's how it looks:

```bash
inlets-pro uplink client \
--upstream prometheus.tenant1=http://127.0.0.1:9090 \
--upstream openfaas.tenant1=http://127.0.0.1:8080
```

### Multiple TCP hosts and port remapping

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

0 comments on commit 9fc7e49

Please sign in to comment.