Skip to content

Add a new server

Sequence of steps:

  1. Install the OS
  2. Partition and mount disks
  3. Join the Kubernetes cluster
  4. Add the new streamer definition

OS installation

Install Ubuntu Server 24.04 on the server.

You must configure the hostname correctly on this server before adding it to the cluster; changing the server name later will not be possible.

Disk layout

On a TV streaming server you may have dedicated disks for the archive. This step is only needed when you are setting up many disks for archive storage.

Mount disks as subdirectories under one directory:

/storage/disk1
/storage/disk2
/storage/disk3

Add disks to the streamer definition in the configuration file catena-se.yaml:

streamers:
  hosts:
  - name: s2
    node: streamer2
    disks:
    - path: disk1
    - path: disk2
    - path: disk3

Join the cluster

To join you will need the secret token stored on the first server at /var/lib/rancher/k3s/server/node-token:

sudo cat /var/lib/rancher/k3s/server/node-token

private_ip is the IP address by which the first cluster server is reachable from the new one. It can be a private IP.

curl -sfL https://get.k3s.io | sh -s - agent -t ${token} --server https://${private_ip}:6443

Add the new streamer

Next, add this streamer definition to catena-se.yaml on the first server:

streamers:
  hosts:
    ...
    - node: streamer2
      host: s2.mystreamingservice.com

You may have already started adding this entry above, in the disk section.

Then apply the configuration:

curl -sfL https://flussonic.ru/doc/catena-se/install.sh | sh -s - app --values ./catena-se.yaml