fix(frigate) map container ports for rtsp and webrtc services (#9598)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [x] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [x] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [x] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
nautilus7 2023-06-16 12:26:26 +03:00 committed by GitHub
parent 406ebaaf38
commit 6cd81ed25f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 7 deletions

View File

@ -23,7 +23,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/frigate
- https://github.com/blakeblackshear/frigate
type: application
version: 9.0.2
version: 9.0.3
annotations:
truecharts.org/catagories: |
- nvr

View File

@ -29,7 +29,6 @@ questions:
schema:
type: int
default: 10500
editable: true
required: true
- variable: rtmp
label: RTMP Service
@ -52,7 +51,63 @@ questions:
schema:
type: int
default: 1935
editable: true
required: true
- variable: rtsp
label: RTSP Service
description: The service on which nodes connect to.
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: rtsp
label: RTSP Service Port Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: Port
description: This port exposes the container port on the service
schema:
type: int
default: 8554
required: true
- variable: webrtc
label: WebRTC Service
description: The service on which nodes connect to.
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: webrtc-tcp
label: WebRTC (TCP) Service Port Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: Port
description: This port exposes the container port on the service
schema:
type: int
default: 8555
required: true
- variable: webrtc-udp
label: WebRTC (UDP) Service Port Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: Port
description: This port exposes the container port on the service
schema:
type: int
default: 8555
required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}

View File

@ -44,10 +44,6 @@ securityContext:
runAsUser: 0
runAsGroup: 0
ingress:
rtmp:
autoLink: true
service:
main:
ports:
@ -62,6 +58,25 @@ service:
enabled: true
port: 1935
targetPort: 1935
rtsp:
enabled: true
ports:
rtsp:
enabled: true
port: 8554
targetPort: 8554
webrtc:
enabled: true
ports:
webrtc-tcp:
enabled: true
port: 8555
targetPort: 8555
webrtc-udp:
enabled: true
port: 8555
protocol: udp
targetPort: 8555
persistence:
media: