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
Copy file name to clipboardExpand all lines: docs/uplink/ingress-for-tunnels.md
+150Lines changed: 150 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -282,3 +282,153 @@ spec:
282
282
```
283
283
284
284
After applying these resources you should be able to access the data plane for both tunnels on their custom domain.
285
+
286
+
## Wildcard Ingress with the data-router
287
+
288
+
As an alternative to creating individual sets of Ingress records, DNS A/CNAME entries and TLS certificates for each tunnel, you can use the `data-router` to route traffic to the correct tunnel based on the hostname. This approach uses a wildcard DNS entry and a single TLS certificate for all tunnels.
289
+
290
+
The following example is adapted from the cert-manager documentation to use DigitalOcean's DNS servers, however you can find [instructions for issuers](https://cert-manager.io/docs/configuration/acme/dns01/) such as AWS Route53, Cloudflare, and Google Cloud DNS listed.
291
+
292
+
DNS01 challenges require a secret to be created containing the credentials for the DNS provider. The secret is referenced by the issuer resource.
293
+
294
+
```bash
295
+
kubectl create secret generic \
296
+
-n inlets digitalocean-dns \
297
+
--from-file access-token=$HOME/do-access-token
298
+
```
299
+
300
+
Create a separate `Issuer`, assuming a domain of `t.example.com`, where each tunnel would be i.e. `prometheus.t.example.com` or `api.t.example.com`:
The `--domain` flag here is for your uplink control-plane, where tunnels connect, not the data-plane where ingress is served. This is usually i.e. `uplink.example.com`.
394
+
395
+
```bash
396
+
export TUNNEL_NS="tunnels"
397
+
export UPLINK_DOMAIN="uplink.example.com"
398
+
399
+
inlets-pro tunnel connect fileshare \
400
+
--namespace $TUNNEL_NS \
401
+
--domain $UPLINK_DOMAIN
402
+
```
403
+
404
+
Add the `--upstream fileshare.t.example.com=fileshare` flag to the command you were given, then run it.
405
+
406
+
The command below is sample output, do not copy it directly.
0 commit comments