In this practical exercise, I worked with Google Cloud Platform (GCP), Google Kubernetes Engine (GKE), Kubernetes StorageClass, PersistentVolume (PV), PersistentVolumeClaim (PVC), and Pod storage. The main goal was to understand how Kubernetes can dynamically create persistent storage and attach that storage to a Pod. š Architecture The complete flow of this practical is: 1. Create a GKE Standard Cluster First, I created a Standard GKE cluster in Google Cloud. After
Tag: PersistentVolume
Kubernetes applications often need persistent storage to keep data even when containers restart or are recreated. Kubernetes provides Persistent Volumes (PV) and Persistent Volume Claims (PVC) to manage this storage. In this practical lab, we will create a PersistentVolume, create a PersistentVolumeClaim, attach the PVC to an Nginx Pod, and use a node’s /mnt/data directory as persistent storage through hostPath. What You Will Learn In this practical, we will understand: