Celestino Rey 8 месяцев назад
Родитель
Сommit
1c99907d0d
2 измененных файлов с 6 добавлено и 3 удалено
  1. 3 3
      K8S/Makefile
  2. 3 0
      src/misfinanzas/settings.py

+ 3 - 3
K8S/Makefile

@@ -1,5 +1,5 @@
 export REGISTRY=registry.reymota.es
-export IMG_VERSION = alpine-13
+export IMG_VERSION = alpine-16
 export NAMESPACE = fdev
 
 # limpia todo
@@ -40,12 +40,12 @@ nginx:
 borraclaims:
 	-cat pvc-finanzas.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl delete -f -
 	-cat pvc-static.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl delete -f -
-	-cat pvc-postgresql.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl delete -f -
+	#-cat pvc-postgresql.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl delete -f -
 
 claims:
 	-cat pvc-finanzas.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl create -f -
 	-cat pvc-static.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl create -f -
-	-cat pvc-postgresql.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl create -f -
+	#-cat pvc-postgresql.yaml | sed -e "s/<NS>/${NAMESPACE}/" | kubectl create -f -
 
 app:
 	-cat finanzas-deployment.yaml | sed -e "s/<NS>/${NAMESPACE}/" | sed -e "s/<TAG>/${IMG_VERSION}/" | kubectl delete -f -

+ 3 - 0
src/misfinanzas/settings.py

@@ -101,6 +101,9 @@ DATABASES = {
         "PASSWORD": "Dsa-0213",
         "HOST": "postgres-cluster-rw.reymota-pg-cluster.svc.cluster.local",
         "PORT": "5432",
+        "OPTIONS": {
+            "options": "-c search_path=finanzas,public"
+        }
     }
 }