Hello,
I am using Playground with multiple applications and a reverse proxy (like Kubernetes with ingress), how can I access different applications without using a subpath (“example(dot)com/myapp/”)
I can access my first application (on port 80) with 80-port-RANDOM.labs.kodekloud(dot)com
But I can’t access with a subdomain like app1.80-port-RANDOM.labs.kodekloud(dot)com
so I can’t use on the hostname for redirection
The only way is to have one application per port?
The ingress to the lab terminal you get via “View Port” is not under the control of the lab environment itself, thus you cannot add to or change it. Those host names are generated in a reverse proxy elsewhere on the kodekloud network.
So for a reverse proxy inside the lab, sub-paths are the only way - that or selection based on some HTTP header you define.
Ok, thanks for your reply
For now, I’m using multiple ports on the reverse proxy,
Do you know if a “subdomain” is planned for a future update of Kodekloud Playground
A wildcard redirect to the “main” domain
like this DNS record
*.80-port-RANDOM.labs.kodekloud(dot)com CNAME 80-port-RANDOM.labs.kodekloud(dot)com
This would be great for learning how to set up reverse proxy with many rules
Thanks