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

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct