traefik/pkg/provider/kubernetes/crd/fixtures/tcp/with_middleware_crossprovider.yml

45 lines
767 B
YAML
Raw Normal View History

2023-03-20 14:38:08 +00:00
apiVersion: traefik.io/v1alpha1
2021-06-11 13:30:05 +00:00
kind: MiddlewareTCP
metadata:
name: ipwhitelist
namespace: default
spec:
ipWhiteList:
sourceRange:
- 127.0.0.1/32
---
2023-03-20 14:38:08 +00:00
apiVersion: traefik.io/v1alpha1
2021-06-11 13:30:05 +00:00
kind: MiddlewareTCP
metadata:
name: ipwhitelist
namespace: foo
spec:
ipWhiteList:
sourceRange:
- 127.0.0.1/32
---
2023-03-20 14:38:08 +00:00
apiVersion: traefik.io/v1alpha1
2021-06-11 13:30:05 +00:00
kind: IngressRouteTCP
metadata:
name: test.route
namespace: default
spec:
entryPoints:
- foo
routes:
- match: HostSNI(`foo.com`)
services:
- name: whoamitcp
port: 8000
middlewares:
- name: ipwhitelist
- name: ipwhitelist
namespace: foo
- name: ipwhitelist@file
- name: ipwhitelist-foo@file
namespace: foo