mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 05:03:51 +00:00
31 lines
819 B
YAML
31 lines
819 B
YAML
{{- if .Values.route.enabled -}}
|
|
kind: Route
|
|
apiVersion: route.openshift.io/v1
|
|
metadata:
|
|
name: {{ include "llama-stack.fullname" . }}
|
|
labels:
|
|
{{- include "llama-stack.labels" . | nindent 4 }}
|
|
{{- with .Values.route.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.route.host }}
|
|
host: {{ .Values.route.host }}
|
|
{{- end }}
|
|
{{- if .Values.route.path }}
|
|
path: {{ .Values.route.path }}
|
|
{{- end }}
|
|
to:
|
|
kind: Service
|
|
name: {{ include "llama-stack.fullname" . }}
|
|
weight: 100
|
|
port:
|
|
targetPort: llama-stack
|
|
{{- if .Values.route.tls.enabled }}
|
|
tls:
|
|
termination: {{ .Values.route.tls.termination }}
|
|
insecureEdgeTerminationPolicy: {{ .Values.route.tls.insecureEdgeTerminationPolicy }}
|
|
{{- end }}
|
|
wildcardPolicy: None
|
|
{{- end }}
|