Tunnel from pages function (or worker) to GCP k8s cluster

Imagine you have a k8s cluster locked down inside GCP and you want to deploy your SPA on Pages. Your SPA has some logic that needs to live in a function (or worker, but function would be nicer for deploys) and said function needs to communicate with your k8s cluster inside GCP. If you don't want to open up your cluster to outside traffic, would it be possible to use Cloudflare Tunnels for this?
1 Reply
Shonnnie
Shonnnie13mo ago
Tunnels work for this but beware the traffic load limitations of tunnels. I would recommend tunnels for low traffic, and simple IP lock for high traffic. Cloud Armor can do this for really big apps, otherwise nginx ingress can do it easily for medium apps.
Want results from more Discord servers?
Add your server