370 lines
11 KiB
YAML
370 lines
11 KiB
YAML
---
|
|
# Source: cmii-live-services/templates/media-suite-deployment.yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: sc-cd-uav-260207
|
|
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: "0-master-172-22-106-77"
|
|
containers:
|
|
# WVP Container
|
|
- name: wvp
|
|
image: "172.22.106.77:8033/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: "172.22.106.77:8033/cmii/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: "172.22.106.77:8033/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
|