Refactor service.yaml for improved readability

Updated the service.yaml template by removing unnecessary comments and
whitespace for better readability. The updates include cleanup of the
Kubernetes service definition while maintaining the original functionality.
These changes simplify the code structure without altering the service's
behavior. No breaking changes were introduced, ensuring compatibility with
existing configurations.
This commit is contained in:
2025-07-06 09:11:22 +02:00
parent ba732eb734
commit a5fc085ab9

View File

@ -1,15 +1,13 @@
# service.yaml
# Definiert einen Kubernetes Service, der den Zugriff auf die Pods des Deployments ermöglicht.
apiVersion: v1
kind: Service
metadata:
name: { { include "paperless-ai.fullname" . } } # Der Name des Services.
labels: { { - include "paperless-ai.labels" . | nindent 4 } } # Allgemeine Labels für den Service.
name: { { include "paperless-ai.fullname" . } }
labels: { { - include "paperless-ai.labels" . | nindent 4 } }
spec:
type: { { .Values.service.type } } # Der Typ des Services (z.B. ClusterIP, NodePort, LoadBalancer).
type: { { .Values.service.type } }
ports:
- port: { { .Values.service.port } } # Der Port, auf dem der Service Anfragen empfängt.
targetPort: { { .Values.service.targetPort } } # Der Port des Pods, an den der Service weiterleitet.
protocol: TCP # Das Protokoll des Ports.
name: http # Name des Service-Ports.
selector: { { - include "paperless-ai.selectorLabels" . | nindent 4 } } # Selector, um die Pods zu finden, die dieser Service bedient.
- port: { { .Values.service.port } }
targetPort: { { .Values.service.targetPort } }
protocol:
name: http
selector: { { - include "paperless-ai.selectorLabels" . | nindent 4 } }