Bladeren bron

Allow host vmcluster

Celestino Rey 6 maanden geleden
bovenliggende
commit
4db223d4b4
4 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 1 1
      K8S/Makefile
  2. 1 1
      K8S/finanzas-deployment.yaml
  3. 1 1
      K8S/service.yaml
  4. 2 2
      src/misfinanzas/settings.py

+ 1 - 1
K8S/Makefile

@@ -1,5 +1,5 @@
 export REGISTRY=registry.reymota.es
-export IMG_VERSION = alpine-16
+export IMG_VERSION = alpine-17
 export NAMESPACE = fdev
 
 # limpia todo

+ 1 - 1
K8S/finanzas-deployment.yaml

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

+ 1 - 1
K8S/service.yaml

@@ -8,7 +8,7 @@ spec:
   ports:
     - name: "8080"
       port: 8080
-      nodePort: 30348
+      nodePort: 30351
       targetPort: 8080
   selector:
     app: finanzas

+ 2 - 2
src/misfinanzas/settings.py

@@ -33,9 +33,9 @@ SECRET_KEY = 'django-insecure-^9*3@g$5brgjmhv&h!h*)c9kp)8i5tnqee_eu+fi728@g96#8&
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = os.environ.get('DEBUG', 'False') == 'True'
 
-ALLOWED_HOSTS = [".reymota.es", ".reymota.lab", "127.0.0.1", "localhost", "k8s-server", ".rancher.lab"]
+ALLOWED_HOSTS = [".reymota.es", ".reymota.lab", "127.0.0.1", "localhost", "k8s-server", ".rancher.lab",".vmcluster.lab"]
 
-CSRF_TRUSTED_ORIGINS = ["https://*.reymota.es", "http://*.reymota.lab", "http://k8s-server", "http://*.rancher.lab"]
+CSRF_TRUSTED_ORIGINS = ["https://*.reymota.es", "http://*.reymota.lab", "http://k8s-server", "http://*.rancher.lab","http://*.vmcluster.lab"]
 
 
 # Application definition