Edit deployment.yaml
This commit is contained in:
parent
12ceb780be
commit
f2d8be1e1f
@ -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: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}"
|
||||||
@ -54,6 +59,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 }}
|
||||||
|
{{- include "global.env.general" . | nindent 12 }}
|
||||||
- name: DEEPLINK_HOST
|
- name: DEEPLINK_HOST
|
||||||
value: {{ .Values.env.DEEPLINK_HOST }}
|
value: {{ .Values.env.DEEPLINK_HOST }}
|
||||||
- name: DEEPLINK_PORT
|
- name: DEEPLINK_PORT
|
||||||
@ -74,8 +80,6 @@ spec:
|
|||||||
value: {{ .Values.env.USER_HOST }}
|
value: {{ .Values.env.USER_HOST }}
|
||||||
- name: USER_PORT
|
- name: USER_PORT
|
||||||
value: {{ include "chat-event-handler-app.quote" .Values.env.USER_PORT }}
|
value: {{ include "chat-event-handler-app.quote" .Values.env.USER_PORT }}
|
||||||
- name: KEYCLOAK_URL
|
|
||||||
value: {{ .Values.env.KEYCLOAK_URL }}
|
|
||||||
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user