A Kubernetes operator that injects an Nginx sidecar to enforce dynamic rate limiting rules. It watches custom RateLimits resources and automatically updates your application deployments with the proper Nginx configuration.
This operator works in tandem with the Nginx Ratelimits Proxy project to apply request quotas to any Kubernetes workload.
- Custom resource definition for managing rate limits
- Automatic sidecar injection and removal
- Example manifests for quick testing
- Helm chart for easy installation
- Development environment powered by Tilt
helm repo add nginx-ratelimits https://omarfawzi.github.io/Nginx-Ratelimits-Operator
helm install nginx-ratelimits-operator nginx-ratelimits/nginx-ratelimits-operator --version 1.5.0Tilt can create a local Kind cluster and deploy the operator for iterative development:
- Install Tilt.
- Run
tilt upfrom the repository root. - Tilt builds the operator image, installs the Helm chart and applies the sample manifests in
test/.
tilt upSee the test/ directory for example workloads and rate limit definitions.
Apply the sample RateLimits from the test directory to see the operator in action.