Damien Ostler 4e45753030 Revert "core-api"
This reverts commit bc186e5f135469e56a23a6fc943f3a18b8c55cde.
2024-02-08 20:21:10 -05:00

97 lines
2.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "search.fullname" . }}
labels:
{{- include "search.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "search.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "search.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "search.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: NEXT_PUBLIC_MUI_X_LICENSE_KEY
value: {{ .Values.mui_x_license }}
{{- with .Values.keycloak }}
- name: KEYCLOAK_ID
value: '{{ .client_id }}'
- name: KEYCLOAK_SECRET
value: '{{ .client_secret }}'
- name: KEYCLOAK_ISSUER
value: '{{ .client_issuer }}'
{{- end }}
- name: NEXTAUTH_URL
value: '{{ .Values.nextauth.url }}'
{{- with .Values.dim }}
- name: API_GATEWAY
value: '{{ .gateway }}'
- name: DOCUMENT_STREAM_API
value: '{{ .stream_api }}'
- name: DOCUMENT_PREVIEW_API
value: '{{ .preview_api }}'
{{- end }}
{{- with .Values.solr }}
- name: ZK_HOST
value: '{{ .zkHost }}'
- name: SOLR_HOST_OVERRIDE
value: '{{ .solr_host_override }}'
- name: SOLR_USER
{{- toYaml .basicAuth.usernameValue | nindent 12 }}
- name: SOLR_PASS
{{- toYaml .basicAuth.passwordValue | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}