2022-02-28 01:52:38 +07:00
|
|
|
# Expose services to the internet
|
|
|
|
|
2022-07-06 12:33:35 +07:00
|
|
|
!!! info
|
|
|
|
|
2022-08-29 14:28:12 +07:00
|
|
|
This tutorial is for Cloudflare Tunnel users, please skip if you use port forwarding.
|
2022-02-28 01:52:38 +07:00
|
|
|
|
|
|
|
Apply the `./external` layer to create a tunnel if you haven't already,
|
|
|
|
then add the following annotations to your `Ingress` object (replace `example.com` with your domain):
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
external-dns.alpha.kubernetes.io/target: "homelab-tunnel.example.com"
|
|
|
|
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
|
|
|
|
# ...
|
|
|
|
```
|