diff --git a/Yamls/pvc.yaml b/Yamls/pvc.yaml deleted file mode 100644 index d189e15..0000000 --- a/Yamls/pvc.yaml +++ /dev/null @@ -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: {} diff --git a/Yamls/reymota-development.yaml b/Yamls/reymota-development.yaml deleted file mode 100644 index 2bde992..0000000 --- a/Yamls/reymota-development.yaml +++ /dev/null @@ -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 diff --git a/borraDB.sh b/borraDB.sh new file mode 100644 index 0000000..0ebb1fb --- /dev/null +++ b/borraDB.sh @@ -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 diff --git a/creaDB.sh b/creaDB.sh new file mode 100644 index 0000000..d46530a --- /dev/null +++ b/creaDB.sh @@ -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