Once Toolforge k8s is working with ingress and we have the routing in place, we will need a default route for URL not matched by any ingress rule.
My proposal is to direct traffic to this URL to a pod controlled by us.
This pod can either:
- have a static HTML web page with some error message or further instructions
- redirect to wikitech or some other external landing page
The ingress definition for this could be something similar to this:
apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: toolforge-default-ingress-route spec: rules: - host: toolforge.org http: paths: - backend: serviceName: toolforge-default-landing-page servicePort: 80
(exact setting TBD, depending on how the rest of the ingress is configured)
Foot note: I always loved the github 404 page: