Lab6 (Spring Boot/K8S): Persistent Volumes in Kubernetes

Eric Anicet
9 min readJun 24, 2024

In this story, we’ll explore the persistent volumes in Kubernetes.

· Understanding Persistent Volumes
Types of Persistent Volumes
Persistent Volume access modes
Volume Mode
Reclaim Policy
· What is a Persistent Volume Claim?
· Real-world examples
Using a PersistentVolumeClaim in a pod
Connecting to Postgres from the API
· Testing
Endpoint testing
Delete resources
· Conclusion
· References

This series of stories shows how to use Kubernetes in the Spring ecosystem. We work with a Spring Boot API and Minikube to have a lightweight and fast development environment similar to production.

--

--