This follows #747. Many of these changes are in fact from that PR, so the diff should really be compared after that is merged.
I've added the SKF_LABS_DEPLOY_MODE config variable. This defaults to "port", which is the old deployment method for labs, where they are deployed on a random port.
The new mode, "subdomain", creates an ingress rule for each lab, pointing a subdomain (for example xss-567889.skf-labs-example.org) to the lab.
The main domain is expected to have a wildcard DNS record, directing all subdomains to the ingress controller.
This follows #747. Many of these changes are in fact from that PR, so the diff should really be compared after that is merged.
I've added the
SKF_LABS_DEPLOY_MODE
config variable. This defaults to "port", which is the old deployment method for labs, where they are deployed on a random port.The new mode, "subdomain", creates an ingress rule for each lab, pointing a subdomain (for example
xss-567889.skf-labs-example.org
) to the lab.The main domain is expected to have a wildcard DNS record, directing all subdomains to the ingress controller.