39 lines
968 B
YAML
39 lines
968 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mediamtx
|
|
namespace: argos-core
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels: { app: mediamtx }
|
|
template:
|
|
metadata:
|
|
labels: { app: mediamtx }
|
|
spec:
|
|
containers:
|
|
- name: mediamtx
|
|
image: bluenviron/mediamtx:1.14.0
|
|
# Nada de /bin/sh: solo pasa la ruta del YAML como argumento posicional
|
|
args: ["/config/mediamtx.yml"]
|
|
volumeMounts:
|
|
- name: cfg
|
|
mountPath: /config
|
|
ports:
|
|
- name: rtsp
|
|
containerPort: 8554
|
|
protocol: TCP
|
|
- name: http
|
|
containerPort: 8880
|
|
protocol: TCP
|
|
- name: whip
|
|
containerPort: 8889
|
|
protocol: TCP
|
|
- name: srt
|
|
containerPort: 8189
|
|
protocol: UDP
|
|
volumes:
|
|
- name: cfg
|
|
configMap:
|
|
name: mediamtx-config
|