Skip to content

Instantly share code, notes, and snippets.

@fleeto
Created September 22, 2019 15:09
Show Gist options
  • Save fleeto/1b7269039908165683ba70a0b0d01911 to your computer and use it in GitHub Desktop.
Save fleeto/1b7269039908165683ba70a0b0d01911 to your computer and use it in GitHub Desktop.
ratelimit-in-treafik-v2.0
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: httpbin-traffic
spec:
rateLimit:
burst: 1
average: 2
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: httpbin
spec:
entryPoints:
- web
routes:
- kind: Rule
match: Host(`httpbin.microservice.xyz`)
services:
- name: httpbin
port: 8000
middlewares:
- name: httpbin-traffic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment