Skip to content
Andrea Araldo edited this page Sep 11, 2020 · 8 revisions

These are the steps we follow to deploy our instance of the CDN. They are all taken from the original project's documentation.

Requirements

We are using an Ubuntu Server 18.04 virtual machine with 8 cpu cores, 8GB of RAM and no graphics card. We are executing these steps from a sudo-authorized user named media, created by the root user like so.

adduser media
  [indicate password and user info]
adduser media sudo

Setup CDN environment

0. Clone the repository

We did it from the user's directory (/home/media).

git clone git@github.com:Ressource-Allocation/CDN-Transcode-Sample.git

1. Install the third-party dependency libraries and tools

cd ~/CDN-Transcode-Sample
sudo -E ./script/install_dependency.sh

If this does not work, try to manually install Docker, before launching the commands above.

2. Build

This may take a while.

cd ~/CDN-Transcode-Sample
mkdir build && cd build
cmake ..
make

Deploy

0. Setup Kubernetes master node

cd ~/CDN-Transcode-Sample
sudo -E ./script/Kubernetes_setup_master.sh
sudo sed -i '/- kube-apiserver/a\\    - --service-node-port-range=1-65535' /etc/kubernetes/manifests/kube-apiserver.yaml
mkdir ~/.kube &>/dev/null
sudo chown -R $USER:$USER ~/.kube/

1. Start the service

cd ~/CDN-Transcode-Sample/build
sudo make start_kubernetes

The output we got from these operations can be found here.

2. Stop the service

cd ~/CDN-Transcode-Sample/build
sudo make stop_kubernetes

AA: The information about how to launch the CDN and play a video is missing

Clone this wiki locally