Files
HelmChartSammlung/charts/paperless-ai/templates/ingress.yaml
Marko Oldenburg ba732eb734
Some checks failed
Build Helm Chart / helm-package (push) Failing after 3s
Refactor paperless-ai Helm chart for improved configuration
This update substantially refactors the paperless-ai Helm chart.
Key changes include:

- Complete removal of outdated files: `.helmignore`, `LICENSE`,
  `README.adoc`, and several template files like `configfileConfigmap.yaml`,
  `configmap.yaml`, `dataPvc.yaml`, `envfileSecret.yaml`,
  `openAiApiSecret.yaml`, `paperlessApiSecret.yaml`, and others.

- Introduction of a new Persistent Volume Claim configuration in
  `pvc.yaml` to simplify storage management.

- Significant updates to `Chart.yaml` for better metadata, including
  a new maintainer and project description in German.

- Enhancements to the main deployment template in `deployment.yaml`,
  focusing on clarity and proper utilization of Kubernetes security
  contexts, environment variables, and container properties.

- Updated service definitions in `service.yaml` with better labels
  and service properties.

- Refined the `ingress.yaml` to improve external service access
  management, including annotations for potential customization.

These changes were implemented to modernize the Helm chart based on
the current best practices, improve user experience, and set a
foundation for future enhancements. There are no breaking changes to
the existing user configurations.
2025-07-06 09:02:17 +02:00

39 lines
1.6 KiB
YAML

# ingress.yaml
# Definiert einen Kubernetes Ingress, um externen Zugriff auf den Service zu ermöglichen.
# Standardmäßig ist dieser Ingress deaktiviert und muss in 'values.yaml' aktiviert werden.
{{- if .Values.ingress.enabled -}} # Dieses Template wird nur gerendert, wenn 'ingress.enabled' true ist.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "paperless-ai.fullname" . }} # Der Name des Ingress.
labels:
{{- include "paperless-ai.labels" . | nindent 4 }} # Allgemeine Labels für den Ingress.
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }} # Zusätzliche Anmerkungen für den Ingress (z.B. für Cert-Manager oder Nginx-Controller).
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }} # Der Name der Ingress-Klasse.
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- toYaml .Values.ingress.tls | nindent 4 }} # TLS-Konfiguration für HTTPS.
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }} # Der Hostname für den Ingress.
http:
paths:
{{- range .paths }}
- path: {{ .path }} # Der Pfad, der weitergeleitet werden soll.
pathType: {{ .pathType }} # Der Typ des Pfades (Prefix, Exact, ImplementationSpecific).
backend:
service:
name: {{ include "paperless-ai.fullname" $ }} # Name des Services, an den weitergeleitet wird.
port:
number: {{ $.Values.service.port }} # Port des Services.
{{- end }}
{{- end }}
{{- end }}