Files
TelegramMemeVault/helm/memevault/templates/ingress.yaml
T

38 lines
1.1 KiB
YAML
Raw Normal View History

2026-10-10 20:08:16 +04:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "memevault.fullname" . }}
labels:
{{- include "memevault.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secretName }}
{{- end }}
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
# API-запросы идут напрямую в api-сервис, минуя miniapp nginx.
- path: /api
pathType: Prefix
backend:
service:
name: {{ include "memevault.fullname" . }}-api
port:
name: http
# Всё остальное — miniapp (Svelte SPA + nginx).
- path: /
pathType: Prefix
backend:
service:
name: {{ include "memevault.fullname" . }}-miniapp
port:
name: http