Files
manifests/charts/matomo/templates/services-extra.yaml
T
mrtz 8f46e45cfb feat: Add Matomo Chart for analytics
Also adds the Digitalist Chart as Backup in case the
bitnami one stops working.
2025-09-11 10:25:17 +02:00

27 lines
820 B
YAML

{{- range $service := .Values.extraServices }}
apiVersion: v1
kind: Service
metadata:
name: matomo-extra-{{ $service.name }}
spec:
type: {{ $service.type }}
ports:
- port: {{ $service.port }}
targetPort: {{ $service.name }}
protocol: {{ $service.protocol }}
name: {{ $service.name }}
{{- if and ( or (eq $service.type "LoadBalancer") (eq $service.type "NodePort") ) ($service.nodePort) }}
nodePort: {{ $service.nodePort }}
{{- end }}
{{- if and (eq $service.type "LoadBalancer") ($service.loadBalancerIP) }}
loadBalancerIP: {{ $service.loadBalancerIP }}
{{- end }}
{{- if $service.clusterIP }}
clusterIP: {{ $service.clusterIP }}
{{- end }}
selector:
{{- range $index, $content := $service.selector }}
{{ $index }}: {{ $content }}
{{- end }}
---
{{- end }}