Browse Source

Añado backup a Makefiles

politica
Celestino Rey 1 year ago
parent
commit
e1fc2a4c62
4 changed files with 2479 additions and 14 deletions
  1. +3
    -0
      ReyMotaAppsDj/K8S/Makefile
  2. +3
    -0
      ReyMotaAppsDj/K8S/Makefile.local
  3. +7
    -14
      ReyMotaAppsDj/K8S/pv-local-reymota.yaml
  4. +2466
    -0
      ReyMotaAppsDj/K8S/reymota-0.18.sql

+ 3
- 0
ReyMotaAppsDj/K8S/Makefile View File

@ -48,3 +48,6 @@ clean:
nginx:
cd ../nginx; make
backup:
kubectl --kubeconfig /home/creylopez/.kube/config -n reymota exec -ti deployment.apps/db -- /usr/lib/postgresql/15/bin/pg_dump --username=creylopez --dbname=reymota > reymota-$(IMG_VERSION).sql

+ 3
- 0
ReyMotaAppsDj/K8S/Makefile.local View File

@ -52,3 +52,6 @@ nginx:
verimg:
docker run -it ${REGISTRY}/reymota-${ARQUITECTURA}:${IMG_VERSION} bash
backup:
kubectl --kubeconfig /home/creylopez/.kube/config -n reymota exec -ti deployment.apps/db -- /usr/lib/postgresql/15/bin/pg_dump --username=creylopez --dbname=reymota > reymota-$(IMG_VERSION).sql

+ 7
- 14
ReyMotaAppsDj/K8S/pv-local-reymota.yaml View File

@ -11,8 +11,7 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
#path: "/mnt/Externo/reymota/media"
path: "/mnt/Externo/copiareymota/media"
path: "/mnt/Externo/reymota/media"
---
apiVersion: v1
kind: PersistentVolume
@ -27,8 +26,7 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
#path: "/mnt/Externo/reymota/migrations/lyrics"
path: "/mnt/Externo/copiareymota/migrations/lyrics"
path: "/mnt/Externo/reymota/migrations/lyrics"
---
apiVersion: v1
kind: PersistentVolume
@ -43,8 +41,7 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
#path: "/mnt/Externo/reymota/migrations/libros"
path: "/mnt/Externo/copiareymota/migrations/libros"
path: "/mnt/Externo/reymota/migrations/libros"
---
apiVersion: v1
kind: PersistentVolume
@ -59,8 +56,7 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
#path: "/mnt/Externo/reymota/migrations/repostajes"
path: "/mnt/Externo/copiareymota/migrations/repostajes"
path: "/mnt/Externo/reymota/migrations/repostajes"
---
apiVersion: v1
kind: PersistentVolume
@ -75,8 +71,7 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
#path: "/mnt/Externo/reymota/migrations/reymotausers"
path: "/mnt/Externo/copiareymota/migrations/reymotausers"
path: "/mnt/Externo/reymota/migrations/reymotausers"
---
apiVersion: v1
kind: PersistentVolume
@ -91,8 +86,7 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
#path: "/mnt/Externo/reymota/static"
path: "/mnt/Externo/copiareymota/static"
path: "/mnt/Externo/reymota/static"
---
apiVersion: v1
kind: PersistentVolume
@ -107,5 +101,4 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
#path: "/mnt/Externo/reymota/pg"
path: "/mnt/Externo/copiareymota/pg"
path: "/mnt/Externo/reymota/pg"

+ 2466
- 0
ReyMotaAppsDj/K8S/reymota-0.18.sql
File diff suppressed because it is too large
View File


Loading…
Cancel
Save