How do I proxy to a downstream Kubernetes service? #1907
-
Using Ocelot I can specify that my downstream route is a Kubernetes service. I can provice the service name and namepace in my route configuration. Note, this requires adding some K8s specific middleware to Ocelot. How can I achieve this with YARP? I do not see any examples. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@mschaefer-gresham what exactly do you expect from the Kubernetes service? Anything special beyond just referencing the service? |
Beta Was this translation helpful? Give feedback.
-
We currently have an api gateway microservice that forwards requests to our downstream services inside the k8s cluster (using Ocelot). You can read about it here. It would be nice to have comparable functionality in YARP. |
Beta Was this translation helpful? Give feedback.
-
The answer did solve my issue. Thank you. |
Beta Was this translation helpful? Give feedback.
We currently have an api gateway microservice that forwards requests to our downstream services inside the k8s cluster (using Ocelot). You can read about it here. It would be nice to have comparable functionality in YARP.