451f543e6d
Add comprehensive Helm chart for deploying WeKnora to Kubernetes clusters. Features: - Core services: app, frontend, docreader, postgresql, redis - Optional services: MinIO, Neo4j, Qdrant, Jaeger (matching docker-compose profiles) - CNCF security best practices (SecurityContext, ServiceAccount, non-root) - Comprehensive documentation (README.md, NOTES.txt) - Required secrets validation (no default passwords) References: - https://helm.sh/docs/chart_best_practices/ - https://github.com/argoproj/argo-helm - https://github.com/prometheus-community/helm-charts - https://github.com/cert-manager/cert-manager Fixes #478 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
{{/*
|
|
Copyright 2025 Tencent
|
|
SPDX-License-Identifier: MIT
|
|
|
|
Ingress resource for WeKnora.
|
|
Routes /api to backend, / to frontend.
|
|
*/}}
|
|
{{- if .Values.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "weknora.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "weknora.componentLabels" (dict "component" "ingress" "context" .) | nindent 4 }}
|
|
{{- with .Values.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.ingress.className }}
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
{{- end }}
|
|
{{- if .Values.ingress.tls.enabled }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.ingress.host | quote }}
|
|
{{- if .Values.ingress.tls.secretName }}
|
|
secretName: {{ .Values.ingress.tls.secretName }}
|
|
{{- end }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.ingress.host | quote }}
|
|
http:
|
|
paths:
|
|
# API routes - must come first (more specific path)
|
|
- path: /api
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: app
|
|
port:
|
|
name: http
|
|
# Frontend routes - catch-all
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: frontend
|
|
port:
|
|
name: http
|
|
{{- end }}
|