Edit deployment.yaml

This commit is contained in:
inikulin 2025-07-23 11:22:15 +00:00
parent df9d4093a2
commit 1d4a4f09d6

View File

@ -40,11 +40,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: big-chat-splitter-app - name: big-chat-splitter-app
image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}" image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}"