diff --git a/k8s/apps/frigate/templates/dep-scrypted.yaml b/k8s/apps/frigate/templates/dep-scrypted.yaml index f17508f..c5c00af 100644 --- a/k8s/apps/frigate/templates/dep-scrypted.yaml +++ b/k8s/apps/frigate/templates/dep-scrypted.yaml @@ -85,6 +85,12 @@ spec: protocol: UDP - containerPort: 47524 name: homekit + {{ with .Values.scrypted.homekit }} + {{ range $i := (untilStep (int .startPort) (int .endPort) 1) }} + - containerPort: "{{$i}}" + name: homekit-{{$i}} + {{ end }} + {{ end }} env: - name: SCRYPTED_NVR_VOLUME value: /nvr diff --git a/k8s/apps/frigate/templates/lb.yaml b/k8s/apps/frigate/templates/lb.yaml index c6f8d61..c0c706f 100644 --- a/k8s/apps/frigate/templates/lb.yaml +++ b/k8s/apps/frigate/templates/lb.yaml @@ -42,7 +42,10 @@ spec: targetPort: 554 name: rtsp-udp protocol: UDP - - port: 47524 - targetPort: 47524 - name: homekit - \ No newline at end of file +{{ with .Values.scrypted.homekit }} + {{ range $i := (untilStep (int .startPort) (int .endPort) 1) }} + - port: "{{$i}}" + targetPort: "{{$i}}" + name: homekit-{{$i}} + {{ end }} +{{ end }} \ No newline at end of file diff --git a/k8s/apps/frigate/templates/service.yaml b/k8s/apps/frigate/templates/service.yaml index 743ddf8..5eaf39d 100644 --- a/k8s/apps/frigate/templates/service.yaml +++ b/k8s/apps/frigate/templates/service.yaml @@ -76,7 +76,10 @@ spec: targetPort: 443 name: https protocol: TCP - - port: 47524 - targetPort: 47524 - name: homekit - \ No newline at end of file +{{ with .Values.scrypted.homekit }} + {{ range $i := (untilStep (int .startPort) (int .endPort) 1) }} + - port: "{{$i}}" + targetPort: "{{$i}}" + name: homekit-{{$i}} + {{ end }} +{{ end }} \ No newline at end of file diff --git a/k8s/apps/frigate/values.yaml b/k8s/apps/frigate/values.yaml index d8b7611..88279f7 100644 --- a/k8s/apps/frigate/values.yaml +++ b/k8s/apps/frigate/values.yaml @@ -41,3 +41,8 @@ resources: limits: memory: "500Mi" cpu: "1" + +scrypted: + homekit: + startPort: 4000 + endPort: 4900 \ No newline at end of file