clean up + selectors

This commit is contained in:
Ariel Sosnovsky committed 2024-02-16 14:59:30 -05:00
1 parent c16cc33637
commit 4f5c150ae1
1 file changed
+3 -3
+3 -3
View File
@@ -9,7 +9,7 @@ spec:
app: {{ $k }}
type: ClusterIP
ports:
{{ range $portName, $portValue := $v.ports.tcp }}
{{- range $portName, $portValue := $v.ports.tcp }}
- port: {{ $portValue }}
targetPort: {{ $portValue }}
name: "{{ $portName }}"
@@ -32,10 +32,10 @@ metadata:
name: {{ $k }}-exposed-ports
spec:
selector:
homelab/app: scrypted
app: {{ $k }}
type: LoadBalancer
ports:
{{ range $exPort, $inPort := $v.exposedPorts }}
{{- range $exPort, $inPort := $v.exposedPorts }}
- port: {{ $exPort }}
targetPort: {{ $inPort }}
protocol: TCP