Browse Source

Creo makefile para local y shell para crear directorios

politica
Celestino Rey 1 year ago
parent
commit
47590cbf0f
3 changed files with 58 additions and 2 deletions
  1. +2
    -2
      JugarAlPadel/K8S/Makefile
  2. +51
    -0
      JugarAlPadel/K8S/Makefile.local
  3. +5
    -0
      JugarAlPadel/K8S/creaDirs.sh

+ 2
- 2
JugarAlPadel/K8S/Makefile View File

@ -1,6 +1,6 @@
export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
export REGISTRY=localhost:5000
#export REGISTRY=registry.reymota.es
#export REGISTRY=localhost:5000
export REGISTRY=registry.reymota.es
export IMG_VERSION = 0.19
export IMG_NGINX_VERSION = 2.3


+ 51
- 0
JugarAlPadel/K8S/Makefile.local View File

@ -0,0 +1,51 @@
export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
export REGISTRY=localhost:5000
#export REGISTRY=registry.reymota.es
export IMG_VERSION = 0.19
export IMG_NGINX_VERSION = 2.3
# 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.yaml
-kubectl create -f env-prod-db-configmap.yaml
-kubectl create -f pv-local-jugaralpadel.yaml
-kubectl create -f jugaralpadel-prod-persistentvolumeclaim.yaml
-kubectl create -f static-volume-persistentvolumeclaim.yaml
-kubectl create -f postgres-data-persistentvolumeclaim.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.yaml
-kubectl delete -f env-prod-db-configmap.yaml
-kubectl delete -f postgres-data-persistentvolumeclaim.yaml
-kubectl delete -f static-volume-persistentvolumeclaim.yaml
-kubectl delete -f jugaralpadel-prod-persistentvolumeclaim.yaml
-kubectl delete -f pv-local-jugaralpadel.yaml
-kubectl delete -f reg-secret.yaml
-kubectl delete -f namespace.yaml
nginx:
cd ../nginx; make

+ 5
- 0
JugarAlPadel/K8S/creaDirs.sh View File

@ -0,0 +1,5 @@
sudo mkdir -p /mnt/Externo/jugaralpadel/media
sudo mkdir -p /mnt/Externo/jugaralpadel/migrations/eventos
sudo mkdir -p /mnt/Externo/jugaralpadel/migrations/reymotausers
sudo mkdir -p /mnt/Externo/jugaralpadel/static
sudo mkdir -p /mnt/Externo/jugaralpadel/pg

Loading…
Cancel
Save