Refactor creation of volumes

This commit is contained in:
Wolfgang Huß 2020-12-08 08:43:35 +01:00
parent 7d21f1c752
commit 68fa07aa28
3 changed files with 6 additions and 5 deletions

View File

@ -9,4 +9,4 @@
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
storage: {{ .Values.neo4jStorage }} storage: "5Gi"

View File

@ -8,14 +8,15 @@ you from loosing data if you accidently delete the namespace and the persistent
volumes along with it. volumes along with it.
```sh ```sh
$ kubectl --namespace=human-connection get pv $ kubectl -n ocelot-social get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-bd02a715-66d0-11e9-be52-ba9c337f4551 1Gi RWO Delete Bound human-connection/neo4j-data-claim do-block-storage 4m24s pvc-bd02a715-66d0-11e9-be52-ba9c337f4551 5Gi RWO Delete Bound ocelot-social/neo4j-data-claim do-block-storage 4m24s
pvc-bd208086-66d0-11e9-be52-ba9c337f4551 2Gi RWO Delete Bound human-connection/uploads-claim do-block-storage 4m12s pvc-bd208086-66d0-11e9-be52-ba9c337f4551 10Gi RWO Delete Bound ocelot-social/uploads-claim do-block-storage 4m12s
``` ```
Get the volume id from above, then change `ReclaimPolicy` with: Get the volume id from above, then change `ReclaimPolicy` with:
```sh ```sh
kubectl patch pv <VOLUME-ID> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}' kubectl patch pv <VOLUME-ID> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'

View File

@ -9,4 +9,4 @@
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
storage: {{ .Values.uploadsStorage }} storage: "10Gi"