Hello,
I've a kubernetes cluster with a lot of containers. For this exemple, i've 20 containers "whoami" (port 80).
- whoami1 (v1.0)
- whoami2 (v1.1)
- whoami3 (v1.2)
...
Each container are a differente version of whomai.
I've deployed traefik 2.6 with the provider kubernetes-crd and a whoami deployment (1 replicat) and i can traefik generate the good route for dahsboard and whami (i use service and ingressRoute). I've configured ingressRoute with kind Rule and match "Host('domaine.com'). It's works fine.
But for other whoami container (20 or more), i want Traefik generate all the route automatically (the whomai containers are generate automatically every days with different count). How can i configued that without creating a service and ingressRoute for each containes ? For exemple i want the url "whoami1.domaine.com route to the container "whoami1" dynamically. And if i generate de container "whomai200", traefik generate a automatically route "whoami200.domaine.com"
With a docker provider i used this argument "--providers.docker.defaultRule=Host({{ normalize .Name }}.domaine.com
)". But how can i do the same with the provider kubenretes-crd.
Thanks !