Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse-Proxy directive as object? #218

Open
IngwiePhoenix opened this issue Apr 13, 2024 · 1 comment
Open

Reverse-Proxy directive as object? #218

IngwiePhoenix opened this issue Apr 13, 2024 · 1 comment

Comments

@IngwiePhoenix
Copy link

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
Copy link
Contributor

Xinayder commented Apr 18, 2024

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.

  • Service type ExternalName points to 123.231.123.123 (public ip for another server elsewhere)
  • Ingress pointing to this service, so I can the server via external.mydomain.name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants