So I'm just discovering Maesh/Traefik and I'm trying to understand the whole mechanics. Currently, I'm really struggling with how I should use this, but I have I use case that perhaps would be nice as a tutorial.
Say I've got two services that I would like to expose, but in two different namespaces on my cluster. (whoami just fine for demo, perhaps one http and one tcp). They would serve as stubs for potentially large and complicated backend services that deserve their own namespace.
I only have 1 domain at which I want to host things (www.example.com), so two Ingresses in different namespaces is currently a no-go.
Would it be possible to drum up a set of example manifests that:
- Defines the two services (easy enough)
- Adds them to maesh (they don't necessarily need to communicate for the example). Should just be an annotation.
- A Traefik ingress (in the maesh namespace?) that routes all traffic at:
- www.example.com/http to the http whoami service
- www.example.com/tcp to the tcp whoami service
At least, I believe that maesh can help here with it's cross-namespace service targeting. Would this require defining a central maesh rerouting service? This is where I'm getting a bit lost with all the targets, routes, and serviceaccounts in the current example.
Am I understanding this right? Any ideas?