export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') #export REGISTRY=registry.cube.local export REGISTRY=registry.reymota.es export IMG_VERSION = 0.21 export IMG_NGINX_VERSION = 1.0 # limpia todo all: imagen nginx 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-vehiculos.yaml -kubectl create -f vehiculos-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 < vehiculos-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 < vehiculos-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 vehiculos-prod-persistentvolumeclaim.yaml -kubectl delete -f pv-local-vehiculos.yaml -kubectl delete -f reg-secret.yaml -kubectl delete -f namespace.yaml nginx: cd ../nginx; make