Edit deployment.yaml

This commit is contained in:
inikulin 2025-07-23 09:23:47 +00:00
parent 83219f7585
commit 0a1d4e6d07

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: admin-app - name: admin-app
ports: ports:
@ -51,16 +56,6 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env: env:
{{- include "global.env.general" . | nindent 12 }} {{- include "global.env.general" . | nindent 12 }}
- name: WORKSPACE_HOST
value: "{{ .Values.env.workspace_host }}"
- name: WORKSPACE_PORT
value: "{{ .Values.env.workspace_port }}"
- name: USER_HOST
value: "{{ .Values.env.user_host }}"
- name: USER_PORT
value: "{{ .Values.env.user_port }}"
- name: DEBUG_GLOBAL_PREFIX
value: "{{ .Values.global.dockerRegistryPrefix | default "NOT SET" }}"
volumeMounts: volumeMounts:
- name: cacerts-volume - name: cacerts-volume
mountPath: /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts mountPath: /usr/lib/jvm/java-21-amazon-corretto/lib/security/cacerts