Back to all scenarios
Scenario #399
Storage
Kubernetes v1.24, default mountPath

Application Wrote Outside Mounted Path and Lost Data

Application wrote logs to /tmp, not mounted volume, causing data loss on pod eviction.

Find this helpful?
What Happened

Application configuration didn’t match the PVC mount path.

Diagnosis Steps
  • 1Pod deleted → logs disappeared.
  • 2PVC had no data.
Root Cause

Application not configured to use the mounted volume path.

Fix/Workaround
• Updated application config to write into the mount path.
Lessons Learned

Mounted volumes don’t capture all file writes by default.

How to Avoid
  • 1Review app config during volume integration.
  • 2Validate mount paths with a test write-read cycle.