Created
September 22, 2019 15:09
-
-
Save fleeto/1b7269039908165683ba70a0b0d01911 to your computer and use it in GitHub Desktop.
ratelimit-in-treafik-v2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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