98 lines
3.2 KiB
YAML
98 lines
3.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: {{ .Release.Namespace }}
|
|
name: {{ .Release.Name }}-live-op
|
|
labels:
|
|
app: live-op
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
release: {{ .Release.Name }}
|
|
spec:
|
|
replicas: {{ .Values.liveOp.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: live-op
|
|
release: {{ .Release.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: live-op
|
|
release: {{ .Release.Name }}
|
|
spec:
|
|
containers:
|
|
- name: live-op
|
|
image: "{{ .Values.images.liveOp.repository }}:{{ .Values.images.liveOp.tag }}"
|
|
imagePullPolicy: {{ .Values.images.liveOp.pullPolicy }}
|
|
ports:
|
|
- name: http
|
|
containerPort: {{ .Values.liveOp.port }}
|
|
protocol: TCP
|
|
env:
|
|
- name: LIVE_IP_PUBLIC
|
|
value: "{{ .Values.mediaSuite.nodeIP }}"
|
|
- name: LIVE_IP_PRIVATE
|
|
value: "{{ .Values.mediaSuite.nodeIP }}"
|
|
- name: LIVE_OP_PORT_HTTP
|
|
value: "{{ .Values.liveOp.port }}"
|
|
- name: LIVE_WVP_PORT_HTTP
|
|
value: "{{ .Values.wvp.ports.http }}"
|
|
- name: LIVE_ZLM_PORT_HTTP
|
|
value: "{{ .Values.zlm.ports.http }}"
|
|
- name: LIVE_ZLM_PORT_HTTPS
|
|
value: "{{ .Values.zlm.ports.https }}"
|
|
- name: LIVE_ZLM_PORT_RTMP
|
|
value: "{{ .Values.zlm.ports.rtmp }}"
|
|
- name: LIVE_ZLM_PORT_RTSP
|
|
value: "{{ .Values.zlm.ports.rtsp }}"
|
|
- name: LIVE_ZLM_PORT_SRT
|
|
value: "{{ .Values.zlm.ports.srt }}"
|
|
- name: LIVE_ZLM_API_PASSWD
|
|
value: "{{ .Values.zlm.apiPasswd }}"
|
|
- name: OSS_ENDPOINT
|
|
value: "{{ .Values.external.minio.endpoint }}"
|
|
- name: OSS_AK
|
|
value: "{{ .Values.external.minio.accessKey }}"
|
|
- name: OSS_SK
|
|
value: "{{ .Values.external.minio.secretKey }}"
|
|
- name: RABBITMQ_HOST
|
|
value: "{{ .Values.external.rabbitmq.host }}"
|
|
- name: RABBITMQ_USERNAME
|
|
value: "{{ .Values.external.rabbitmq.username }}"
|
|
- name: RABBITMQ_PASSWORD
|
|
value: "{{ .Values.external.rabbitmq.password }}"
|
|
- name: RABBITMQ_PORT
|
|
value: "{{ .Values.external.rabbitmq.port }}"
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /cmii/application.yaml
|
|
subPath: application.yaml
|
|
resources:
|
|
{{- toYaml .Values.liveOp.resources | nindent 12 }}
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: {{ .Release.Name }}-live-op-config
|
|
imagePullSecrets:
|
|
- name: {{ .Values.images.secretName }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
namespace: {{ .Release.Namespace }}
|
|
name: {{ .Release.Name }}-live-op
|
|
labels:
|
|
app: live-op
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
release: {{ .Release.Name }}
|
|
spec:
|
|
type: NodePort
|
|
ports:
|
|
- name: http
|
|
port: {{ .Values.liveOp.port }}
|
|
targetPort: http
|
|
nodePort: {{ .Values.network.liveOpNodePort }}
|
|
protocol: TCP
|
|
selector:
|
|
app: live-op
|
|
release: {{ .Release.Name }}
|