From 2cfc7d03ff2d9255b22cf70c694cb913a66cac52 Mon Sep 17 00:00:00 2001 From: Christian_Yemele Date: Tue, 17 Dec 2024 11:47:38 +0100 Subject: [PATCH] feat(): updated host deployment --- .env | 2 +- mediator-charts/templates/env-configmap.yaml | 8 ++++---- mediator-charts/templates/ingress.yaml | 20 ------------------- .../templates/mediator-deployment.yaml | 6 +----- .../templates/mediator-service.yaml | 2 +- mediator-charts/values.yaml | 6 ------ 6 files changed, 7 insertions(+), 37 deletions(-) delete mode 100644 mediator-charts/templates/ingress.yaml diff --git a/.env b/.env index a87ea512..9858b1d2 100644 --- a/.env +++ b/.env @@ -2,4 +2,4 @@ SERVER_PUBLIC_DOMAIN="http://didcomm-mediator.com" SERVER_LOCAL_PORT="8080" STORAGE_DIRPATH="crates/generic-server/target/storage" MONGO_DBN="mediator-coordination" -# MONGO_URI="mongodb://10.244.0.19:27017" + diff --git a/mediator-charts/templates/env-configmap.yaml b/mediator-charts/templates/env-configmap.yaml index fffe7876..5d1ca750 100644 --- a/mediator-charts/templates/env-configmap.yaml +++ b/mediator-charts/templates/env-configmap.yaml @@ -1,9 +1,9 @@ apiVersion: v1 data: - MONGO_DBN: {{ .Values.envConfig.MONGO_DBN }} - MONGO_URI: {{ .Values.envConfig.MONGO_URI }} - SERVER_LOCAL_PORT: {{ .Values.envConfig.SERVER_LOCAL_PORT }} - SERVER_PUBLIC_DOMAIN: {{ .Values.envConfig.SERVER_PUBLIC_DOMAIN }} + MONGO_DBN: mediatorDB + MONGO_URI: mongodb://mongodb:27017 + SERVER_LOCAL_PORT: "3000" + SERVER_PUBLIC_DOMAIN: http://alice-mediator.com kind: ConfigMap metadata: diff --git a/mediator-charts/templates/ingress.yaml b/mediator-charts/templates/ingress.yaml deleted file mode 100644 index 06f1ec14..00000000 --- a/mediator-charts/templates/ingress.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: didcomm-mediator-ingress - namespace: {{ .Values.namespace }} - annotations: - nginx.ingress.kubernetes.io/rewrite-target: "/" # Rewrite paths if necessary -spec: - ingressClassName: nginx # Specifies the NGINX Ingress Controller - rules: - - host: didcomm-mediator.com - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: {{ .Release.Name }}-mediator-service - port: - number: 8080 diff --git a/mediator-charts/templates/mediator-deployment.yaml b/mediator-charts/templates/mediator-deployment.yaml index 1ac64b2f..18e9b0b4 100644 --- a/mediator-charts/templates/mediator-deployment.yaml +++ b/mediator-charts/templates/mediator-deployment.yaml @@ -44,8 +44,4 @@ spec: configMapKeyRef: key: SERVER_PUBLIC_DOMAIN name: env - - name: STORAGE_DIRPATH - valueFrom: - configMapKeyRef: - key: STORAGE_DIRPATH - name: env + \ No newline at end of file diff --git a/mediator-charts/templates/mediator-service.yaml b/mediator-charts/templates/mediator-service.yaml index 7b5f4fab..9b3f0077 100644 --- a/mediator-charts/templates/mediator-service.yaml +++ b/mediator-charts/templates/mediator-service.yaml @@ -8,6 +8,6 @@ spec: app: {{ .Release.Name }}-mediator ports: - protocol: TCP - port: 3000 + port: 80 targetPort: 3000 type: LoadBalancer \ No newline at end of file diff --git a/mediator-charts/values.yaml b/mediator-charts/values.yaml index e5af1ef7..45d68790 100644 --- a/mediator-charts/values.yaml +++ b/mediator-charts/values.yaml @@ -20,9 +20,3 @@ mongoVolume: mountPath: /var/lib/mongodb - -envConfig: - MONGO_DBN: mediatorDB - MONGO_URI: mongodb://mongodb:27017 - SERVER_LOCAL_PORT: "3000" - SERVER_PUBLIC_DOMAIN: http://alice-mediator.com \ No newline at end of file