Skip to content

Commit

Permalink
chore: pass correct master scheme to genai (#9181)
Browse files Browse the repository at this point in the history
  • Loading branch information
tayritenour authored Apr 17, 2024
1 parent 26f5e0b commit 0765e38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions helm/charts/determined/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,13 @@
{{- end }}
{{ toJson $resource_pools }}
{{- end }}

{{- /* Necessary because of the way that useNodePortForMaster makes a LoadBalancer that only allows */ -}}
{{- /* https connections through */ -}}
{{- define "genai.detMasterScheme" -}}
{{- if (and (not .Values.useNodePortForMaster) .Values.tlsSecret) }}
{{- "https" }}
{{- else }}
{{- "http" }}
{{- end }}
{{- end }}
3 changes: 2 additions & 1 deletion helm/charts/determined/templates/genai/genai-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
imagePullPolicy: "Always"
env:
- name: DET_MASTER
value: determined-master-service-{{ .Release.Name }}:{{ .Values.masterPort }}
value: {{ include "genai.detMasterScheme" . }}://determined-master-service-{{ .Release.Name }}.{{ .Release.Namespace }}:{{ .Values.masterPort }}
- name: DB_NAME
value: lore
- name: DB_USER
Expand Down Expand Up @@ -70,6 +70,7 @@ spec:
{{- end }}
- name: genai-resource-pool-metadata
mountPath: /run/determined/workdir/rp_config
readOnly: true
resources:
requests:
{{- if .Values.genai.cpuRequest }}
Expand Down

0 comments on commit 0765e38

Please sign in to comment.