feat: helm
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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
|
||||
Reference in New Issue
Block a user