fischer-agentkit/deploy/helm/agentkit/templates/ingress.yaml

42 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "agentkit.fullname" . }}
labels:
{{- include "agentkit.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host | quote }}
secretName: {{ .Values.ingress.tls.secretName | quote }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
# GUI 走根路径API 走 /api 前缀
- path: /api
pathType: Prefix
backend:
service:
name: {{ include "agentkit.fullname" . }}
port:
name: api
- path: /
pathType: Prefix
backend:
service:
name: {{ include "agentkit.fullname" . }}
port:
name: gui
{{- end }}