Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
10.71k
stars
1.4k
forks
source link
How does k8s set the port number to be used through environment variables #3345
question1: this is docker start demo,How does k8s set the port number to be used through environment variables
docker run --rm -it \
-e MTX_PROTOCOLS=tcp \
-e MTX_WEBRTCADDITIONALHOSTS=192.168.x.x \
-p 8554:8554 \
-p 1935:1935 \
-p 8888:8888 \
-p 8889:8889 \
-p 8890:8890/udp \
-p 8189:8189/udp \
bluenviron/mediamtx
The environment variable specifies -e MTX_PROTOCOLS=tcp. Is public network access on port 8189 open for tcp or udp?
question 2:
I mounted it with a modified external profile to /mediamtx.yml
error log:
CreateContainerError (Error response from daemon: invalid volume specification: '/var/lib/kubelet/pods/5696e68d-3557-40a7-a008-9bcae27ef4e6/volume-subpaths/mediamtx-config/mediamtx/0:/:ro': invalid mount config for type "bind": invalid specification: destination can't be '/'
This issue is being automatically closed because it does not follow the issue template.
Please reopen the issue and make sure to include all sections of the template.
question1: this is docker start demo,How does k8s set the port number to be used through environment variables docker run --rm -it \ -e MTX_PROTOCOLS=tcp \ -e MTX_WEBRTCADDITIONALHOSTS=192.168.x.x \ -p 8554:8554 \ -p 1935:1935 \ -p 8888:8888 \ -p 8889:8889 \ -p 8890:8890/udp \ -p 8189:8189/udp \ bluenviron/mediamtx
The environment variable specifies -e MTX_PROTOCOLS=tcp. Is public network access on port 8189 open for tcp or udp?
question 2:
I mounted it with a modified external profile to /mediamtx.yml error log: CreateContainerError (Error response from daemon: invalid volume specification: '/var/lib/kubelet/pods/5696e68d-3557-40a7-a008-9bcae27ef4e6/volume-subpaths/mediamtx-config/mediamtx/0:/:ro': invalid mount config for type "bind": invalid specification: destination can't be '/'