liveBook · Manning

Redis

As explained in Road to Kubernetes

Redis is an open-source in-memory data structure store that can provide database, cache, and messaging functionality.

Redis is an open-source, in-memory key-value data store that can support database, cache, and messaging roles. Its simple setup makes it practical for connecting an application to a separate stateful service. section 6.4.2

Deploy Redis alongside an application by handling its client tools, service address, and stored data:

  • Connect other Compose services by using the Redis service name rather than a hostname, and rebuild after changing the application Dockerfile. section 6.4.2
  • Treat volume removal carefully: docker compose down preserves Compose-managed mounted volumes, while docker compose down -v can destroy their data. section 6.4.2

Redis in a Kubernetes namespace

Create a dedicated rk8s-redis Namespace, then deploy Redis with a StatefulSet, one replica, a 10Gi volume claim mounted at /data, and a ClusterIP Service on port 6379. Querying Pods with kubectl get pods -n rk8s-redis separates Redis resources from resources in the default Namespace. section 8.4.4

How Road to Kubernetes covers it

How deep it goes
Demonstrates service definitions, client tooling, persistence, namespaces, StatefulSets, volume claims, and Services without exploring Redis-specific technical differences.
Examples
Uses redis-tools, a Compose redis service, named volumes, an rk8s-redis Namespace, and Redis Kubernetes manifests.
What it assumes
Assumes basic Dockerfile, Docker Compose, kubectl, and application-container knowledge while explaining Redis deployment requirements directly.
What you can do after
Operate/configure Redis with Docker Compose or Kubernetes, preserving data and connecting application services through declared endpoints.
How it connects
Connects Redis with Docker Compose, Dockerfiles, Python applications, Kubernetes Namespaces, StatefulSets, persistent volume claims, and Services.

Also explained in

Compare how 6 books explain Redis →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Road to Kubernetes. The section links point to the parts of the book it draws on.