From 6c5a3e98589ba456a6ff76d0f9b664b26dbb0b7b Mon Sep 17 00:00:00 2001 From: Duvan Rondon Date: Mon, 24 Feb 2025 17:58:05 -0500 Subject: [PATCH] Update firmador --- Readme.md | 11 +++++++++++ service-nest.yml | 30 +++++++++++++++--------------- service-spring.yml | 32 ++++++++++++++++---------------- 3 files changed, 42 insertions(+), 31 deletions(-) diff --git a/Readme.md b/Readme.md index c43b617..9136906 100644 --- a/Readme.md +++ b/Readme.md @@ -59,6 +59,17 @@ Este servicio no almacena datos sensibles en el código. En su lugar, utiliza ** 🔹 **¿Cómo maneja archivos y almacenamiento?** El servicio accede a un almacenamiento en la nube llamado **"certifados_prod"**, donde se guardan documentos importantes, como **certificados digitales** necesarios para la firma electrónica de documentos. +## service.firmador.yml +📌 **Nota:** +Este archivo, junto con los anteriores, es un **archivo de configuración para Google Cloud Run** que define cómo se desplegará el servicio **cbii-firmador-jenkins** en la nube. + +✅ **Resumen de su función:** +- Despliega un servicio llamado **cbii-firmador-jenkins** en **Google Cloud Run**. +- Utiliza la imagen `svfe/svfe-api-firmador:v20230109`. +- Expone el puerto **8113** para recibir solicitudes. +- Asigna recursos de **CPU (1000m) y memoria (512MiB)**. +- Monta un volumen con certificados desde un bucket de almacenamiento en la nube (`certifados_prod`). + ## Otros archivos 📌 **Nota:** diff --git a/service-nest.yml b/service-nest.yml index c644c96..4fdb489 100644 --- a/service-nest.yml +++ b/service-nest.yml @@ -104,23 +104,23 @@ spec: - name: templates_cbii mountPath: /app/src/templates - - name: svfe-api-firmador-1 - image: svfe/svfe-api-firmador:v20230109 - resources: - limits: - cpu: 1000m - memory: 512Mi - volumeMounts: - - name: certifados - mountPath: /uploads + # - name: svfe-api-firmador-1 + # image: svfe/svfe-api-firmador:v20230109 + # resources: + # limits: + # cpu: 1000m + # memory: 512Mi + # volumeMounts: + # - name: certifados + # mountPath: /uploads volumes: - - name: certifados - csi: - driver: gcsfuse.run.googleapis.com - readOnly: true - volumeAttributes: - bucketName: certifados_prod + # - name: certifados + # csi: + # driver: gcsfuse.run.googleapis.com + # readOnly: true + # volumeAttributes: + # bucketName: certifados_prod - name: templates_cbii csi: driver: gcsfuse.run.googleapis.com diff --git a/service-spring.yml b/service-spring.yml index 031ca0f..6691893 100644 --- a/service-spring.yml +++ b/service-spring.yml @@ -61,19 +61,19 @@ spec: key: '1' name: CRYPTO_NEST_DEV - - name: svfe-api-firmador-1 - image: svfe/svfe-api-firmador:v20230109 - resources: - limits: - cpu: 1000m - memory: 512Mi - volumeMounts: - - name: certifados - mountPath: /uploads - volumes: - - name: certifados - csi: - driver: gcsfuse.run.googleapis.com - readOnly: true - volumeAttributes: - bucketName: certifados_prod \ No newline at end of file + # - name: svfe-api-firmador-1 + # image: svfe/svfe-api-firmador:v20230109 + # resources: + # limits: + # cpu: 1000m + # memory: 512Mi + # volumeMounts: + # - name: certifados + # mountPath: /uploads + # volumes: + # - name: certifados + # csi: + # driver: gcsfuse.run.googleapis.com + # readOnly: true + # volumeAttributes: + # bucketName: certifados_prod \ No newline at end of file