Edit deployment.yaml

This commit is contained in:
inikulin 2025-07-24 10:44:21 +00:00
parent d23a46f828
commit 4b9d303dca

View File

@ -26,26 +26,31 @@ spec:
path: RootCA_{{ .Values.global.cert_alias }}.crt path: RootCA_{{ .Values.global.cert_alias }}.crt
- name: cacerts-volume - name: cacerts-volume
emptyDir: {} emptyDir: {}
# initContainers: initContainers:
# - name: import-ca - name: import-ca
# image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}"
# env: env:
# - name: CERT_ALIAS - name: CERT_ALIAS
# value: {{ .Values.global.cert_alias | quote }} value: {{ .Values.global.cert_alias | quote }}
# volumeMounts: volumeMounts:
# - name: ca-cert - name: ca-cert
# mountPath: /app/resources mountPath: /app/resources
# - name: cacerts-volume - name: cacerts-volume
# mountPath: /tmp/cacerts mountPath: /tmp/cacerts
# command: command:
# - 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: bff-app - name: bff-app
image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}" image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}"