pl4nty / cloudflare-kubernetes-gateway

Manage Kubernetes traffic with Cloudflare Tunnels
MIT License
69 stars 6 forks source link

Add ability to apply additional configuration options to the cloudflared instance #161

Open TroyKomodo opened 1 week ago

TroyKomodo commented 1 week ago

Allow for specifying replicas, affinity, tolerations on the cloudflared deployments.

And potentially create a service and or service monitors for metrics.

pl4nty commented 1 week ago

It should already be possible to create your own cloudflared deployments, since the operator uses the Cloudflare API for routing, rather than a local config file. If that works for you, I can add a GatewayInfrastructure parameter to disable the operator's deployment.

Tunnel metrics are available on port 2000, but controller metrics aren't enabled. I'll fix that in the next release and add optional ServiceMonitors. kubebuilder has a plugin for controller Grafana dashboards too, would that be useful to you? Just using controller metrics though, not cloudflared.