LKE running PostgreSQL with linode-block-storage
I'm trying to run a PostgreSQL container on Linode Kubernetes using the linode-block-storage
persistent volume claim.
My PVC looks like this:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: django-postgres-pvc
labels:
app: postgres
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: linode-block-storage
My PostgreSQL container throws the following:
0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.
MountVolume.MountDevice failed for volume "pvc-c713ab1fc5a948f0" : rpc error: code = Internal desc = Unable to find device path out of attempted paths: [/dev/disk/by-id/linode-pvcc713ab1fc5a948f0 /dev/disk/by-id/scsi-0Linode_Volume_pvcc713ab1fc5a948f0]
Back-off restarting failed container
Any idea why this is happening and how to get around it?
1 Reply
tlambert
Linode Staff
I suggest reading the posts from @rahulait in the Deploying postgres databasa with csi volumes for a bit more information on this issue as well as possible solutions.