Edit deployment.yaml

This commit is contained in:
inikulin 2025-07-23 12:22:34 +00:00
parent e360b26185
commit 1e61a7e2c7

View File

@ -38,11 +38,16 @@ spec:
- sh
- -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
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: upload-app
image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}"
@ -52,10 +57,6 @@ spec:
env:
{{- include "global.env.s3_upload" . | nindent 12 }}
{{- include "global.env.general" . | nindent 12 }}
- name: TENANT_ID
value: {{ .Values.env.TENANT_ID | quote }}
- name: KEYCLOAK_URL
value: {{ .Values.env.keycloakUrl | quote }}
volumeMounts:
- name: cacerts-volume
mountPath: /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts