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

45 lines
794 B
YAML
Raw Normal View History

2021-06-11 13:30:05 +00:00
apiVersion: traefik.containo.us/v1alpha1
kind: MiddlewareTCP
metadata:
2022-10-26 15:16:05 +00:00
name: ipallowlist
2021-06-11 13:30:05 +00:00
namespace: default
spec:
2022-10-26 15:16:05 +00:00
ipAllowList:
2021-06-11 13:30:05 +00:00
sourceRange:
- 127.0.0.1/32
---
apiVersion: traefik.containo.us/v1alpha1
kind: MiddlewareTCP
metadata:
2022-10-26 15:16:05 +00:00
name: ipallowlist
2021-06-11 13:30:05 +00:00
namespace: foo
spec:
2022-10-26 15:16:05 +00:00
ipAllowList:
2021-06-11 13:30:05 +00:00
sourceRange:
- 127.0.0.1/32
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: test.route
namespace: default
spec:
entryPoints:
- foo
routes:
- match: HostSNI(`foo.com`)
services:
- name: whoamitcp
port: 8000
middlewares:
2022-10-26 15:16:05 +00:00
- name: ipallowlist
- name: ipallowlist
2021-06-11 13:30:05 +00:00
namespace: foo
2022-10-26 15:16:05 +00:00
- name: ipallowlist@file
- name: ipallowlist-foo@file
2021-06-11 13:30:05 +00:00
namespace: foo