This message was deleted.
# rancher-desktop
a
This message was deleted.
f
Hi, I just tried to install postgres over helm chart where you can directly define used StorageClass without any further configuration and it seems to work (created pv and pvc are Bound)
Copy code
$ helm repo add bitnami <https://charts.bitnami.com/bitnami>
$ helm install postgres bitnami/postgresql --set global.storageClass=local-path
$ kubectl get sc,pv,pvc
NAME                                               PROVISIONER             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
<http://storageclass.storage.k8s.io/local-path|storageclass.storage.k8s.io/local-path> (default)   <http://rancher.io/local-path|rancher.io/local-path>   Delete          WaitForFirstConsumer   false                  7h50m

NAME                                                        CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                                STORAGECLASS   REASON   AGE
persistentvolume/pvc-b5f5aec9-565a-44ce-99bb-144516405338   8Gi        RWO            Delete           Bound    default/data-postgres-postgresql-0   local-path              4m38s

NAME                                               STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
persistentvolumeclaim/data-postgres-postgresql-0   Bound    pvc-b5f5aec9-565a-44ce-99bb-144516405338   8Gi        RWO            local-path     4m41s
i
thank you !! I will be able to compare & find with it do not work 🙂
f
you are welcome 🙂
i
the final objective is to build a postgres image from source on an UBI-minimal base image... there is stil some work to do :)
f
it should be doable I guess, good luck with that
181 Views