Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications

Categories

🎓 Certifications
🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
CheatGrid
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications
LVLEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Container Storage & Persistent Volumes Cheat Sheet

Container Storage & Persistent Volumes Cheat Sheet

Back to Containers Orchestration
Updated 2026-05-25
Next Topic: Cosign Sigstore and Supply Chain Security Cheat Sheet

Container storage in Kubernetes provides mechanisms for pods to access and persist data beyond the lifecycle of individual containers. Persistent Volumes (PVs) abstract storage resources from the underlying infrastructure, while Persistent Volume Claims (PVCs) let users request storage without knowing implementation details. StorageClasses enable dynamic provisioning, and CSI (Container Storage Interface) drivers standardize how storage providers integrate with Kubernetes. Understanding volume types, access modes, binding policies, and lifecycle management is essential for running stateful workloads—databases, message queues, file servers—that require data to survive pod restarts, rescheduling, and cluster failures.

What This Cheat Sheet Covers

This topic spans 19 focused tables and 114 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Ephemeral Volume TypesTable 2: Persistent Volume (PV) BasicsTable 3: Storage Access ModesTable 4: StorageClass & Dynamic ProvisioningTable 5: Volume Reclaim PoliciesTable 6: Volume Binding ModesTable 7: Volume SnapshotsTable 8: Volume CloningTable 9: Container Storage Interface (CSI)Table 10: Open-Source & Third-Party Storage EnginesTable 11: Network-Attached Storage TypesTable 12: Cloud Provider Volumes (Legacy)Table 13: Volume Mounting OptionsTable 14: Volume Security ContextTable 15: StatefulSets with Persistent StorageTable 16: Volume ExpansionTable 17: Advanced Volume FeaturesTable 18: Backup & Disaster RecoveryTable 19: Storage Troubleshooting

Table 1: Ephemeral Volume Types

Ephemeral volumes live and die with the pod that uses them, making them ideal for scratch space, configuration injection, and short-lived caching. Choosing the right ephemeral type—memory-backed, node-local, or inline CSI—determines whether you're trading latency for memory or flexibility for simplicity.

TypeExampleDescription
emptyDir
volumes:
- name: cache
emptyDir: {}
• Temporary storage created when a pod is assigned to a node
• data is lost when the pod is removed
• useful for scratch space or caching.
emptyDir (memory-backed)
emptyDir:
medium: Memory
sizeLimit: 1Gi
• In-memory tmpfs volume for ultra-fast temporary storage
• counts against container's memory limit.
configMap
volumes:
- name: config
configMap:
name: app-config
• Projects ConfigMap data as files in the pod
• used for non-sensitive configuration files
• automatically updates when ConfigMap changes.
secret
volumes:
- name: creds
secret:
secretName: db-secret
• Projects Secret data as files
• base64 encoded at rest
• used for sensitive information like passwords or API keys.
projected
volumes:
- name: combined
projected:
sources:
- secret: {name: s1}
- configMap: {name: c1}
Combines multiple volume sources (secrets, configMaps, downwardAPI, serviceAccountToken) into a single mount point.

More in Containers Orchestration

  • Container Resource Management Cheat Sheet
  • Cosign Sigstore and Supply Chain Security Cheat Sheet
  • Argo Rollouts and Progressive Delivery Cheat Sheet
  • Container Debugging & Troubleshooting Cheat Sheet
  • Docker Cheat Sheet
  • Knative Serverless on Kubernetes Cheat Sheet
View all 38 topics in Containers Orchestration