Browse Source

Preparo para creación de db

main
Celestino Rey 9 months ago
parent
commit
20b123d8e0
4 changed files with 7 additions and 94 deletions
  1. +0
    -67
      Yamls/pvc.yaml
  2. +0
    -27
      Yamls/reymota-development.yaml
  3. +3
    -0
      borraDB.sh
  4. +4
    -0
      creaDB.sh

+ 0
- 67
Yamls/pvc.yaml View File

@ -1,67 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: reymota-media
name: reymota-media
namespace: reymota
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
storageClassName: lvms-vg1
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: reymota-lyrics-migrations
name: reymota-lyrics-migrations
namespace: reymota
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Mi
storageClassName: lvms-vg1
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: reymota-repostajes-migrations
name: reymota-repostajes-migrations
namespace: reymota
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 52Mi
storageClassName: lvms-vg1
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: reymota-reymotausers-migrations
name: reymota-reymotausers-migrations
namespace: reymota
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 53Mi
storageClassName: lvms-vg1
status: {}

+ 0
- 27
Yamls/reymota-development.yaml View File

@ -1,27 +0,0 @@
volumeMounts:
- mountPath: /app/lyrics/migrations
name: reymota-lyrics-migrations
- mountPath: /app/mediafiles
name: reymota-media
- mountPath: /app/repostajes/migrations
name: reymota-repostajes-migrations
- mountPath: /app/reymotausers/migrations
name: reymota-reymotausers-migrations
- mountPath: /app/staticfiles
name: static-volume
volumes:
- name: reymota-lyrics-migrations
persistentVolumeClaim:
claimName: reymota-lyrics-migrations
- name: reymota-media
persistentVolumeClaim:
claimName: reymota-media
- name: reymota-repostajes-migrations
persistentVolumeClaim:
claimName: reymota-repostajes-migrations
- name: reymota-reymotausers-migrations
persistentVolumeClaim:
claimName: reymota-reymotausers-migrations
- name: static-volume
persistentVolumeClaim:
claimName: static-volume

+ 3
- 0
borraDB.sh View File

@ -0,0 +1,3 @@
oc delete -f Yamls/env-prod-db-configmap.yaml
oc delete -f Yamls/postgresql-deployment.yaml
oc delete -f Yamls/postgresql-service.yaml

+ 4
- 0
creaDB.sh View File

@ -0,0 +1,4 @@
oc create -f Yamls/env-prod-db-configmap.yaml
#oc create -f Yamls/pvc-postgresql.yaml
oc create -f Yamls/postgresql-deployment.yaml
oc create -f Yamls/postgresql-service.yaml

Loading…
Cancel
Save