Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit 3d7a199

Browse files
Pengfei QuPengfei Qu
authored andcommitted
change the transcode service name as xcode
1 parent 35a6d36 commit 3d7a199

File tree

11 files changed

+28
-25
lines changed

11 files changed

+28
-25
lines changed

deployment/kubernetes/helm/cdn-transcode/templates/live.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
app: live-service-{{ $i }}
2222
spec:
2323
containers:
24-
- image: {{ $.Values.registryPrefix }}tc_transcode_{{ lower $.Values.platform }}:latest
24+
- image: {{ $.Values.registryPrefix }}tc_xcode_{{ lower $.Values.platform }}:latest
2525
imagePullPolicy: IfNotPresent
2626
command: ["/usr/local/bin/ffmpeg","-re","-stream_loop","-1",
2727
"-i","{{ .name }}",

deployment/kubernetes/helm/cdn-transcode/templates/vod.yaml renamed to deployment/kubernetes/helm/cdn-transcode/templates/xcode.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,36 @@ apiVersion: apps/v1
55
kind: Deployment
66
metadata:
77
labels:
8-
app: vod-service-{{ $deviceIdx }}
9-
name: vod-service-{{ $deviceIdx }}
8+
app: xcode-service-{{ $deviceIdx }}
9+
name: xcode-service-{{ $deviceIdx }}
1010
spec:
1111
selector:
1212
matchLabels:
13-
app: vod-service-{{ $deviceIdx }}
13+
app: xcode-service-{{ $deviceIdx }}
1414
replicas: {{ $.Values.vodTranscode.replicas }}
1515
template:
1616
metadata:
1717
creationTimestamp: null
1818
labels:
19-
app: vod-service-{{ $deviceIdx }}
19+
app: xcode-service-{{ $deviceIdx }}
2020
spec:
2121
containers:
2222
- args:
2323
- bash
2424
- -c
2525
- /home/main.py
26-
image: {{ $.Values.registryPrefix }}tc_transcode_{{ lower $.Values.platform }}:latest
26+
image: {{ $.Values.registryPrefix }}tc_xcode_{{ lower $.Values.platform }}:latest
2727
imagePullPolicy: IfNotPresent
28-
name: vod-service-{{ $deviceIdx }}
28+
name: xcode-service-{{ $deviceIdx }}
2929
env:
3030
{{- if ne $.Values.platform "Xeon" }}
3131
- name: HW_ACC_TYPE
3232
value: {{ $.Values.hwAccType }}
3333
- name: HW_DEVICE
3434
value: /dev/dri/renderD{{ add $deviceIdx 128 }}
3535
{{- end }}
36+
- name: SCENARIO
37+
value: {{ $.Values.scenario | quote }}
3638
- name: NO_PROXY
3739
value: "*"
3840
- name: no_proxy
@@ -64,7 +66,7 @@ spec:
6466
{{- end }}
6567

6668

67-
{{- if eq "transcode" $.Values.scenario }}
69+
{{- if ne "cdn" $.Values.scenario }}
6870
---
6971

7072
apiVersion: batch/v1

deployment/kubernetes/helm/cdn-transcode/templates/zookeeper.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
- name: ZOOKEEPER_CLIENT_PORT
3838
value: "2181"
3939
- name: ZOOKEEPER_HEAP_OPTS
40-
value: -Xmx{{ .Values.zookeeper.heapSize }} -Xms{{ .Values.zookeeper.heapSize }}
40+
value: -Xmx{{ $.Values.zookeeper.heapSize }} -Xms{{ $.Values.zookeeper.heapSize }}
4141
- name: ZOOKEEPER_LOG4J_LOGGERS
4242
value: zookeepr=ERROR
4343
- name: ZOOKEEPER_LOG4J_ROOT_LOGLEVEL

deployment/kubernetes/volume-info.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash -e
22

3-
export VIDEO_ARCHIVE_VOLUME_PATH=/tmp/archive/video
3+
export VIDEO_ARCHIVE_VOLUME_PATH=/home/${USER}/sdp/archive/video
44
export VIDEO_ARCHIVE_VOLUME_SIZE=2
55
export VIDEO_ARCHIVE_VOLUME_HOST=$1
66

7-
export VIDEO_CACHE_VOLUME_PATH=/tmp/cache/video
7+
export VIDEO_CACHE_VOLUME_PATH=/home/${USER}/sdp/cache/video
88
export VIDEO_CACHE_VOLUME_SIZE=2
99
export VIDEO_CACHE_VOLUME_HOST=$2

deployment/kubernetes/yaml/live.yaml.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
enableServiceLinks: false
2424
containers:
2525
- name: live-defn(`LIDX')
26-
image: defn(`REGISTRY_PREFIX')tc_transcode_xeon:latest
26+
image: defn(`REGISTRY_PREFIX')tc_xcode_xeon:latest
2727
imagePullPolicy: IfNotPresent
2828
resources:
2929
limits:

deployment/kubernetes/yaml/vod.yaml.m4 renamed to deployment/kubernetes/yaml/xcode.yaml.m4

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ loop(DEVICEIDX,0,eval(defn(`HW_DEVICE_NUM')-1),`
77
apiVersion: apps/v1
88
kind: Deployment
99
metadata:
10-
name: vod-defn(`DEVICEIDX')
10+
name: xcode-defn(`DEVICEIDX')
1111
labels:
12-
app: vod-defn(`DEVICEIDX')
12+
app: xcode-defn(`DEVICEIDX')
1313
spec:
1414
replicas: defn(`NVODS')
1515
selector:
1616
matchLabels:
17-
app: vod-defn(`DEVICEIDX')
17+
app: xcode-defn(`DEVICEIDX')
1818
template:
1919
metadata:
2020
labels:
21-
app: vod-defn(`DEVICEIDX')
21+
app: xcode-defn(`DEVICEIDX')
2222
spec:
2323
enableServiceLinks: false
2424
containers:
25-
- name: vod-defn(`DEVICEIDX')
26-
image: defn(`REGISTRY_PREFIX')`tc_transcode_'defn(`PLATFORM_SUFFIX'):latest
25+
- name: xcode-defn(`DEVICEIDX')
26+
image: defn(`REGISTRY_PREFIX')`tc_xcode_'defn(`PLATFORM_SUFFIX'):latest
2727
imagePullPolicy: IfNotPresent
28-
ifelse(defn(`SCENARIO'),`transcode',`dnl
28+
ifelse(defn(`SCENARIO'),`cdn',,`dnl
2929
resources:
3030
limits:
3131
cpu: eval(defn(`VOD_CPU')*4)
@@ -41,6 +41,8 @@ ifelse(defn(`PLATFORM'),`Xeon',,`dnl
4141
- name: HW_DEVICE
4242
value: "`/dev/dri/renderD'eval(defn(`DEVICEIDX')+128)"
4343
')dnl
44+
- name: `SCENARIO'
45+
value: "defn(`SCENARIO')"
4446
- name: NO_PROXY
4547
value: "*"
4648
- name: no_proxy
@@ -72,7 +74,7 @@ PLATFORM_NODE_SELECTOR(`Xeon')dnl
7274
---
7375
')
7476

75-
ifelse(defn(`SCENARIO'),`transcode',`
77+
ifelse(defn(`SCENARIO'),`cdn',,`
7678
---
7779

7880
apiVersion: batch/v1

xcode-server/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
set(service "tc_transcode_service")
1+
set(service "tc_xcode_service")
22
include("${CMAKE_SOURCE_DIR}/script/service.cmake")
33
add_dependencies(build_${service} build_tc_common)

xcode-server/SG1/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tc_transcode_sg1
1+
# tc_xcode_sg1
22

33
FROM openvisualcloud/sg1-ubuntu1804-media-ffmpeg:21.3
44

xcode-server/Xeon/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tc_transcode_xeon
1+
# tc_xcode_xeon
22

33
FROM openvisualcloud/xeon-ubuntu1804-media-ffmpeg:21.3
44
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y -q --no-install-recommends python3-tornado python3-kafka python3-kazoo python3-psutil && rm -rf /var/lib/apt/lists/*

xcode-server/XeonE3/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tc_transcode_xeone3
1+
# tc_xcode_xeone3
22

33
FROM openvisualcloud/xeone3-ubuntu1804-media-ffmpeg:21.3
44

0 commit comments

Comments
 (0)