Files
helm-k3s/clusters/default/apps/jellyseerr/templates/jellyseerr-svc.yaml
2025-07-04 19:51:51 +05:30

23 lines
569 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.name }}-service"
namespace: {{ .Values.namespace }}
spec:
selector:
app: {{ .Values.name }}
{{- if eq .Values.service.type "LoadBalancer" }}
type: LoadBalancer
{{- else if eq .Values.service.type "NodePort" }}
type: NodePort
{{- end }}
ports:
- targetPort: 5055
protocol: TCP
{{- if eq .Values.service.type "NodePort" }}
nodePort: {{ .Values.service.nodePort }}
{{- else if eq .Values.service.type "LoadBalancer" }}
port: {{ .Values.service.port }}
{{- end }}