redis
Redis on Kubernetes
Resources are defined in k8s/redis.yaml (PVC, Deployment, Service).
What gets created
- PersistentVolumeClaim
wilforlan-agent-play-redis-data— 1Gi,ReadWriteOnce. AOF data under/data. - Deployment
wilforlan-agent-play-redis— one replica,Recreatestrategy, imagepublic.ecr.aws/docker/library/redis:7.2-alpine,redis-server --appendonly yes, resource requests/limits, exec probes (redis-cli ping),fsGroup: 999for volume permissions with the official image user. - Service
wilforlan-agent-play-redis— ClusterIP port 6379.
Web UI connection
The web UI uses REDIS_URL=redis://wilforlan-agent-play-redis:6379 in namespace wilforlan-agent-play. An initContainer on the web UI pod waits until Redis accepts TCP connections before starting the app.
Operations
- Replicas: Sample is single-instance Redis; use a managed offering or Redis Sentinel/Cluster for HA if required.
- Auth: Not configured; add Redis
--requirepassand a Secret, then extendREDIS_URL.
Application behavior: Redis / repository.