|
|
@ -1,7 +1,7 @@ |
|
|
export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') |
|
|
export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') |
|
|
#export REGISTRY=registry.cube.local
|
|
|
#export REGISTRY=registry.cube.local
|
|
|
export REGISTRY=registry.reymota.es |
|
|
export REGISTRY=registry.reymota.es |
|
|
export IMG_VERSION = 0.16 |
|
|
|
|
|
|
|
|
export IMG_VERSION = 0.01 |
|
|
export IMG_NGINX_VERSION = 1.0 |
|
|
export IMG_NGINX_VERSION = 1.0 |
|
|
|
|
|
|
|
|
# limpia todo
|
|
|
# limpia todo
|
|
|
@ -16,22 +16,22 @@ install: |
|
|
-kubectl create -f env-prod-configmap.yaml |
|
|
-kubectl create -f env-prod-configmap.yaml |
|
|
-kubectl create -f env-prod-db-configmap.yaml |
|
|
-kubectl create -f env-prod-db-configmap.yaml |
|
|
|
|
|
|
|
|
-kubectl create -f pv-local-reymota.yaml |
|
|
|
|
|
-kubectl create -f reymota-prod-persistentvolumeclaim.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 static-volume-persistentvolumeclaim.yaml |
|
|
-kubectl create -f postgres-data-persistentvolumeclaim.yaml |
|
|
-kubectl create -f postgres-data-persistentvolumeclaim.yaml |
|
|
|
|
|
|
|
|
-kubectl create -f db-deployment.yaml |
|
|
-kubectl create -f db-deployment.yaml |
|
|
-kubectl create -f db-service.yaml |
|
|
-kubectl create -f db-service.yaml |
|
|
|
|
|
|
|
|
-envsubst < reymota-deployment.yaml |kubectl create -f - |
|
|
|
|
|
|
|
|
-envsubst < jugaralpadel-deployment.yaml |kubectl create -f - |
|
|
-envsubst < nginx-deployment.yaml |kubectl create -f - |
|
|
-envsubst < nginx-deployment.yaml |kubectl create -f - |
|
|
-kubectl create -f nginx-service.yaml |
|
|
-kubectl create -f nginx-service.yaml |
|
|
|
|
|
|
|
|
clean: |
|
|
clean: |
|
|
-envsubst < nginx-deployment.yaml |kubectl delete -f - |
|
|
-envsubst < nginx-deployment.yaml |kubectl delete -f - |
|
|
-kubectl delete -f nginx-service.yaml |
|
|
-kubectl delete -f nginx-service.yaml |
|
|
-envsubst < reymota-deployment.yaml |kubectl delete -f - |
|
|
|
|
|
|
|
|
-envsubst < jugaralpadel-deployment.yaml |kubectl delete -f - |
|
|
|
|
|
|
|
|
-kubectl delete -f db-deployment.yaml |
|
|
-kubectl delete -f db-deployment.yaml |
|
|
-kubectl delete -f db-service.yaml |
|
|
-kubectl delete -f db-service.yaml |
|
|
@ -41,8 +41,8 @@ clean: |
|
|
|
|
|
|
|
|
-kubectl delete -f postgres-data-persistentvolumeclaim.yaml |
|
|
-kubectl delete -f postgres-data-persistentvolumeclaim.yaml |
|
|
-kubectl delete -f static-volume-persistentvolumeclaim.yaml |
|
|
-kubectl delete -f static-volume-persistentvolumeclaim.yaml |
|
|
-kubectl delete -f reymota-prod-persistentvolumeclaim.yaml |
|
|
|
|
|
-kubectl delete -f pv-local-reymota.yaml |
|
|
|
|
|
|
|
|
-kubectl delete -f jugaralpadel-prod-persistentvolumeclaim.yaml |
|
|
|
|
|
-kubectl delete -f pv-local-jugaralpadel.yaml |
|
|
-kubectl delete -f reg-secret.yaml |
|
|
-kubectl delete -f reg-secret.yaml |
|
|
-kubectl delete -f namespace.yaml |
|
|
-kubectl delete -f namespace.yaml |
|
|
|
|
|
|
|
|
|