大量更新

This commit is contained in:
zeaslity
2026-05-19 14:28:56 +08:00
parent 9fc3372fa3
commit 37a6c6510f
223 changed files with 140833 additions and 2424 deletions

View File

@@ -0,0 +1,13 @@
---
# Source: cmii-live-services/templates/harborsecret.yaml
apiVersion: v1
kind: Secret
metadata:
name: harborsecret
namespace: 命名空间
labels:
chart: cmii-live-services-1.0.0
release: cmii-live
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ewoJImF1dGhzIjogewoJCSJoYXJib3IuY2RjeXkuY29tLmNuIjogewoJCQkiYXV0aCI6ICJjbUZrTURKZlpISnZibVU2UkhKdmJtVkFNVEl6TkE9PSIKCQl9Cgl9Cn0=

View File

@@ -0,0 +1,24 @@
---
# Source: cmii-live-services/templates/live-helper-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: 命名空间
name: cmii-live-live-helper-config
labels:
app: live-helper
chart: cmii-live-services-1.0.0
release: cmii-live
data:
config.yaml: |
app:
port: 7080
workers: 4
log:
level: INFO
client:
zlm: "http://cmii-live-zlm:7088"
downloader:
allow_domains: all

View File

@@ -0,0 +1,73 @@
---
# Source: cmii-live-services/templates/cmii-live-helper-deployment.yaml
apiVersion: v1
kind: Service
metadata:
namespace: 命名空间
name: cmii-live-live-helper
labels:
app: live-helper
chart: cmii-live-services-1.0.0
release: cmii-live
spec:
type: NodePort
ports:
- name: http
port: 7080
targetPort: http
nodePort: 37080
protocol: TCP
selector:
app: live-helper
release: cmii-live
---
# Source: cmii-live-services/templates/cmii-live-helper-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: 命名空间
name: cmii-live-live-helper
labels:
app: live-helper
chart: cmii-live-services-1.0.0
release: cmii-live
spec:
replicas: 1
selector:
matchLabels:
app: live-helper
release: cmii-live
template:
metadata:
labels:
app: live-helper
release: cmii-live
spec:
containers:
- name: live-helper
image: "镜像仓库/cmii/cmii-hls-downloader:v2.7.4"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 7080
protocol: TCP
env:
- name: ALLOW_DOWNLOAD
value: "all"
volumeMounts:
- name: config
mountPath: /cmii/live-helper/config.yaml
subPath: config.yaml
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
volumes:
- name: config
configMap:
name: cmii-live-live-helper-config
imagePullSecrets:
- name: harborsecret

View File

@@ -0,0 +1,88 @@
---
# Source: cmii-live-services/templates/live-op-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: 命名空间
name: cmii-live-live-op-config
labels:
app: live-op
chart: cmii-live-services-1.0.0
release: cmii-live
data:
application.yaml: |
debug: false
server:
port: 7086
spring:
web:
resources:
static-locations: classpath:/static/
main:
allow-bean-definition-overriding: true
allow-circular-references: true
application:
name: cmii-live-operator
thymeleaf:
check-template-location: false
cache: false
platform:
info:
name: cmii-live-operator
description: cmii-live-operator
version: 5.8.0
scanPackage: com.cmii.live.op
jackson:
time-zone: GMT+8
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://helm-mysql:3306/cmii_live_operator?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
username: k8s_admin
password: fP#UaH6qQ3)8
druid:
initial-size: 10
min-idle: 5
max-active: 20
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
use-ping-method: false
keep-alive: true
redis:
host: helm-redis-master
port: 6379
database: 1
password: Mcache@4522
live:
sync:
pool:
monitor:
enabled: false
core: 10
max: 20
queue: 1
keepalive: 20
logging:
config: classpath:logback-operator.xml
level:
root: info
com.cmii.live.op.mapper: info
mybatis-plus:
global-config:
banner: false
knife4j:
enable: true

View File

@@ -0,0 +1,105 @@
---
# Source: cmii-live-services/templates/cmii-live-op-deployment.yaml
apiVersion: v1
kind: Service
metadata:
namespace: 命名空间
name: cmii-live-live-op
labels:
app: live-op
chart: cmii-live-services-1.0.0
release: cmii-live
spec:
type: NodePort
ports:
- name: http
port: 7086
targetPort: http
nodePort: 37086
protocol: TCP
selector:
app: live-op
release: cmii-live
---
# Source: cmii-live-services/templates/cmii-live-op-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: 命名空间
name: cmii-live-live-op
labels:
app: live-op
chart: cmii-live-services-1.0.0
release: cmii-live
spec:
replicas: 1
selector:
matchLabels:
app: live-op
release: cmii-live
template:
metadata:
labels:
app: live-op
release: cmii-live
spec:
containers:
- name: live-op
image: "镜像仓库/cmii/cmii-live-operator:v5.8.0"
imagePullPolicy: Always
ports:
- name: http
containerPort: 7086
protocol: TCP
env:
- name: LIVE_IP_PUBLIC
value: "固定主机内网IP"
- name: LIVE_IP_PRIVATE
value: "固定主机内网IP"
- name: LIVE_OP_PORT_HTTP
value: "7086"
- name: LIVE_WVP_PORT_HTTP
value: "7082"
- name: LIVE_ZLM_PORT_HTTP
value: "7088"
- name: LIVE_ZLM_PORT_HTTPS
value: "7089"
- name: LIVE_ZLM_PORT_RTMP
value: "7935"
- name: LIVE_ZLM_PORT_RTSP
value: "7554"
- name: LIVE_ZLM_PORT_SRT
value: "7556"
- name: LIVE_ZLM_API_PASSWD
value: "035c7GB5cc"
- name: OSS_ENDPOINT
value: "http://helm-minio:9000"
- name: OSS_AK
value: "cmii"
- name: OSS_SK
value: "B#923fC7mk"
- name: RABBITMQ_HOST
value: "helm-rabbitmq"
- name: RABBITMQ_USERNAME
value: "admin"
- name: RABBITMQ_PASSWORD
value: "nYcRN91r._hj"
- name: RABBITMQ_PORT
value: "5672"
volumeMounts:
- name: config
mountPath: /cmii/application.yaml
subPath: application.yaml
resources:
limits:
cpu: "2"
memory: 2Gi
requests:
cpu: "1"
memory: 1Gi
volumes:
- name: config
configMap:
name: cmii-live-live-op-config
imagePullSecrets:
- name: harborsecret

View File

@@ -0,0 +1,104 @@
---
# Source: cmii-live-services/templates/live-proxy-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: cmii-live-live-proxy-config
labels:
app: live-proxy
chart: cmii-live-services-1.0.0
release: cmii-live
data:
application.yaml: |
server:
port: 7081
live:
proxy:
ffmpeg:
ffmpeg-path: /usr/bin/ffmpeg
ffprobe-path: /usr/bin/ffprobe
ffplay-path: /usr/bin/ffplay
check-win-pid: tasklist /FI "PID eq %s " /FO LIST
check-unix-pid: ps -p %s
os-name: windows
upload:
path: /proxy/uploads
src-all-size: 4294967296
dest-all-size: 4294967296
ws:
url: "固定主机内网IP:37081"
minio:
endpoint: http://helm-minio:9000
access-key: cmii
secret-key: B#923fC7mk
bucket-name: ilm-detect
spring:
platform:
info:
name: cmii-live-proxy
description: ffmpeg服务小工具
version: 1.0.3
scanPackage: com.cmii.live.proxy.web.controller
profiles:
active: local
jackson:
time-zone: GMT+8
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
thymeleaf:
check-template-location: false
cache: false
servlet:
multipart:
max-file-size: 1024MB
max-request-size: 1024MB
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
druid:
url: jdbc:mysql://helm-mysql:3306/cmii_live_proxy?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
username: k8s_admin
password: fP#UaH6qQ3)8
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
max-evictable-idle-time-millis: 600000
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
filters: stat,wall,slf4j
connection-properties: connectTimeout=10000;socketTimeout=30000
redis:
host: helm-redis-master
port: 6379
password: Mcache@4522
database: 3
timeout: 10s
lettuce:
pool:
min-idle: 0
max-idle: 10
max-active: 10
max-wait: -1ms
springdoc:
api-docs:
enabled: true
swagger-ui:
enabled: true
mybatis-plus:
global-config:
banner: false
logging:
config: classpath:logback-proxy.xml
level:
com.cmii.live.proxy.web.mapper: info

View File

@@ -0,0 +1,89 @@
---
# Source: cmii-live-services/templates/cmii-live-proxy-deployment.yaml
apiVersion: v1
kind: Service
metadata:
namespace: 命名空间
name: cmii-live-live-proxy
labels:
app: live-proxy
chart: cmii-live-services-1.0.0
release: cmii-live
spec:
type: NodePort
ports:
- name: http
port: 7081
targetPort: http
nodePort: 37081
protocol: TCP
selector:
app: live-proxy
release: cmii-live
---
# Source: cmii-live-services/templates/cmii-live-proxy-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: 命名空间
name: cmii-live-live-proxy
labels:
app: live-proxy
chart: cmii-live-services-1.0.0
release: cmii-live
spec:
replicas: 1
selector:
matchLabels:
app: live-proxy
release: cmii-live
template:
metadata:
labels:
app: live-proxy
release: cmii-live
spec:
containers:
- name: live-proxy
image: "镜像仓库/cmii/cmii-live-proxy:v1.0.3"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 7081
protocol: TCP
env:
- name: LIVE_IP_PRIVATE
value: "固定主机内网IP"
- name: LIVE_ZLM_PORT_HTTP
value: "7088"
- name: LIVE_ZLM_PORT_HTTPS
value: "7089"
- name: LIVE_ZLM_PORT_RTMP
value: "7935"
- name: LIVE_ZLM_PORT_RTSP
value: "7554"
- name: LIVE_OP_PORT_HTTP
value: "37086"
volumeMounts:
- name: config
mountPath: /proxy/application.yaml
subPath: application.yaml
- name: shared-data
mountPath: /cmii/uploads
subPath: uploads
resources:
limits:
cpu: "1"
memory: 2Gi
requests:
cpu: "1"
memory: 1Gi
volumes:
- name: config
configMap:
name: cmii-live-live-proxy-config
- name: shared-data
persistentVolumeClaim:
claimName: cmii-live-shared-data-pvc
imagePullSecrets:
- name: harborsecret

View File

@@ -0,0 +1,369 @@
---
# Source: cmii-live-services/templates/media-suite-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: 命名空间
name: cmii-live-media-suite
labels:
app: media-suite
chart: cmii-live-services-1.0.0
release: cmii-live
spec:
replicas: 1
selector:
matchLabels:
app: media-suite
release: cmii-live
template:
metadata:
labels:
app: media-suite
release: cmii-live
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
# 配置到固定node上
nodeSelector:
kubernetes.io/hostname: "固定主机hostname"
containers:
# WVP Container
- name: wvp
image: "镜像仓库/cmii/wvp:v2.7.4"
imagePullPolicy: IfNotPresent
ports:
- name: wvp-http
containerPort: 7082
hostPort: 7082
protocol: TCP
- name: wvp-sip
containerPort: 7060
hostPort: 7060
protocol: UDP
env:
- name: TZ
value: "Asia/Shanghai"
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
volumeMounts:
- name: wvp-config
mountPath: /home/koisi/wvp.yaml
subPath: application.yaml
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: "1"
memory: 2Gi
# ZLM Container
- name: zlm
image: "镜像仓库/cmii/cmlc-live/zlm:v2.7.5"
imagePullPolicy: IfNotPresent
ports:
- name: zlm-http
containerPort: 7088
hostPort: 7088
protocol: TCP
- name: zlm-https
containerPort: 7089
hostPort: 7089
protocol: TCP
- name: zlm-rtmp
containerPort: 7935
hostPort: 7935
protocol: TCP
- name: zlm-rtsp
containerPort: 7554
hostPort: 7554
protocol: TCP
- name: zlm-webrtc-tcp
containerPort: 7090
hostPort: 7090
protocol: TCP
- name: zlm-webrtc-udp
containerPort: 7090
hostPort: 7090
protocol: UDP
- name: zlm-srt
containerPort: 7556
hostPort: 7556
protocol: TCP
- name: zlm-rtp-proxy
containerPort: 7100
hostPort: 7100
protocol: UDP
- name: zlm-rtp-7200
containerPort: 7200
hostPort: 7200
protocol: UDP
- name: zlm-rtp-7201
containerPort: 7201
hostPort: 7201
protocol: UDP
- name: zlm-rtp-7202
containerPort: 7202
hostPort: 7202
protocol: UDP
- name: zlm-rtp-7203
containerPort: 7203
hostPort: 7203
protocol: UDP
- name: zlm-rtp-7204
containerPort: 7204
hostPort: 7204
protocol: UDP
- name: zlm-rtp-7205
containerPort: 7205
hostPort: 7205
protocol: UDP
- name: zlm-rtp-7206
containerPort: 7206
hostPort: 7206
protocol: UDP
- name: zlm-rtp-7207
containerPort: 7207
hostPort: 7207
protocol: UDP
- name: zlm-rtp-7208
containerPort: 7208
hostPort: 7208
protocol: UDP
- name: zlm-rtp-7209
containerPort: 7209
hostPort: 7209
protocol: UDP
- name: zlm-rtp-7210
containerPort: 7210
hostPort: 7210
protocol: UDP
- name: zlm-rtp-7211
containerPort: 7211
hostPort: 7211
protocol: UDP
- name: zlm-rtp-7212
containerPort: 7212
hostPort: 7212
protocol: UDP
- name: zlm-rtp-7213
containerPort: 7213
hostPort: 7213
protocol: UDP
- name: zlm-rtp-7214
containerPort: 7214
hostPort: 7214
protocol: UDP
- name: zlm-rtp-7215
containerPort: 7215
hostPort: 7215
protocol: UDP
- name: zlm-rtp-7216
containerPort: 7216
hostPort: 7216
protocol: UDP
- name: zlm-rtp-7217
containerPort: 7217
hostPort: 7217
protocol: UDP
- name: zlm-rtp-7218
containerPort: 7218
hostPort: 7218
protocol: UDP
- name: zlm-rtp-7219
containerPort: 7219
hostPort: 7219
protocol: UDP
- name: zlm-rtp-7220
containerPort: 7220
hostPort: 7220
protocol: UDP
- name: zlm-rtp-7221
containerPort: 7221
hostPort: 7221
protocol: UDP
- name: zlm-rtp-7222
containerPort: 7222
hostPort: 7222
protocol: UDP
- name: zlm-rtp-7223
containerPort: 7223
hostPort: 7223
protocol: UDP
- name: zlm-rtp-7224
containerPort: 7224
hostPort: 7224
protocol: UDP
- name: zlm-rtp-7225
containerPort: 7225
hostPort: 7225
protocol: UDP
- name: zlm-rtp-7226
containerPort: 7226
hostPort: 7226
protocol: UDP
- name: zlm-rtp-7227
containerPort: 7227
hostPort: 7227
protocol: UDP
- name: zlm-rtp-7228
containerPort: 7228
hostPort: 7228
protocol: UDP
- name: zlm-rtp-7229
containerPort: 7229
hostPort: 7229
protocol: UDP
- name: zlm-rtp-7230
containerPort: 7230
hostPort: 7230
protocol: UDP
- name: zlm-rtp-7231
containerPort: 7231
hostPort: 7231
protocol: UDP
- name: zlm-rtp-7232
containerPort: 7232
hostPort: 7232
protocol: UDP
- name: zlm-rtp-7233
containerPort: 7233
hostPort: 7233
protocol: UDP
- name: zlm-rtp-7234
containerPort: 7234
hostPort: 7234
protocol: UDP
- name: zlm-rtp-7235
containerPort: 7235
hostPort: 7235
protocol: UDP
- name: zlm-rtp-7236
containerPort: 7236
hostPort: 7236
protocol: UDP
- name: zlm-rtp-7237
containerPort: 7237
hostPort: 7237
protocol: UDP
- name: zlm-rtp-7238
containerPort: 7238
hostPort: 7238
protocol: UDP
- name: zlm-rtp-7239
containerPort: 7239
hostPort: 7239
protocol: UDP
- name: zlm-rtp-7240
containerPort: 7240
hostPort: 7240
protocol: UDP
- name: zlm-rtp-7241
containerPort: 7241
hostPort: 7241
protocol: UDP
- name: zlm-rtp-7242
containerPort: 7242
hostPort: 7242
protocol: UDP
- name: zlm-rtp-7243
containerPort: 7243
hostPort: 7243
protocol: UDP
- name: zlm-rtp-7244
containerPort: 7244
hostPort: 7244
protocol: UDP
- name: zlm-rtp-7245
containerPort: 7245
hostPort: 7245
protocol: UDP
- name: zlm-rtp-7246
containerPort: 7246
hostPort: 7246
protocol: UDP
- name: zlm-rtp-7247
containerPort: 7247
hostPort: 7247
protocol: UDP
- name: zlm-rtp-7248
containerPort: 7248
hostPort: 7248
protocol: UDP
- name: zlm-rtp-7249
containerPort: 7249
hostPort: 7249
protocol: UDP
- name: zlm-rtp-7250
containerPort: 7250
hostPort: 7250
protocol: UDP
env:
- name: TZ
value: "Asia/Shanghai"
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
volumeMounts:
- name: zlm-config
mountPath: /home/koisi/zlm.ini
subPath: zlm.ini
- name: shared-data
mountPath: /home/koisi/zlm/www/zlm/hls
subPath: hls
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: "2"
memory: 2Gi
# ZLM-OSS Container
- name: zlm-oss
image: "镜像仓库/cmii/zlm-oss-adaptor:v2.7.5"
imagePullPolicy: IfNotPresent
ports:
- name: zlm-oss-http
containerPort: 7084
hostPort: 7084
protocol: TCP
volumeMounts:
- name: zlm-oss-config
mountPath: /cmii/oss-adaptor/boot/config.yaml
subPath: config.yaml
- name: shared-data
mountPath: /cmii/share/hls
subPath: hls
resources:
limits:
cpu: "2"
memory: 2Gi
requests:
cpu: "1"
memory: 1Gi
volumes:
- name: wvp-config
configMap:
name: cmii-live-wvp-config
- name: zlm-config
configMap:
name: cmii-live-zlm-config
- name: zlm-oss-config
configMap:
name: cmii-live-zlm-oss-config
- name: shared-data
persistentVolumeClaim:
claimName: cmii-live-shared-data-pvc
imagePullSecrets:
- name: harborsecret

View File

@@ -0,0 +1,19 @@
---
# Source: cmii-live-services/templates/pvc.yaml
# 单个共享 PVC通过 subPath 区分不同服务的数据
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: 命名空间
name: cmii-live-shared-data-pvc
labels:
app: media-suite
chart: cmii-live-services-1.0.0
release: cmii-live
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: nfs-prod-distribute

View File

@@ -0,0 +1,98 @@
---
# Source: cmii-live-services/templates/wvp-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: 命名空间
name: cmii-live-wvp-config
labels:
app: wvp
chart: cmii-live-services-1.0.0
release: cmii-live
data:
application.yaml: |
spring:
cache:
type: redis
thymeleaf:
cache: false
mvc:
async:
request-timeout: 20000
servlet:
multipart:
max-file-size: 10MB
max-request-size: 100MB
data:
redis:
host: helm-redis-master
port: 6379
database: 2
password: Mcache@4522
timeout: 10000
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://helm-mysql:3306/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true
username: k8s_admin
password: fP#UaH6qQ3)8
server:
port: 7082
ssl:
enabled: false
sip:
ip: ${NODE_IP}
show-ip: ${NODE_IP}
port: 7060
domain: 5101000049
id: "51010000492000000228"
password: 035c7GB5cc
register-time-interval: 60
ptz-speed: 50
keepalliveToOnline: true
alarm: true
timeout: 1000
media:
id: koisi_gb_228
ip: 127.0.0.1
http-port: 7088
http-ssl-port: 0
flv-port: 7088
flv-ssl-port: 7089
ws-flv-port: 7088
ws-flv-ssl-port: 7089
rtp-proxy-port: 7088
rtmp-port: 7089
rtmp-ssl-port: 0
rtsp-port: 7554
rtsp-ssl-port: 0
auto-config: false
secret: 035c7GB5cc
rtp:
enable: true
port-range: 7200,7250
send-port-range: 30800,30990
record-path: /opt/media/bin/www/record/
record-day: 7
record-assist-port: 0
user-settings:
auto-apply-play: true
play-timeout: 30000
wait-track: false
record-push-live: false
record-sip: true
stream-on-demand: true
interface-authentication: true
broadcast-for-platform: TCP-PASSIVE
push-stream-after-ack: true
send-to-platforms-when-id-lost: true
interface-authentication-excludes:
- /api/**
push-authority: true
logging:
config: classpath:logback-spring.xml

View File

@@ -0,0 +1,213 @@
---
# Source: cmii-live-services/templates/zlm-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: 命名空间
name: cmii-live-zlm-config
labels:
app: zlm
chart: cmii-live-services-1.0.0
release: cmii-live
data:
zlm.ini: |
[api]
apiDebug = 0
secret = 035c7GB5cc
snapRoot = ./www/snap/
defaultSnap = ./www/logo.png
downloadRoot = ./www
[ffmpeg]
bin = /usr/bin/ffmpeg
cmd = %s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s
log = ./ffmpeg/ffmpeg.log
restart_sec = 0
snap = %s -rtsp_transport tcp -i %s -y -f mjpeg -frames:v 1 %s
[protocol]
modify_stamp = 2
enable_audio = 1
add_mute_audio = 0
auto_close = 0
continue_push_ms = 3000
paced_sender_ms = 0
enable_hls = 1
enable_hls_fmp4 = 0
enable_rtmp = 1
enable_ts = 1
enable_fmp4 = 1
enable_rtsp = 1
enable_mp4 = 0
mp4_as_player = 0
mp4_max_second = 3600
mp4_save_path = ./www
hls_save_path = ./www/zlm/hls
hls_demand = 0
rtsp_demand = 0
rtmp_demand = 0
ts_demand = 0
fmp4_demand = 0
[general]
enableVhost = 0
flowThreshold = 1024
enable_ffmpeg_log = 0
listen_ip = ::
maxStreamWaitMS = 0
streamNoneReaderDelayMS = 120000
resetWhenRePlay = 1
mergeWriteMS = 0
mediaServerId = koisi_gb_228
wait_audio_track_data_ms = 1000
wait_track_ready_ms = 8000
wait_add_track_ms = 2000
unready_frame_cache = 96
check_nvidia_dev = 1
broadcast_player_count_changed = 0
[hls]
fileBufSize = 65536
segDur = 10
segNum = 3
segDelay = 0
segRetain = 5
broadcastRecordTs = 1
deleteDelaySec = 10
segKeep = 0
fastRegister = 0
[hook]
enable = 1
on_flow_report =
on_http_access =
# ZLM → Live Operator
on_play = http://cmii-live-live-op:7086/hooks/on_play
on_publish = http://cmii-live-live-op:7086/hooks/on_push
on_stream_changed = http://cmii-live-live-op:7086/hooks/on_stream_changed
# ZLM → WVP
on_stream_none_reader = http://127.0.0.1:7082/index/hook/on_stream_none_reader
on_stream_not_found = http://127.0.0.1:7082/index/hook/on_stream_not_found
on_rtp_server_timeout = http://127.0.0.1:7082/index/hook/on_rtp_server_timeout
on_send_rtp_stopped = http://127.0.0.1:7082/index/hook/on_send_rtp_stopped
on_server_started = http://127.0.0.1:7082/index/hook/on_server_started
on_server_keepalive = http://127.0.0.1:7082/index/hook/on_server_keepalive
on_record_mp4 = http://127.0.0.1:7082/index/hook/on_record_mp4
on_server_exited =
on_rtsp_auth =
on_rtsp_realm =
on_shell_login =
# ZLM → ZLM OSS
on_record_ts = http://127.0.0.1:7084/hooks/on_record_ts
stream_changed_schemas = rtsp/rtmp/fmp4/ts/hls/hls.fmp4
timeoutSec = 30
alive_interval = 10.0
retry = 1
retry_delay = 3.0
[cluster]
origin_url =
timeout_sec = 15
retry_count = 3
[http]
port = 7088
sslport = 7089
charSet = utf-8
keepAliveSecond = 30
maxReqSize = 40960
notFound = <html><head><title>404 Not Found</title></head><body><div>404 Not Found</div></body></html>
rootPath = ./www
sendBufSize = 65536
dirMenu = 1
virtualPath =
forbidCacheSuffix =
allow_cross_domains = 1
allow_ip_range = ::1,127.0.0.1,172.1.0.0-172.31.255.255,192.168.0.0-192.168.255.255,10.0.0.0-10.255.255.255
[multicast]
addrMax = 239.255.255.255
addrMin = 239.0.0.0
udpTTL = 64
[record]
appName = record
fileBufSize = 65536
sampleMS = 500
fastStart = 0
fileRepeat = 0
enableFmp4 = 0
[rtmp]
port = 7935
sslport = 0
handshakeSecond = 15
keepAliveSecond = 15
directProxy = 1
enhanced = 0
[rtp]
audioMtuSize = 600
videoMtuSize = 1400
rtpMaxSize = 10
lowLatency = 0
h264_stap_a = 1
[rtp_proxy]
port = 7100
port_range = 7200-7250
dumpDir =
timeoutSec = 5
h264_pt = 98
h265_pt = 99
ps_pt = 96
opus_pt = 100
gop_cache = 1
rtp_g711_dur_ms = 100
udp_recv_socket_buffer = 4194304
[rtc]
bfilter=0
datachannel_echo=0
maxRtpCacheMS=5000
maxRtpCacheSize=2048
externIP = $(NODE_IP)
port = 7090
tcpPort = 7090
timeoutSec = 30
rembBitRate = 0
preferredCodecA = PCMA,PCMU,opus,mpeg4-generic
preferredCodecV = H264,H265,AV1,VP9,VP8
start_bitrate = 0
max_bitrate = 0
min_bitrate = 0
maxNackMS = 4000
rtpCacheCheckInterval = 96
nackMaxSize = 2048
nackMaxMS = 3000
nackMaxCount = 15
nackIntervalRatio = 1.0
nackRtpSize = 8
[srt]
port = 7556
timeoutSec = 5
latencyMul = 4
pktBufSize = 8192
passPhrase=
[rtsp]
port = 7554
sslport = 0
authBasic = 0
directProxy = 1
handshakeSecond = 15
keepAliveSecond = 15
lowLatency = 1
rtpTransportType = -1
[shell]
maxReqSize = 1024
port = 0

View File

@@ -0,0 +1,85 @@
---
# Source: cmii-live-services/templates/zlm-oss-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: 命名空间
name: cmii-live-zlm-oss-config
labels:
app: media-suite
chart: cmii-live-services-1.0.0
release: cmii-live
data:
config.yaml: |
app:
env: default
listen:
host: 0.0.0.0
port: 7084
workers: 4
thread_pool: 8
log:
level: INFO
onfile_logger_interval: 10
backup_on_fails: true
skip_on_initializing_seconds: 4
skip_hubs: "Hangar, ai-5g-a"
file_dir:
shared: "/cmii/share/hls"
backup: "/cmii/backup"
debug:
save_all: false
save_to: "UASMS"
max_duration: 120
minio:
endpoint: "http://helm-minio:9000"
access_key: "cmii"
secret_key: "B#923fC7mk"
mysql:
host: helm-mysql
port: 3306
username: k8s_admin
password: fP#UaH6qQ3)8
redis:
host: helm-redis-master
port: 6379
database: 1
password: Mcache@4522
rabbitmq:
host: helm-rabbitmq
port: 5672
username: admin
password: nYcRN91r._hj
platforms:
live_op:
db_schema: "cmii_live_operator"
old_cmlc:
cloud_live: "cmii-uav-cloud-live"
quota: false
oss_bucket: "ilm-detect"
meta:
src_id: "1323096648758464518"
user_id: 0
company_id: 0
uasms:
scope_prefix: "UASMS"
oss_bucket: "ilm-detect"
meta:
src_id: "1323096648758464523"
platform: "REGULATOR"
user_id: 0
lite:
scope_prefix: "LITE"
oss_bucket: "ilm-detect"
routing_key: "sky.live.video"
meta:
src_id: "1111111112222222222"
platform: "LITE"
user_id: 0