luksa/kubernetes-in-action

Chapter06 wrong fsType

stgleb opened this issue · 0 comments

Doing steps from the book

kubectl create -f mongodb-pv-gcepd.yaml
kubectl create -f mongodb-pvc.yaml
kubectl create -f mongodb-pod-pvc.yaml

Fails with

kubectl describe po mongodb

....

me.MountDevice failed for volume "mongodb-pv" : failed to mount the volume as "nfs4", it already contains ext4. Mount error: mount failed: exit status 32

Because https://github.com/luksa/kubernetes-in-action/blob/master/Chapter06/mongodb-pv-gcepd.yaml has nfs4 instead of ext4 that is created by default in GCE and that is used in the book