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-mse.sh ${MS1_IP}
-
Find the
envfile.env.{IP address}.vsaasand configure license information from your online or offline license:
ls -la ../mse/
vim ../mse/server.json.${MS1_IP}.vsaas
-
Replace the
<url or path to license files>variable with:-
for online – the license URL
-
for offline – the license path
/etc/vsaas/license
-
"license": "<url or path to license files>",
If an offline license is used, replace the license.json and public.key files in the ../mse/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 ../mse/.
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-mse.sh ${MS1_IP} $(echo ${USER}) configure
./deploy-mse.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 --request POST --url 'https://localhost:8665/api/' -H 'Content-Length: 114' -H 'Content-Type: application/json' -H 'Accept: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "Auth.CreateApiToken",
"params": {
"ttl": 0
},
"id": 1
}'