Следующая реализация K8s правильно создает IngressRoute, однако ограничение скорости не применяется.
kind: Deployment
apiVersion: apps/v1
metadata:
name: whoami
labels:
app: containous
name: whoami
namespace: whoami
spec:
replicas: 2
selector:
matchLabels:
app: containous
task: whoami
template:
metadata:
labels:
app: containous
task: whoami
spec:
containers:
- name: containouswhoami
image: containous/whoami
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: crd-traefik-test
namespace: whoami
spec:
ports:
- name: http
port: 80
selector:
app: containous
task: whoami
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: rate-limiting-test
namespace: whoami
spec:
entryPoints:
- web
routes:
- middlewares:
- name: crd-service-rate-limiter
- match: Path(`/bar`)
kind: Rule
services:
- name: crd-traefik-test
port: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: crd-service-rate-limiter
namespace: whoami
spec:
rateLimit:
average: 1
period: 100
Может кто-нибудь помочь?
Приветствия