Edit deployment.yaml

This commit is contained in:
inikulin 2025-07-23 12:18:56 +00:00
parent f0c02b15e5
commit 14c1f2d805

View File

@ -38,11 +38,16 @@ spec:
- sh - sh
- -c - -c
- | - |
cp /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts /tmp/cacerts/cacerts && cp /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts /tmp/cacerts/cacerts
keytool -import -trustcacerts -storepass changeit -noprompt \ if keytool -list -keystore /tmp/cacerts/cacerts -storepass changeit -alias gemcert > /dev/null 2>&1; then
-alias gemcert \ echo "Certificate with alias gemcert already exists, skipping import"
-file /app/resources/RootCA_${CERT_ALIAS}.crt \ else
-keystore /tmp/cacerts/cacerts 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: containers:
- name: realtime-app - name: realtime-app
image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}" image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}"
@ -51,8 +56,7 @@ spec:
{{- include "global.env.cassandra" . | nindent 12 }} {{- include "global.env.cassandra" . | nindent 12 }}
{{- include "global.env.kafka" . | nindent 12 }} {{- include "global.env.kafka" . | nindent 12 }}
{{- include "global.env.redis" . | nindent 12 }} {{- include "global.env.redis" . | nindent 12 }}
- name: KEYCLOAK_URL {{- include "global.env.general" . | nindent 12 }}
value: {{ .Values.env.keycloakUrl | quote }}
- name: CHAT_HOST - name: CHAT_HOST
value: {{ .Values.env.services.chat.host | quote }} value: {{ .Values.env.services.chat.host | quote }}
- name: CHAT_PORT - name: CHAT_PORT