A ConfigMap mounted with `subPath` was updated, but the file in the running container never changes.
IntermediateTroubleshootingStorage and volumes
Answer
Likely causes → subPath mounts are bind mounts of a single file captured at container start; they never receive ConfigMap updates. Environment variables from ConfigMaps never update either.
Diagnose →
kubectl get pod web-x -o jsonpath='{.spec.containers[0].volumeMounts}' | jq '.[] | select(.subPath)'
Fix → Mount the whole ConfigMap as a directory (updates arrive within the kubelet sync period, about a minute), or roll the Pods when config changes (kubectl rollout restart, or a checksum annotation in the Helm template).
Prevent → Use a config hash annotation (checksum/config) or Kustomize generator hashes so config changes trigger rollouts.
More on Storage and volumes
A PVC is `Pending` with `no persistent volumes available for this claim and no storage class is set`.BeginnerA PVC sits `Pending` with event `waiting for first consumer to be created before binding`. Is something broken?BeginnerA PVC is stuck with `waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator`.IntermediateA Pod is stuck `ContainerCreating` with `Multi-Attach error for volume "pvc-3f1c..." Volume is already exclusively attached to one node and can't be attached to another`.IntermediateA Deployment with one replica and an RWO PVC gets `Multi-Attach error` on every rollout.BeginnerVolume attach fails with `AttachVolume.Attach failed for volume "pvc-..." : rpc error: code = Internal desc = Could not attach volume ... UnauthorizedOperation: You are not authorized to perform this operation`.Intermediate