Install Mediaserver LTS
All operations will be executed on VM1, unless an alternative is explicitly designated.
To install Mediaserver, follow these steps:
To prepare the configurations files for Mediaserver, run the scripts:
source ./k8s-onprem/sources.sh
./configure-mediaserver.sh ${MS1_IP}
Find the env file
.env.{IP address}.vsaas
and configure license information from your online or offline license:
ls -la ../mediaserver/
vim ../mediaserver/.env.${MS1_IP}.vsaas
Replace the
LICENSE_SOURCE
variable with the license URL (for online) or the license path (for offline):
# for ONLINE licensing
# LICENSE_SOURCE=<License URL>
# for OFFLINE licensing
# LICENSE_SOURCE=<Path to directory with license.json and public.key>
LICENSE_SOURCE=/etc/aipix/media-server
If an offline license is used, replace the license.json
and public.key
files in the ../mediaserver/
folder with the appropriate license files.
Optionally, replace the self-signed certificate with your own certificate (replace the key and certificate files keeping the same files names: cert.pem
and key.pem
). The path to the key and certificate files is ls -la ../mediaserver/
.
If you use self-signed certificates, add them to the list of trusted certificates on the client device to view video streams on the VMS web client.
To configure and deploy Mediaserver, run the script:
source ./k8s-onprem/sources.sh
./configure-mediaserver.sh ${MS1_IP} $(echo ${USER}) configure
./deploy-mediaserver.sh
Check the status of the Mediaserver container:
kubectl get all -n vsaas-ms
When Mediaserver is successfully installed, register it on VMS. For the detailed instructions, see this guide. This procedure requires a token. To obtain a token, run the following command on Mediaserver:
curl -k --location --request POST 'https://localhost:8080/api/auth/token/api/' --header 'Content-Type: application/json' \
--data-raw '{ "client": "client-unique-id", "duration": 946080000 }'