50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: apolo-mediamtx
|
|
namespace: apolo
|
|
labels:
|
|
app.kubernetes.io/name: apolo-mediamtx
|
|
app.kubernetes.io/part-of: apolo
|
|
app.kubernetes.io/component: media
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: apolo-mediamtx
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: apolo-mediamtx
|
|
app.kubernetes.io/part-of: apolo
|
|
app.kubernetes.io/component: media
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: harbor-cred
|
|
containers:
|
|
- name: mediamtx
|
|
image: harbor.c2et.com/xrf-ssl/xrf-media-server:6.0
|
|
imagePullPolicy: IfNotPresent
|
|
envFrom:
|
|
- configMapRef:
|
|
name: apolo-mediamtx-env
|
|
ports:
|
|
- name: rtmp
|
|
containerPort: 1935
|
|
protocol: TCP
|
|
- name: rtsp
|
|
containerPort: 8554
|
|
protocol: TCP
|
|
- name: hls
|
|
containerPort: 8887
|
|
protocol: TCP
|
|
# Probes sencillas por TCP en RTSP/RTMP. Ajusta si tu build expone health HTTP.
|
|
readinessProbe:
|
|
tcpSocket: { port: 8554 }
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
tcpSocket: { port: 8554 }
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 20
|