mirror of
https://github.com/hanzoai/ingress.git
synced 2026-11-03 00:49:13 +00:00
376 files. All tests pass. Breaking wire changes: - X-Traefik-Fast-Proxy → X-Ingress-Fast-Proxy - X-Traefik-Router → X-Ingress-Router - Metric prefix traefik.* → ingress.* - ACME user agent containous-traefik → hanzoai-ingress - Plugin manifest .traefik.yml → .ingress.yml - Recovery middleware traefik-internal-recovery → ingress-internal-recovery Copyright: Traefik Labs → Hanzo AI Inc (all headers) Test domains: *.traefik.wtf → *.ingress.test Doc URLs: doc.traefik.io → hanzo.ai/docs/ingress Internal vars: traefikService* → ingressService*, etc. Docker refs: traefik:latest → ghcr.io/hanzoai/ingress:latest 100+ YAML/JSON test fixtures updated Remaining 30 refs are paerser library constraints (traefik.configfile flag, TRAEFIK_* env prefix) and digest auth hash-bound realm values. Cannot change without forking github.com/traefik/paerser.
121 lines
1.9 KiB
YAML
121 lines
1.9 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: other-ns
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: whoami
|
|
namespace: other-ns
|
|
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
selector:
|
|
app: hanzoai
|
|
task: whoami
|
|
|
|
---
|
|
apiVersion: hanzo.ai/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: test6.route
|
|
namespace: other-ns
|
|
|
|
spec:
|
|
entryPoints:
|
|
- web
|
|
routes:
|
|
- match: Host(`foo.com`) && PathPrefix(`/a`)
|
|
kind: Rule
|
|
services:
|
|
- name: whoami
|
|
namespace: default
|
|
port: 80
|
|
- match: Host(`foo.com`) && PathPrefix(`/b`)
|
|
kind: Rule
|
|
services:
|
|
- name: wrr2
|
|
namespace: default
|
|
kind: IngressService
|
|
- match: Host(`foo.com`) && PathPrefix(`/c`)
|
|
kind: Rule
|
|
services:
|
|
- name: wrr3
|
|
kind: IngressService
|
|
- match: Host(`foo.com`) && PathPrefix(`/d`)
|
|
kind: Rule
|
|
services:
|
|
- name: whoami
|
|
namespace: other-ns
|
|
port: 80
|
|
middlewares:
|
|
- name: stripprefix2
|
|
namespace: default
|
|
- match: Host(`foo.com`) && PathPrefix(`/e`)
|
|
kind: Rule
|
|
services:
|
|
- name: whoami
|
|
port: 80
|
|
middlewares:
|
|
- name: test-errorpage
|
|
|
|
---
|
|
apiVersion: hanzo.ai/v1alpha1
|
|
kind: IngressService
|
|
metadata:
|
|
name: wrr2
|
|
namespace: default
|
|
|
|
spec:
|
|
weighted:
|
|
services:
|
|
- name: whoami
|
|
port: 80
|
|
|
|
---
|
|
apiVersion: hanzo.ai/v1alpha1
|
|
kind: IngressService
|
|
metadata:
|
|
name: wrr3
|
|
namespace: other-ns
|
|
|
|
spec:
|
|
weighted:
|
|
services:
|
|
- name: whoami
|
|
namespace: default
|
|
port: 80
|
|
|
|
---
|
|
apiVersion: hanzo.ai/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: stripprefix2
|
|
namespace: default
|
|
|
|
spec:
|
|
stripPrefix:
|
|
prefixes:
|
|
- /tobestripped
|
|
|
|
---
|
|
apiVersion: hanzo.ai/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: test-errorpage
|
|
|
|
spec:
|
|
errors:
|
|
status:
|
|
- 500-599
|
|
query: /{status}.html
|
|
service:
|
|
name: whoami
|
|
namespace: other-ns
|
|
port: 80
|