Celestino Rey 6 mēneši atpakaļ
vecāks
revīzija
84a55ac936
2 mainītis faili ar 4 papildinājumiem un 5 dzēšanām
  1. 3 4
      K8S/Makefile
  2. 1 1
      K8S/finanzas-deployment.yaml

+ 3 - 4
K8S/Makefile

@@ -1,6 +1,5 @@
 export REGISTRY=registry.reymota.es
 export IMG_VERSION = alpine-9
-export PUERTO = 30346
 export NAMESPACE = finanzas
 
 # limpia todo
@@ -20,7 +19,7 @@ install:
 	-cat db-deployment.yaml| sed -e "s/<NS>/${NAMESPACE}/" | kubectl create -f -
 	-cat db-service.yaml| sed -e "s/<NS>/${NAMESPACE}/" | kubectl create -f -
 
-	-cat finanzas-deployment.yaml | sed -e "s/<PUERTO>/${PUERTO}/" |sed -e "s/<NS>/${NAMESPACE}/" | sed -e "s/<TAG>/${IMG_VERSION}/" | kubectl create -f -
+	-cat finanzas-deployment.yaml | sed -e "s/<NS>/${NAMESPACE}/" | sed -e "s/<TAG>/${IMG_VERSION}/" | kubectl create -f -
 	-cat finanzas-ingress.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl create -f -
 
 clean:
@@ -49,5 +48,5 @@ claims:
 	-cat pvc-postgresql.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl create -f -
 
 app:
-	-cat finanzas-deployment.yaml | sed -e "s/<PUERTO>/${PUERTO}/" | sed -e "s/<NS>/${NAMESPACE}/" | sed -e "s/<TAG>/${IMG_VERSION}/" | kubectl delete -f -
-	-cat finanzas-deployment.yaml | sed -e "s/<PUERTO>/${PUERTO}/" | sed -e "s/<NS>/${NAMESPACE}/" | sed -e "s/<TAG>/${IMG_VERSION}/" | kubectl create -f -
+	-cat finanzas-deployment.yaml | sed -e "s/<NS>/${NAMESPACE}/" | sed -e "s/<TAG>/${IMG_VERSION}/" | kubectl delete -f -
+	-cat finanzas-deployment.yaml | sed -e "s/<NS>/${NAMESPACE}/" | sed -e "s/<TAG>/${IMG_VERSION}/" | kubectl create -f -

+ 1 - 1
K8S/finanzas-deployment.yaml

@@ -8,7 +8,7 @@ spec:
   ports:
     - name: "8080"
       port: 8080
-      nodePort: <PUERTO>
+      nodePort: 30346
       targetPort: 8080
   selector:
     app: finanzas