mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-04 01:28:51 +01:00
- Update MongoDB chart dependency from v16.3.0 to v16.5.45 - Add explicit containerPort configuration with fallback to service.port - Standardize port references in health probes to use explicit port numbers - Add targetPort and containerPort fields to service configuration - Include service type options as inline comment for better clarity These changes improve the Helm chart's port management flexibility and bring the MongoDB dependency up to date with the latest stable version. Co-authored-by: Jerum Hubbert <jerum.hubbert@scientificgames.com>
105 lines
3.9 KiB
YAML
Executable file
105 lines
3.9 KiB
YAML
Executable file
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "librechat.fullname" $ }}
|
|
labels:
|
|
{{- include "librechat.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
{{- if .Values.updateStrategy }}
|
|
strategy: {{- toYaml .Values.updateStrategy | nindent 4 }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "librechat.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
{{ if .Values.librechat.configYamlContent }}checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}{{ end }}
|
|
checksum/configEnv: {{ include (print $.Template.BasePath "/configmap-env.yaml") . | sha256sum }}
|
|
{{- with .Values.podAnnotations }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "librechat.labels" . | nindent 8 }}
|
|
{{- with .Values.podLabels }}
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ include "librechat.serviceAccountName" . }}
|
|
securityContext:
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
containers:
|
|
- name: {{ include "librechat.fullname" $ }}
|
|
securityContext:
|
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- name: http
|
|
containerPort: {{ .Values.service.containerPort | default .Values.service.port }}
|
|
protocol: TCP
|
|
lifecycle:
|
|
{{- toYaml .Values.lifecycle | nindent 12 }}
|
|
livenessProbe:
|
|
{{- toYaml .Values.livenessProbe | nindent 12 }}
|
|
readinessProbe:
|
|
{{- toYaml .Values.readinessProbe | nindent 12 }}
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
volumeMounts:
|
|
{{- if or .Values.librechat.configYamlContent .Values.librechat.existingConfigYaml }}
|
|
- name: config-yaml
|
|
mountPath: "/app/librechat.yaml"
|
|
subPath: "librechat.yaml"
|
|
readOnly: true
|
|
{{- end }}
|
|
{{- if .Values.librechat.imageVolume.enabled }}
|
|
- name: image-volume
|
|
mountPath: "/app/client/public/images"
|
|
{{- end }}
|
|
{{- if .Values.volumeMounts }}
|
|
{{- toYaml .Values.volumeMounts | nindent 10 }}
|
|
{{- end }}
|
|
envFrom:
|
|
- configMapRef:
|
|
name: {{ include "librechat.fullname" $ }}-configenv
|
|
{{- if .Values.global.librechat.existingSecretName }}
|
|
- secretRef:
|
|
name: {{ .Values.global.librechat.existingSecretName }}
|
|
optional: true
|
|
{{- end }}
|
|
volumes:
|
|
{{- if or .Values.librechat.configYamlContent .Values.librechat.existingConfigYaml }}
|
|
- name: config-yaml
|
|
configMap:
|
|
{{- if .Values.librechat.existingConfigYaml }}
|
|
name: {{ .Values.librechat.existingConfigYaml }}
|
|
{{- else if .Values.librechat.configYamlContent }}
|
|
name: {{ include "librechat.fullname" $ }}-config
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.librechat.imageVolume.enabled }}
|
|
- name: image-volume
|
|
persistentVolumeClaim:
|
|
claimName: {{ include "librechat.fullname" $ }}-images
|
|
{{- end }}
|
|
{{- if .Values.volumes }}
|
|
{{- toYaml .Values.volumes | nindent 6 }}
|
|
{{- end }}
|
|
{{- with .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|