Deployment Configuration
Service Configuration
Persistent Volume Claim
Redis uses persistent storage to maintain data across restarts:Service Details
| Parameter | Value |
|---|---|
| Image | redis:6.2-alpine |
| Container Port | 6379 |
| Service Port | 80 |
| Replicas | 1 |
| Service Type | ClusterIP |
Storage Configuration
| Parameter | Value |
|---|---|
| Storage Class | standard-rwo |
| Access Mode | ReadWriteOnce |
| Storage Size | 5Gi |
| Mount Path | /data |
| SubPath | redis-data |
Connection URL
Services can connect to Redis using:Use Cases
The Redis service is used for:- Caching: Fast access to frequently accessed data
- Pub/Sub: Real-time message distribution for WebSocket streams
- Session Storage: Temporary session data
- Queue Management: Task queuing for asynchronous processing
Data Persistence
Redis data is persisted to a PersistentVolume at/data, ensuring that cached data and pub/sub state survive pod restarts. The Alpine-based image provides a lightweight deployment footprint.
Performance Considerations
- Single replica deployment for simplicity
- Persistent storage ensures data durability
- ClusterIP service type for internal-only access
- 5Gi storage allocation for cache and messaging data

