The Ad-Insertion sample can be deployed with Kubernetes.
- Follow the instructions to setup your Kubernetes cluster.
- All cluster nodes must have the same user (uid) and group (gid).
- Setup password-less access from the Kubernetes controller to each worker node (required by
make update
andmake volume
):
ssh-keygen
ssh-copy-id <worker-node>
- Start/stop services as follows:
mkdir build
cd build
cmake ..
make
make update
make volume
make start_kubernetes
make stop_kubernetes
- The
make update
command uploads the sample images to each worker node. If you prefer to use a private docker registry, replace with your instructions to upload the images to your docker registry. - The
make volume
command creates local persistent volumes under the/tmp
directory of the first two Kubernetes workers. This is a temporary solution for quick sample deployment. For scalability beyond a two-node cluster, consider rewriting the following persistent volume scripts:- AD Archive: Store the original AD content.
- AD Static: Store the fallback AD content.
- AD Cache: Store the per-user transcoded DASH/HLS AD content.
- Video Archive: Store the original video content.
- Video Cache: Store the transcoded DASH/HLS video content.