Page MenuHomePhabricator

Toolforge ingress: create a default landing page for unknown/default URLs
Open, NormalPublic

Description

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:

Event Timeline

aborrero removed aborrero as the assignee of this task.Fri, Sep 27, 12:46 PM
aborrero triaged this task as High priority.
aborrero lowered the priority of this task from High to Normal.
aborrero moved this task from Inbox to Important on the cloud-services-team (Kanban) board.