43 lines
1.3 KiB
YAML
Executable File
43 lines
1.3 KiB
YAML
Executable File
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "search-event-handler-app.fullname" . }}
|
|
labels:
|
|
app: {{ include "search-event-handler-app.name" . }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ include "search-event-handler-app.name" . }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ include "search-event-handler-app.name" . }}
|
|
spec:
|
|
volumes:
|
|
|
|
- name: cacerts-volume
|
|
emptyDir: {}
|
|
|
|
|
|
containers:
|
|
- name: search-event-handler-app
|
|
image: "{{ .Values.global.dockerRegistryPrefix }}{{ .Chart.Name }}:{{ .Values.image.tag }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
env:
|
|
- name: ELASTIC_HOST
|
|
value: {{ .Values.env.elastic.host | quote }}
|
|
- name: ELASTIC_PORT
|
|
value: {{ .Values.env.elastic.port | quote }}
|
|
{{- include "global.env.cassandra" . | nindent 12 }}
|
|
{{- include "global.env.kafka" . | nindent 12 }}
|
|
{{- include "global.env.redis" . | nindent 12 }}
|
|
{{- include "global.env.postgres" . | nindent 12 }}
|
|
- name: POSTGRES_URL
|
|
value: {{ .Values.env.postgres.url | quote }}
|
|
- name: KEYCLOAK_URL
|
|
value: {{ .Values.env.keycloak.url | quote }}
|
|
|
|
|
|
restartPolicy: Always
|