Limitador Persistence
By default, Limitador stores rate-limit counters in memory. Counters reset when pods restart, scale, or are rescheduled. For production deployments, configure Limitador to use Redis for persistent storage.
Other Storage Options
Limitador supports additional storage backends. See the Limitador configuration documentation for details. This guide focuses on Redis.
Configuration
To configure Limitador with Redis persistent storage:
- Deploy Redis according to your environment's requirements
- Create a Kubernetes Secret with the Redis connection URL
- Update the Limitador CR to reference the Secret
For complete configuration steps, see Red Hat Connectivity Link - Configure Redis.
Local Development Setup
For local development and testing, use the provided Redis setup script:
Script: scripts/setup-redis.sh
# Default namespace: redis-limitador
./scripts/setup-redis.sh
# Or specify custom namespace
NAMESPACE=my-namespace ./scripts/setup-redis.sh
The script deploys a basic Redis instance and outputs instructions for configuring your Limitador CR.
Development Only
This script deploys a non-HA Redis instance for local development. For production, follow the Red Hat Connectivity Link documentation.
Related Documentation
- Limitador Configuration - Storage backend options and configuration
- Red Hat Connectivity Link - Configure Redis - Production Redis setup