Search Blog

Knowledge · Cloud
Cloud Infrastructure and Kubernetes — From Deployment to Operations · 5 / 6

Pods Change; Data Must Survive: Storage and Redis

Block and object storage, PV/PVC and shared sessions

Compare durable application data, object storage and Redis when replacing or scaling Kubernetes Pods.

Pods can be replaced. Persisting data and sharing temporary state across multiple Pods are different requirements.

Choose storage by its access model

ComponentCommon purposeImportant constraint
Block storageDisk-based databases and filesystemsNode, zone and access-mode limits
Object storageUploaded assets, backups and imagesObject API and access policies
PV/PVCRequesting persistent volumes in KubernetesDepends on the underlying volume type
RedisCache, session state, countersPersistence and high-availability configuration

Block storage behaves like an attached disk. Kubernetes PersistentVolumes and PersistentVolumeClaims describe how volumes are provisioned and requested, not a guarantee that every Pod can mount the same filesystem simultaneously.

Object storage uses objects and keys instead of ordinary local filesystem operations. Redis is an in-memory data store that can provide cache and session sharing, with persistence options whose guarantees depend on configuration.

Scaling Pods also changes session assumptions

If two web Pods store sessions only in their local memory, moving requests between replicas can produce inconsistent login state. A shared session service may address this, provided its own availability and data-retention behavior are understood.

The better starting question is not only how much storage, but who reads it, how long it must survive, and whether Pods must share it.

References

CloudIT infrastructureKubernetesBlock StorageObject StoragePVCRedis
Connected projects
Cloud Infrastructure and Kubernetes — From Deployment to Operations · 5 / 6 · View series ↗