From 883a591eae1b32ca5fd9cfce60baca68016e7b69 Mon Sep 17 00:00:00 2001 From: inikulin Date: Wed, 23 Jul 2025 11:44:25 +0000 Subject: [PATCH] Edit deployment.yaml --- .../templates/deployment.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/charts/backend/charts/call-event-handler-app-k8s/templates/deployment.yaml b/charts/backend/charts/call-event-handler-app-k8s/templates/deployment.yaml index ce391a4..52c26a9 100755 --- a/charts/backend/charts/call-event-handler-app-k8s/templates/deployment.yaml +++ b/charts/backend/charts/call-event-handler-app-k8s/templates/deployment.yaml @@ -43,11 +43,16 @@ spec: - sh - -c - | - cp /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts /tmp/cacerts/cacerts && - keytool -import -trustcacerts -storepass changeit -noprompt \ - -alias gemcert \ - -file /app/resources/RootCA_${CERT_ALIAS}.crt \ - -keystore /tmp/cacerts/cacerts + cp /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts /tmp/cacerts/cacerts + if keytool -list -keystore /tmp/cacerts/cacerts -storepass changeit -alias gemcert > /dev/null 2>&1; then + echo "Certificate with alias gemcert already exists, skipping import" + else + echo "Importing certificate with alias gemcert" + keytool -import -trustcacerts -storepass changeit -noprompt \ + -alias gemcert \ + -file /app/resources/RootCA_${CERT_ALIAS}.crt \ + -keystore /tmp/cacerts/cacerts + fi containers: - name: {{ .Chart.Name }} image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}" @@ -61,6 +66,8 @@ spec: {{- include "global.env.cassandra" . | nindent 12 }} {{- include "global.env.kafka" . | nindent 12 }} {{- include "global.env.redis" . | nindent 12 }} + {{- include "global.env.general" . | nindent 12 }} + {{- include "global.env.call" . | nindent 12 }} - name: LIVEKIT_API_KEY valueFrom: secretKeyRef: @@ -71,8 +78,6 @@ spec: secretKeyRef: name: {{ .Values.secrets.livekit.name }} key: {{ .Values.secrets.livekit.secretKey }} - - name: RECORDING_API_HOST - value: {{ .Values.env.recording.apiHost | quote }} volumeMounts: - name: cacerts-volume mountPath: /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts