33 lines
932 B
YAML
33 lines
932 B
YAML
{{- if .Values.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "medical-chatbot.fullname" . }}
|
|
labels:
|
|
{{- include "medical-chatbot.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- toYaml .Values.ingress.annotations | nindent 4 }}
|
|
spec:
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
{{- with .Values.ingress.tls }}
|
|
tls:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.ingress.host | quote }}
|
|
http:
|
|
paths:
|
|
- path: /v1/rag
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "medical-chatbot.fullname" . }}-ai-service
|
|
port: { name: http }
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "medical-chatbot.fullname" . }}-web
|
|
port: { name: http }
|
|
{{- end }}
|