caddyserver / ingress

WIP Caddy 2 ingress controller for Kubernetes
Apache License 2.0
620 stars 70 forks source link

Reverse-Proxy directive as object? #218

Open IngwiePhoenix opened 3 months ago

IngwiePhoenix commented 3 months ago

Hello!

Would it be possible to create a CRD that would facilitate Caddy's excellent reverse proxy feature? If TLS and friends are already set up, it'd be awesome to be able to take advantage of it and reverse proxy to other parts of the network if needed.

Thanks!

Xinayder commented 3 months ago

I'm not sure I understand what you mean. As far as I know, the ingress controller already works as a reverse proxy and you just need to setup a Service resource, include the ingress directive on your deployment and it'll take care of the rest.

For example, I have a Service definition pointing to an ExternalName outside my k8s cluster and the ingress controller handles it with ease.