apiVersion: apps/v1 kind: Deployment metadata: namespace: {{ .Release.Namespace }} name: {{ .Release.Name }}-live-proxy labels: app: live-proxy chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} spec: replicas: {{ .Values.liveProxy.replicaCount }} selector: matchLabels: app: live-proxy release: {{ .Release.Name }} template: metadata: labels: app: live-proxy release: {{ .Release.Name }} spec: containers: - name: live-proxy image: "{{ .Values.images.liveProxy.repository }}:{{ .Values.images.liveProxy.tag }}" imagePullPolicy: {{ .Values.images.liveProxy.pullPolicy }} ports: - name: http containerPort: {{ .Values.liveProxy.port }} protocol: TCP env: - name: LIVE_IP_PRIVATE value: "{{ .Values.mediaSuite.nodeIP }}" - 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_OP_PORT_HTTP value: "{{ .Values.network.liveOpNodePort }}" volumeMounts: - name: config mountPath: /proxy/application.yaml subPath: application.yaml - name: shared-data mountPath: /cmii/uploads subPath: uploads resources: {{- toYaml .Values.liveProxy.resources | nindent 12 }} volumes: - name: config configMap: name: {{ .Release.Name }}-live-proxy-config - name: shared-data persistentVolumeClaim: claimName: {{ .Release.Name }}-shared-data-pvc imagePullSecrets: - name: {{ .Values.images.secretName }} --- apiVersion: v1 kind: Service metadata: namespace: {{ .Release.Namespace }} name: {{ .Release.Name }}-live-proxy labels: app: live-proxy chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} spec: type: NodePort ports: - name: http port: {{ .Values.liveProxy.port }} targetPort: http nodePort: {{ .Values.network.liveProxyNodePort }} protocol: TCP selector: app: live-proxy release: {{ .Release.Name }}