This document discusses transcoding video files using Kubernetes jobs. It describes creating different job pods for each transcoding task, such as 1080p, 720p, etc. It shows configuring the jobs with specifications for parallelism, completions, and restart policies. The document also discusses using the Kubernetes client API to watch for job status changes in order to manage the transcoding workflow.
11. Worker Pod 1 Worker Pod 2 Worker Pod 3
vCPUx5, Mem 8GB vCPUx5, Mem 8GB vCPUx5, Mem 8GB
メタデータ生成
必要リソース小
240pトランスコード
必要リソース中
1080pトランスコード
必要リソース大
Kubernetes Node (vCPUx16, Mem 25GB)
16. Kubernetes
Worker Pod 1
use: vCPUx1, Mem “500Mi”
Worker Pod 2
use: vCPUx5, Mem “8Gi”
Node (vCPUx16, Mem 25GB)
…
Kubernetes
Worker Pod 2
use: vCPUx1, Mem “500Mi”
Worker Pod 1
use: vCPUx5, Mem “8Gi”
Node (vCPUx16, Mem 25GB)
…
17. Kubernetes
Worker Pod 1
use: vCPUx8, Mem 10GB
Worker Pod 2
use: vCPUx4, Mem 8GB
Worker Pod 3
use: vCPUx4, Mem 8GB
Worker Pod 4
use: vCPUx8, Mem 10GB
Node (vCPUx16, Mem 32GB)
Node Evict
18. Kubernetes
Worker Pod 1
use: vCPUx8, Mem 10GB
Worker Pod 2
use: vCPUx4, Mem 8GB
Worker Pod 3
use: vCPUx4, Mem 8GB
Worker Pod 4
use: vCPUx8, Mem 10GB
Node (vCPUx16, Mem 32GB)
Node Evict