90 lines
2.2 KiB
YAML
90 lines
2.2 KiB
YAML
---
|
|
# Source: cmii-live-services/templates/cmii-live-proxy-deployment.yaml
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
namespace: cq-uas-260427
|
|
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: 31081
|
|
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: cq-uas-260427
|
|
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: "chongqingshcis-a189ec98.ecis.chongqing-1.cmecloud.cn/cmii/cmii-live-proxy:v1.0.3"
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 7081
|
|
protocol: TCP
|
|
env:
|
|
- name: LIVE_IP_PRIVATE
|
|
value: "192.168.9.91"
|
|
- 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
|