Skip to content

Commit

Permalink
feat(chart): search api exposed directly with ALB (#2708)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrompier authored Apr 12, 2024
1 parent 43277c4 commit 48f893d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions chart/templates/services/search/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{{- if and .Values.global.huggingface.ingress.enabled .Values.ingress.enabled .Values.search.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
{{- $annotations := fromYaml (include "datasetsServer.ingress.annotations" .) }}
annotations: {{ toYaml $annotations | nindent 4 }}
labels: {{ include "labels.search" . | nindent 4 }}
name: "{{ include "name" . }}-search"
namespace: {{ .Release.Namespace }}
spec:
rules:
- host: {{ include "datasetsServer.ingress.hostname" . }}
http:
paths:
- backend:
service:
name: "{{ include "name" . }}-search"
port:
name: http
path: /search
pathType: Prefix
{{- if include "hf.common.ingress.certManagerRequest" ( dict "annotations" $annotations ) }}
tls:
- hosts:
- {{ include "datasetsServer.ingress.hostname" . }}
secretName: {{ printf "%s-tls" (include "datasetsServer.ingress.hostname" .) }}
{{- else if .Values.ingress.tls -}}
{{- with .Values.ingress.tls }}
tls:
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,8 @@ search:
service:
type: ""
annotations: {}
ingress:
enabled: true
tolerations: []

sseApi:
Expand Down

0 comments on commit 48f893d

Please sign in to comment.