Skip to content

muhammadhassaan-solves/managing-ephemeral-and-persistent-volumes-in-k8s

Repository files navigation

Managing Ephemeral and Persistent Volumes in Kubernetes for Reliable Storage

Description

This project demonstrates Kubernetes volume management by deploying a MySQL database with persistent storage and an Nginx app using ephemeral storage. It helps verify how data is retained or lost when pods are restarted or deleted.

Tools and Technologies

  • Kubernetes
  • kubectl
  • YAML
  • PersistentVolume (PV)
  • PersistentVolumeClaim (PVC)
  • emptyDir

Project Walk-through

Create a PersistentVolume (PV) to define cluster-level storage


Create a PersistentVolumeClaim (PVC) to request storage


Deploy a MySQL app using the PVC to ensure data survives pod restarts


Deploy an app with ephemeral volumes (emptyDir) to test temporary storage


Validate volume behavior by deleting pods and checking data persistence or loss


Use ConfigMap as a volume to mount configuration files inside a pod.


About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published