2

A question or more discussion / looking for feedback.

Let's say we have

Application Firewall
- Application Routing
-- API Gateway

Then lots of containers.

Would you use host based routing in the containers?

It seems wrong to me, as in my opinion it breaks the boundary the API gateway provides.

Maybe someone can share his experience, I'd be delighted.

Comments
  • 2
    Pretty sure k8s does it for you, in a multinode/loadbalancer approach.
    Any reason to reinvent?
  • 2
    @magicMirror has nothing to do with K8S specifically, rather with the _container_ or in K8S pod.

    Question was: Should the container (pod) use host based routing?

    As in being aware of which specific domain / host the container runs and utilize it?
  • 0
    @IntrusionCM why? Just use your WAF or stick a reverse proxy between it and your containers.

    It also might help to know if this is for cloud or VM.
  • 0
    @sariel the question why is my question, I'm curious and wanted to have a discussion.

    You know with arguments and kinky stuff like explanations and full sentences...
  • 1
    @IntrusionCM
    If you are working in a k8s context, and using an ingress, then the host based routing is done there, in a single responsibility approach.

    Do your containers needs to be aware of the host - and base thier request handling logic on that?
Add Comment