Skip to main content

Prefix

Summary

If Prefix is set, the route will only match incoming requests with a path that begins with the specified prefix.

How to configure

YAML/JSON settingTypeUsage
prefixstringoptional

Examples

from: https://from.example.com
to: https://to.example.com
prefix: /admin

# ingress
spec:
ingressClassName: pomerium
rules:
- host: example.localhost.pomerium.io
http:
paths:
- backend:
service:
name: example
port:
name: http
path: /
pathType: Prefix