Continuously record videos

I have 3 camera installed, I can see them on my home assistant, All cameras connected via rstp. I want record all 3 camera continuously 24*7. But each video recording to be :

  • 5min chunk
  • 48h loop over write
  • disk quota 500gb
    How can I do/setup this? My home assistant is running on kube/pod i.e container.