镜像自地址
https://github.com/devcm-repo/helm-charts.git
已同步 2026-06-06 04:21:06 +00:00
33 行
1.0 KiB
YAML
33 行
1.0 KiB
YAML
{{- if .Values.cliproxyapi.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: "{{ include "aiapi.fullname" . }}-cliproxyapi"
|
|
labels:
|
|
{{- include "aiapi.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: cliproxyapi
|
|
{{- with .Values.cliproxyapi.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.cliproxyapi.ingress.className }}
|
|
ingressClassName: {{ .Values.cliproxyapi.ingress.className }}
|
|
{{- end }}
|
|
{{- with .Values.cliproxyapi.ingress.tls }}
|
|
tls:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.cliproxyapi.ingress.host }}
|
|
http:
|
|
paths:
|
|
- path: {{ .Values.cliproxyapi.ingress.path }}
|
|
pathType: {{ .Values.cliproxyapi.ingress.pathType }}
|
|
backend:
|
|
service:
|
|
name: "{{ include "aiapi.fullname" . }}-cliproxyapi"
|
|
port:
|
|
number: {{ .Values.cliproxyapi.service.port }}
|
|
{{- end }}
|