Retain static PersistentVolumeClaim Change Claim to static hostPath volume cat >~/carpool/postgres/postgres-pv-claim.yaml <~/carpool/postgres/postgres-pv.yaml < kubectl create namespace carpool kubectl apply -f postgres kubectl apply -f app kubectl run curl -ti --image=curlimages/curl -- /bin/sh cd /tmp cat >car_1.json < # remove claim-ref uid and resource version kubectl create ns carpool kubectl apply -f postgres kubectl apply -f app kubectl run curl -ti --image=curlimages/curl -- /bin/sh curl http://carpool:5000/car # data exists exit