Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage class not working #93

Open
penumbra23 opened this issue Nov 11, 2021 · 0 comments
Open

Storage class not working #93

penumbra23 opened this issue Nov 11, 2021 · 0 comments

Comments

@penumbra23
Copy link

Bug Report

What did you do?

I've followed the instructions and deployed the operator inside a custom namespace (postgresql-operator). Logs show it's working and when deploying a Database object inside the same namespace, it creates the deployment, service, and PVC objects, but the PVC hangs in pending status because it has no storage class.

What did you expect to see?

Running database with attached dynamically provisioned volume.

Environment

Kubernetes v1.19.7 running on rke
Postgres Operator by Dev4devs v0.1.1

I have already working storage and PostgreSQL databases working with that storage classes, but it seems that the mapping to the PVC doesn't work. Here is some additional output:

> kubectl get pods -n postgresql-operator
NAME                                   READY   STATUS    RESTARTS   AGE
my-database-5886cc5d7c-92fqc           0/1     Pending   0          11m
postgresql-operator-767db75547-6dlpc   1/1     Running   0          67m

> kubectl describe pvc -n postgresql-operator
Name:          my-database
Namespace:     postgresql-operator
StorageClass:
Status:        Pending
Volume:
Labels:        cr=my-database
               owner=postgresqloperator
Annotations:   <none>
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode:    Filesystem
Mounted By:    my-database-5886cc5d7c-92fqc
Events:
  Type    Reason         Age                 From                         Message
  ----    ------         ----                ----                         -------
  Normal  FailedBinding  93s (x42 over 11m)  persistentvolume-controller  no persistent volumes available for this claim and no storage class is set

> kubectl get sc
NAME         PROVISIONER                                RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
ceph-fs      rook-ceph.cephfs.csi.ceph.com              Delete          Immediate           false                  8d
nfs-client   cluster.local/nfs-nfs-client-provisioner   Delete          Immediate           true                   243d

I've read the docs, but nothing helps it seems. Any idea why? Or where to lookup?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant