2023-03-20 14:38:08 +00:00
|
|
|
apiVersion: traefik.io/v1alpha1
|
2022-11-22 09:18:04 +00:00
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: test.route
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
entryPoints:
|
|
|
|
- foo
|
|
|
|
|
|
|
|
routes:
|
|
|
|
- match: Host(`foo.com`) && PathPrefix(`/bar`)
|
|
|
|
kind: Rule
|
|
|
|
priority: 12
|
|
|
|
services:
|
|
|
|
- name: test-weighted
|
|
|
|
kind: TraefikService
|
|
|
|
- name: test-mirror
|
|
|
|
kind: TraefikService
|
|
|
|
middlewares:
|
|
|
|
- name: test-errorpage
|
|
|
|
|
|
|
|
---
|
2023-03-20 14:38:08 +00:00
|
|
|
apiVersion: traefik.io/v1alpha1
|
2022-11-22 09:18:04 +00:00
|
|
|
kind: TraefikService
|
|
|
|
metadata:
|
|
|
|
name: test-weighted
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
weighted:
|
|
|
|
services:
|
2024-06-21 12:56:03 +00:00
|
|
|
- name: whoami-without-endpointslice-endpoints
|
2022-11-22 09:18:04 +00:00
|
|
|
weight: 1
|
|
|
|
port: 80
|
|
|
|
|
|
|
|
---
|
2023-03-20 14:38:08 +00:00
|
|
|
apiVersion: traefik.io/v1alpha1
|
2022-11-22 09:18:04 +00:00
|
|
|
kind: TraefikService
|
|
|
|
metadata:
|
|
|
|
name: test-mirror
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
mirroring:
|
2024-06-21 12:56:03 +00:00
|
|
|
name: whoami-without-endpointslice-endpoints
|
2022-11-22 09:18:04 +00:00
|
|
|
port: 80
|
|
|
|
mirrors:
|
2024-06-21 12:56:03 +00:00
|
|
|
- name: whoami-without-endpointslice-endpoints
|
2022-11-22 09:18:04 +00:00
|
|
|
port: 80
|
|
|
|
- name: test-weighted
|
|
|
|
kind: TraefikService
|
|
|
|
|
|
|
|
---
|
2023-03-20 14:38:08 +00:00
|
|
|
apiVersion: traefik.io/v1alpha1
|
2022-11-22 09:18:04 +00:00
|
|
|
kind: Middleware
|
|
|
|
metadata:
|
|
|
|
name: test-errorpage
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
errors:
|
|
|
|
service:
|
2024-06-21 12:56:03 +00:00
|
|
|
name: whoami-without-endpointslice-endpoints
|
2022-11-22 09:18:04 +00:00
|
|
|
port: 80
|