Skip to content

Deploy on VCA2 with Gen GFX using Kubernetes

Zhizhen Tang edited this page Jan 14, 2020 · 1 revision

Enable VCA2 (Card 0 CPU 0 for Example)

On CDN-Transcode Server, run below command to start VCA2:
Note: Please get vcad file from the VCA2 card owner.

$ vcactl blockio open 0 0 vcablk0 RW vca_disk30_reference_k4.19_ubuntu18.04_5.7.1-0.vcad
$ vcactl wait-BIOS
$ vcactl boot 0 0 vcablk0
$ vcactl status
Card: 0 Cpu: 0 STATE: net_device_ready

If the status is not "net_device_ready", please boot again.

Get IP of Card 0 Cpu 0

On CDN-Transcode Server, run below command to get the IP of Card 0 Cpu 0:

$ vcactl network ip
Card 0 Cpu 0:
172.31.1.1

Set up VCA2 Network

On CDN-Transcode Server, run below command to enable VCA2 network:

$ script/enable_nat.sh

Modify the VCA2 Card 0 Cpu 0's node name

On CDN-Transcode Server, run below command to modify node name and reboot:

$ vcactl config 0 0 node-name vca-node00-k8s
$ vcactl reboot 0 0 vcablk0
$ vcactl status
Card: 0 Cpu: 0 STATE: net_device_ready

If the status is not "net_device_ready", please boot again.

Enable Intel GPU plugin on VCA2

On CDN-Transcode Server, run below command to login VCA2

Note: password is vista1

Verify kubelet socket exists in /var/lib/kubelet/device-plugins/ directory

On VCA2, run below command to verify socket:

$ ls /var/lib/kubelet/device-plugins/kubelet.sock
/var/lib/kubelet/device-plugins/kubelet.sock

Build and run intel gpu plugin

On VCA2, run below command to enable gpu plugin:

$ script/enable_gpu_plugin.sh
$ /usr/local/go/src/github.com/intel/intel-device-plugins-for-kubernetes/cmd/gpu_plugin/gpu_plugin
GPU device plugin started
Start server for i915 at: /var/lib/kubelet/device-plugins/gpu.intel.com-i915.sock
Device plugin for i915 registered

Verify GPU device plugin is registered

On CDN-Transcode Server, run below command to check GPU plugin is registered on VCA2:

$ kubectl describe node | grep gpu.intel.com
gpu.intel.com/i915:  1
gpu.intel.com/i915:  1
 gpu.intel.com/i915  0          0

Start CDN transcode service

On CDN-Transcode Server, run below command to start deployment:

cd build
make start_kubernetes

Note:

  • This command must be run as root.
  • Make sure Kubenetes is built successfully on all the nodes.

Playback

Web browser playback

Visit https://<CDN-Transcode Server IP address>/ using web browser, you will see the playlist and then click any of the streams in the playlist to playback.

VLC playback

You can also use Windows VLC player to playback the HTTPs streams provided by the sample service. please run below commands.

vlc https://<CDN-Transcode Server IP address>/hls/big_buck_bunny_1280x720_0/index.m3u8
Clone this wiki locally