Last active
September 8, 2021 16:07
-
-
Save haproxytechblog/218319b074ca579d3ac1b1883822627d to your computer and use it in GitHub Desktop.
Rate Limiting with the HAProxy Kubernetes Ingress Controller
This file contains 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: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: web-ingress | |
namespace: default | |
annotations: | |
haproxy.org/rate-limit-requests: 10 |
This file contains 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: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: web-ingress | |
namespace: default | |
annotations: | |
haproxy.org/rate-limit-requests: 10 | |
haproxy.org/rate-limit-period: "1s" |
This file contains 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: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: web-ingress | |
namespace: default | |
annotations: | |
haproxy.org/rate-limit-requests: 10 | |
haproxy.org/rate-limit-period: "1s" | |
haproxy.org/rate-limit-status-code: "429" |
This file contains 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: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: web-ingress | |
namespace: default | |
annotations: | |
haproxy.org/rate-limit-requests: 10 | |
haproxy.org/rate-limit-period: "1s" | |
haproxy.org/rate-limit-status-code: "429" | |
haproxy.org/rate-limit-size: 1000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment