export REGISTRO=harbor.reymota.es\/reymota export IMG_VERSION = alpine-3 export NAMESPACE = reymota # 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 reymota-deployment.yaml | sed -e "s//${NAMESPACE}/" | sed -e "s//${IMG_VERSION}/" | sed -e "s//${REGISTRO}/" | kubectl create -f - -cat reymota-ingress.yaml | sed -e "s//${NAMESPACE}/" | kubectl create -f - clean: clean: -cat reymota-ingress.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - -cat reymota-deployment.yaml | sed -e "s//${NAMESPACE}/" | sed -e "s//${IMG_VERSION}/" | sed -e "s//${REGISTRO}/" | kubectl delete -f - -cat secreto-db.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - -cat env-prod-configmap.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - -cat reg-secret.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - borraclaims: -cat pvc-reymota.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - -cat pvc-static.yaml | sed -e "s//${NAMESPACE}/" | kubectl delete -f - claims: -cat pvc-reymota.yaml | sed -e "s//${NAMESPACE}/" | kubectl create -f - -cat pvc-static.yaml | sed -e "s//${NAMESPACE}/" | kubectl create -f - app: -cat reymota-deployment.yaml | sed -e "s//${NAMESPACE}/" | sed -e "s//${IMG_VERSION}/" | sed -e "s//${REGISTRO}/" | kubectl delete -f - -cat reymota-deployment.yaml | sed -e "s//${NAMESPACE}/" | sed -e "s//${IMG_VERSION}/" | sed -e "s//${REGISTRO}/" | kubectl create -f - db: -kubectl create -f reymota-db.yaml