diff options
| author | Your Name <you@example.com> | 2026-04-26 21:02:47 +0800 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-04-26 21:02:47 +0800 |
| commit | d3e770254de0bb301815ca87257c8b1a357d06c4 (patch) | |
| tree | 358c814be2a06b9e2009905f14938243286b8d82 /charts/llm-app/templates/ingress.yaml | |
Diffstat (limited to 'charts/llm-app/templates/ingress.yaml')
| -rw-r--r-- | charts/llm-app/templates/ingress.yaml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/charts/llm-app/templates/ingress.yaml b/charts/llm-app/templates/ingress.yaml new file mode 100644 index 0000000..f3a6ded --- /dev/null +++ b/charts/llm-app/templates/ingress.yaml | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | {{- if .Values.ingress.enabled -}} | ||
| 2 | apiVersion: networking.k8s.io/v1 | ||
| 3 | kind: Ingress | ||
| 4 | metadata: | ||
| 5 | name: {{ include "llm-app.fullname" . }} | ||
| 6 | spec: | ||
| 7 | ingressClassName: {{ .Values.ingress.className }} | ||
| 8 | rules: | ||
| 9 | - host: {{ .Values.ingress.host | quote }} | ||
| 10 | http: | ||
| 11 | paths: | ||
| 12 | - path: / | ||
| 13 | pathType: Prefix | ||
| 14 | backend: | ||
| 15 | service: | ||
| 16 | name: {{ include "llm-app.fullname" . }} | ||
| 17 | port: | ||
| 18 | number: {{ .Values.service.port }} | ||
| 19 | {{- end }} | ||
