Problem & context
Stateful workloads on Kubernetes need disaster recovery that understands the database topology. KubeStash is AppsCode’s operator for backing up and restoring stateful applications; each database needs a plugin that knows how to take and restore consistent backups.
Architecture
- KubeStash orchestrates backup/restore sessions; the Redis plugin handles Redis-specific dump and restore for each deployment mode.
- The KubeDB Redis operator manages Standalone, Sentinel and Cluster (sharded) topologies; a node-finder component discovers shard masters and replicas.
Implementation
- Developed the KubeStash backup/restore plugin for Redis Standalone, Sentinel and Sharded clusters.
- Renamed the Redis cluster model from “master” to “shards” across the API and ops requests, and updated redis-node-finder and the init image for shard-replica-count changes.
- Enhanced cluster health checks and wrote comprehensive end-to-end tests for the Redis operator.
- Added new Redis and Valkey versions (7.x, 8.x) and update constraints; documented Redis backup/restore with KubeStash.
My contribution
- Designed and built the Redis backup/restore plugin, Redis e2e tests and health-check improvements.
Outcomes & impact
- Reliable, KubeStash-driven disaster recovery for every Redis deployment mode KubeDB supports.
- Higher confidence in Redis operator releases through end-to-end test coverage.