Skip to content

Commit

Permalink
build(deployment.yaml): Fix port + allow setting database url in helm…
Browse files Browse the repository at this point in the history
… chart (#5587)
  • Loading branch information
krrishdholakia authored Sep 9, 2024
1 parent 7ff7028 commit b374990
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deploy/charts/litellm-helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: HOST
value: "::"
value: "{{ .Values.listen | default "0.0.0.0" }}"
- name: PORT
value: {{ .Values.service.port | quote}}
{{- if .Values.db.deployStandalone }}
Expand Down Expand Up @@ -138,8 +138,13 @@ spec:
- name: DATABASE_NAME
value: {{ .Values.db.database }}
{{- end }}
{{- if .Values.database.url }}
- name: DATABASE_URL
value: {{ .Values.database.url | quote }}
{{- else }}
- name: DATABASE_URL
value: "postgresql://$(DATABASE_USERNAME):$(DATABASE_PASSWORD)@$(DATABASE_HOST)/$(DATABASE_NAME)"
{{- end }}
- name: PROXY_MASTER_KEY
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -231,4 +236,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}

0 comments on commit b374990

Please sign in to comment.