Kerebos.io Agent

Has anyone succesfully set up kerebos.io agent on TrueNAS Scale. I ask because I cannot find any information on how to set it up on Scale. Ideally I am looking for detailed instructions

If someone could point me in the right direction.

Who ever put the link up, it doesn’t work. Server not found

you could try it with the official docker-compose file they provide and the custom app yaml function

services:
  kerberos-agent1:
    image: "kerberos/agent:latest"
    ports:
      - "8082:80"
    environment:
      - AGENT_NAME=agent1
      - AGENT_CAPTURE_IPCAMERA_RTSP=rtsp://x.x.x.x:554/Streaming/Channels/101
      - AGENT_HUB_KEY=yyy
      - AGENT_HUB_PRIVATE_KEY=yyy
    volumes:
      - /mnt/poolname/datasetname/agent1/config:/data/config  # replace /mnt/poolname/datasetname with the path on your nas
      - /mnt/poolname/datasetname/agent1/recordings:/data/recordings  # replace /mnt/poolname/datasetname with the path on your nas
x-portals:
  - host: 0.0.0.0  # replace 0.0.0.0 with your truenas's ip
    name: "Web UI"
    path: /
    port: 8082
    scheme: http

Thanks, but my knowledge of docker-compose files are next to nil.

Do get that and the yaml file from their website

When i’m home from work i can write up a guide in a bit more detail, but it’ll be around 2-3 hours until i can get to it.

Ok i tried and got it working with the following steps:

  1. Create a Dataset on your storage pool for persitent app storage (preferably on an ssd pool) with the apps preset. I created a dataset called “test” for you i’d propably call it kerberos-io-agent or something similar to your liking.
  2. I used the yaml i provided in my first post, adjusted the storage path so that it points to the dataset i created in step one
    In the yaml you should replace the /poolname/datasetname with the actual path on your Pool.
  3. use an ssh session and navigate to the config folder on your pool. Inside the config folder you have to manually create the config file with
sudo touch config.json

and then edit the config file with

sudo nano config.json

copy the content of this link

https://raw.githubusercontent.com/kerberos-io/agent/master/machinery/data/config/config.json

into the config.json and save it.

  1. In the truenas webui go to the apps section and click on the big blue button Discover Apps in the top right corner. Again in the top right corner of the screen click on the three dots next to the big blug “custom app” button. Select “Install via yaml”. copy the yaml below into the window, Edit the storage paths to the ones you’ve created in step 1 hit save and it should start
services:
  kerberos-agent1:
    image: kerberos/agent:latest
    ports:
      - '8082:80'
    environment:
      - AGENT_NAME=agent1
      - AGENT_CAPTURE_IPCAMERA_RTSP=rtsp://x.x.x.x:554/Streaming/Channels/101
      - AGENT_HUB_KEY=yyy
      - AGENT_HUB_PRIVATE_KEY=yyy
    volumes:
      - /mnt/Plugins/test/agent1/config:/data/config  #change /mnt/Plugins/test to the path on your pool!!!!!
      - /mnt/Plugins/test/agent1/recordings:/data/recordings
x-portals:
  - host: 0.0.0.0 #change 0.0.0.0 to your truenas's ip
    name: Web UI
    path: /
    port: 8082
    scheme: http

I don’t have cameras to test so i don’t know what have to be set for the env variables…
With the steps above i was able to launch it successfully

If you need more agents create separate apps for each one and change the port from 8082 to 8083 and so on (don’t forget the webportal port)
Each agent needs a unique port number.