mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Refactor creation of volumes
This commit is contained in:
parent
7d21f1c752
commit
68fa07aa28
@ -9,4 +9,4 @@
|
|||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.neo4jStorage }}
|
storage: "5Gi"
|
||||||
|
|||||||
@ -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"}}'
|
||||||
|
|
||||||
|
|||||||
@ -9,4 +9,4 @@
|
|||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.uploadsStorage }}
|
storage: "10Gi"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user