From 93607235755c21952f0a0bb60fe87b97d106c41c Mon Sep 17 00:00:00 2001 From: Christian_Yemele Date: Fri, 20 Dec 2024 14:55:47 +0100 Subject: [PATCH] fix(): added ssl/tls to deployment --- mediator-charts/templates/mediator-service.yaml | 12 ++++++++---- mediator-charts/values.yaml | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mediator-charts/templates/mediator-service.yaml b/mediator-charts/templates/mediator-service.yaml index 9b3f0077..87051bd6 100644 --- a/mediator-charts/templates/mediator-service.yaml +++ b/mediator-charts/templates/mediator-service.yaml @@ -2,12 +2,16 @@ apiVersion: v1 kind: Service metadata: name: {{ .Release.Name }}-mediator-service + annotations: + external-dns.alpha.kubernetes.io/hostname: {{ .Values.externalDnsHostname }} + service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {{ .Values.certificateArn }} + service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "https" namespace: {{ .Values.namespace }} spec: selector: app: {{ .Release.Name }}-mediator ports: - - protocol: TCP - port: 80 - targetPort: 3000 - type: LoadBalancer \ No newline at end of file + - name: https + port: 443 + targetPort: 3000 + type: LoadBalancer diff --git a/mediator-charts/values.yaml b/mediator-charts/values.yaml index 45d68790..a2800ec8 100644 --- a/mediator-charts/values.yaml +++ b/mediator-charts/values.yaml @@ -1,6 +1,10 @@ replicaCount: 1 namespace: didcomm-mediator +externalDnsHostname: didcomm-mediator.eudi-adorsys.com +certificateArn: arn:aws:acm:{region}:{user id}:certificate/{id} + + mongodb: databaseName: mongodb