Browse Source

Cambio de versión

politica
Celestino Rey 11 months ago
parent
commit
8eecd9aab5
6 changed files with 137 additions and 2 deletions
  1. +1
    -1
      JugarAlPadel/K8S/Makefile
  2. +1
    -1
      JugarAlPadel/K8S/Makefile.local
  3. +56
    -0
      JugarAlPadel/K8S/Makefile.topolvm
  4. +50
    -0
      JugarAlPadel/K8S/jugaralpadel-topolvm-pvc.yaml
  5. +15
    -0
      JugarAlPadel/K8S/postgres-topolvm-pvc.yaml
  6. +14
    -0
      JugarAlPadel/K8S/static-topolvm-pvc.yaml

+ 1
- 1
JugarAlPadel/K8S/Makefile View File

@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
#export REGISTRY=localhost:5000
export REGISTRY=registry.reymota.es
export IMG_VERSION = 0.35
export IMG_VERSION = 0.36
export IMG_NGINX_VERSION = 2.3
# limpia todo


+ 1
- 1
JugarAlPadel/K8S/Makefile.local View File

@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
export REGISTRY=localhost:30500
#export REGISTRY=registry.reymota.es
export IMG_VERSION = 1.29
export IMG_VERSION = 1.30
export IMG_NGINX_VERSION = 2.4
# limpia todo


+ 56
- 0
JugarAlPadel/K8S/Makefile.topolvm View File

@ -0,0 +1,56 @@
export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
export REGISTRY=localhost:30500
#export REGISTRY=registry.reymota.es
export IMG_VERSION = 1.29
export IMG_NGINX_VERSION = 2.4
# limpia todo
all: imagen clean install
imagen:
cd ../; make
install:
-kubectl create -f namespace.yaml
-kubectl create -f reg-secret.yaml
-kubectl create -f env-prod-configmap-local.yaml
-kubectl create -f env-prod-db-configmap.yaml
-kubectl create -f jugaralpadel-topolvm-pvc.yaml
-kubectl create -f static-topolvm-pvc.yaml
-kubectl create -f postgres-topolvm-pvc.yaml
-kubectl create -f db-deployment.yaml
-kubectl create -f db-service.yaml
-envsubst < jugaralpadel-deployment.yaml |kubectl create -f -
-envsubst < nginx-deployment.yaml |kubectl create -f -
-kubectl create -f nginx-service.yaml
clean:
-envsubst < nginx-deployment.yaml |kubectl delete -f -
-kubectl delete -f nginx-service.yaml
-envsubst < jugaralpadel-deployment.yaml |kubectl delete -f -
-kubectl delete -f db-deployment.yaml
-kubectl delete -f db-service.yaml
-kubectl delete -f env-prod-configmap-local.yaml
-kubectl delete -f env-prod-db-configmap.yaml
-kubectl delete -f jugaralpadel-topolvm-pvc.yaml
-kubectl delete -f static-topolvm-pvc.yaml
-kubectl delete -f postgres-topolvm-pvc.yaml
-kubectl delete -f reg-secret.yaml
-kubectl delete -f namespace.yaml
nginx:
cd ../nginx; make
verimg:
docker run -it ${REGISTRY}/jugaralpadel-${ARQUITECTURA}:${IMG_VERSION} bash
backup:
kubectl --kubeconfig /home/creylopez/.kube/config -n jugaralpadel exec -ti deployment.apps/db -- /usr/lib/postgresql/15/bin/pg_dump --username=creylopez --dbname=jugaralpadel > jugaralpadel-$(IMG_VERSION).sql

+ 50
- 0
JugarAlPadel/K8S/jugaralpadel-topolvm-pvc.yaml View File

@ -0,0 +1,50 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jugaralpadel-media
name: jugaralpadel-media
namespace: jugaralpadel
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
storageClassName: topolvm-provisioner
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jugaralpadel-eventos-migrations
name: jugaralpadel-eventos-migrations
namespace: jugaralpadel
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Mi
storageClassName: topolvm-provisioner
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jugaralpadel-reymotausers-migrations
name: jugaralpadel-reymotausers-migrations
namespace: jugaralpadel
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 53Mi
storageClassName: topolvm-provisioner
status: {}

+ 15
- 0
JugarAlPadel/K8S/postgres-topolvm-pvc.yaml View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
io.kompose.service: postgres-data
name: postgres-data
namespace: jugaralpadel
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
storageClassName: topolvm-provisioner

+ 14
- 0
JugarAlPadel/K8S/static-topolvm-pvc.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
io.kompose.service: static-volume
name: static-volume
namespace: jugaralpadel
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 70Mi
storageClassName: topolvm-provisioner

Loading…
Cancel
Save