Skip to content

Path based vs sub domain based routing #183

@vedantthapa

Description

@vedantthapa

In order to expose a deployment in an ephemeral environment, we can use istio virtual service with either path based routing i.e, /prod endpoint pointing to prod instance and /ephemeral/pr-123 pointing to an ephemeral instance that is created off of a PR OR sub-domain based routing i.e, prod.hopic-sdpac.phac-aspc.alpha.canada.ca pointing to prod instance and *.dev.hopic-sdpac.phac-aspc.alpha.canada.ca pointing to ephemeral instances where * can be a PR id.

Path based routing has it's benefits in terms of SSO because the redirect URIs only need to be configured once, however, it might require some changes to the application code. Sub-domain based routing, on the other hand, does not require app updates, but also does work with SSO unless we can get a wildcard redirect URI.

Relates to #138

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev opsCI/CD, infrastructure, etck8s

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions