export REGISTRY=registry.reymota.es export IMG_VERSION = alpine-17 export NAMESPACE = finanzas # limpia todo all: imagen clean install imagen: cd ../; make ns: -cat namespace.yaml | sed -e "s//${NAMESPACE}/" |kubectl create -f - install: -cat reg-secret.yaml| sed -e "s//${NAMESPACE}/" | kubectl create -f - -cat env-prod-configmap.yaml | sed -e "s//${NAMESPACE}/" | kubectl create -f - -cat secreto-db.yaml| sed -e "s//${NAMESPACE}/" | kubectl create -f - -cat finanzas-deployment.yaml | sed -e "s//${NAMESPACE}/" | sed -e "s//${IMG_VERSION}/" | kubectl create -f - -cat finanzas-ingress.yaml | sed -e "s//${NAMESPACE}/" | kubectl create -f - clean: -cat finanzas-deployment.yaml | sed -e "s//${NAMESPACE}/" | sed -e "s//${IMG_VERSION}/" | kubectl delete -f - -cat env-prod-configmap.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - -cat secreto-db.yaml| sed -e "s//${NAMESPACE}/" | kubectl delete -f - -cat reg-secret.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - -cat finanzas-ingress.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - nginx: cd ../nginx; make borraclaims: -cat pvc-finanzas.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - -cat pvc-static.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - claims: -cat pvc-finanzas.yaml | sed -e "s//${NAMESPACE}/" | kubectl create -f - -cat pvc-static.yaml | sed -e "s//${NAMESPACE}/" | kubectl create -f - app: -cat finanzas-deployment.yaml | sed -e "s//${NAMESPACE}/" | sed -e "s//${IMG_VERSION}/" | kubectl delete -f - -cat finanzas-deployment.yaml | sed -e "s//${NAMESPACE}/" | sed -e "s//${IMG_VERSION}/" | kubectl create -f - db: -kubectl create -f finanzas-db.yaml