mirror of
https://github.com/hanzoai/ingress.git
synced 2026-11-03 00:49:13 +00:00
Image now publishes as ghcr.io/hanzoai/ingress:<branch> (e.g. :main, :v1.7.x) — matching the convention every other repo in the ecosystem uses (kms, gateway, etc.). Drops the legacy experimental- prefix that confused consumers.
48 lines
800 B
YAML
48 lines
800 B
YAML
apiVersion: ingress.k8s.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: stripprefix
|
|
namespace: default
|
|
|
|
spec:
|
|
stripPrefix:
|
|
prefixes:
|
|
- /tobestripped
|
|
|
|
---
|
|
apiVersion: ingress.k8s.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: addprefix
|
|
namespace: foo
|
|
|
|
spec:
|
|
addPrefix:
|
|
prefix: /tobeadded
|
|
|
|
---
|
|
apiVersion: ingress.k8s.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: test2.route
|
|
namespace: default
|
|
|
|
spec:
|
|
entryPoints:
|
|
- web
|
|
|
|
routes:
|
|
- match: Host(`foo.com`) && PathPrefix(`/tobestripped`)
|
|
priority: 12
|
|
kind: Rule
|
|
services:
|
|
- name: whoami
|
|
port: 80
|
|
middlewares:
|
|
- name: stripprefix
|
|
- name: addprefix
|
|
namespace: foo
|
|
- name: basicauth@file
|
|
- name: redirect@file
|
|
namespace: foo
|