questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. groups:
  2. - name: Frigate Configuration
  3. description: Configure Frigate
  4. - name: Network Configuration
  5. description: Configure Network for Frigate
  6. - name: Storage Configuration
  7. description: Configure Storage for Frigate
  8. - name: Resources Configuration
  9. description: Configure Resources for Frigate
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "$kubernetes-resource_configmap_portal_protocol"
  14. host:
  15. - "$kubernetes-resource_configmap_portal_host"
  16. ports:
  17. - "$kubernetes-resource_configmap_portal_port"
  18. path: "$kubernetes-resource_configmap_portal_path"
  19. questions:
  20. - variable: frigateConfig
  21. label: ""
  22. group: Frigate Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: mountUSBBus
  27. label: Mount USB Bus
  28. description: |
  29. Mount the USB bus to the container.</br>
  30. This is required if you want to use USB devices, like Coral</br>
  31. This will mount the USB bus to /dev/bus/usb inside the container.
  32. schema:
  33. type: boolean
  34. default: false
  35. - variable: additionalEnvs
  36. label: Additional Environment Variables
  37. description: Configure additional environment variables for Frigate.
  38. schema:
  39. type: list
  40. default: []
  41. items:
  42. - variable: env
  43. label: Environment Variable
  44. schema:
  45. type: dict
  46. attrs:
  47. - variable: name
  48. label: Name
  49. schema:
  50. type: string
  51. required: true
  52. - variable: value
  53. label: Value
  54. schema:
  55. type: string
  56. required: true
  57. - variable: frigateNetwork
  58. label: ""
  59. group: Network Configuration
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: hostNetwork
  64. label: Host Network
  65. description: |
  66. Bind to the host network. It's recommended to keep this disabled.</br>
  67. schema:
  68. type: boolean
  69. default: false
  70. show_subquestions_if: false
  71. subquestions:
  72. - variable: webPort
  73. label: Web Port
  74. description: |
  75. The port for the Frigate Web UI.</br>
  76. Internal port: 5000
  77. schema:
  78. type: int
  79. default: 30058
  80. min: 9000
  81. max: 65535
  82. required: true
  83. - variable: enableRtmp
  84. label: Enable RTMP
  85. description: Enable RTMP for Frigate.
  86. schema:
  87. type: boolean
  88. default: false
  89. - variable: rtmpPort
  90. label: RTMP Port
  91. description: |
  92. The RTMP port for Frigate.</br>
  93. Internal port: 1935
  94. schema:
  95. type: int
  96. default: 30059
  97. show_if: [["enableRtmp", "=", true]]
  98. min: 9000
  99. max: 65535
  100. required: true
  101. - variable: enableRtsp
  102. label: Enable RTSP
  103. description: Enable RTSP for Frigate.
  104. schema:
  105. type: boolean
  106. default: false
  107. - variable: rtspPort
  108. label: RTSP Port
  109. description: |
  110. The RTSP port for Frigate.</br>
  111. Internal port: 8554
  112. schema:
  113. type: int
  114. default: 30060
  115. show_if: [["enableRtsp", "=", true]]
  116. min: 9000
  117. max: 65535
  118. required: true
  119. - variable: enableWebRtc
  120. label: Enable WebRTC
  121. description: Enable WebRTC for Frigate.
  122. schema:
  123. type: boolean
  124. default: false
  125. - variable: webRtcPort
  126. label: WebRTC Port
  127. description: |
  128. The WebRTC port for Frigate.</br>
  129. Internal port: 8555</br>
  130. Applies to both TCP and UDP.
  131. schema:
  132. type: int
  133. default: 30061
  134. show_if: [["enableWebRtc", "=", true]]
  135. min: 9000
  136. max: 65535
  137. required: true
  138. - variable: frigateStorage
  139. label: ""
  140. group: Storage Configuration
  141. schema:
  142. type: dict
  143. attrs:
  144. - variable: config
  145. label: Frigate Config Storage
  146. description: The path to store Frigate Configuration.
  147. schema:
  148. type: dict
  149. attrs:
  150. - variable: type
  151. label: Type
  152. description: |
  153. ixVolume: Is dataset created automatically by the system.</br>
  154. Host Path: Is a path that already exists on the system.
  155. schema:
  156. type: string
  157. required: true
  158. immutable: true
  159. default: "ixVolume"
  160. enum:
  161. - value: "hostPath"
  162. description: Host Path (Path that already exists on the system)
  163. - value: "ixVolume"
  164. description: ixVolume (Dataset created automatically by the system)
  165. - variable: datasetName
  166. label: Dataset Name
  167. schema:
  168. type: string
  169. show_if: [["type", "=", "ixVolume"]]
  170. required: true
  171. hidden: true
  172. immutable: true
  173. default: "config"
  174. $ref:
  175. - "normalize/ixVolume"
  176. - variable: hostPath
  177. label: Host Path
  178. schema:
  179. type: hostpath
  180. show_if: [["type", "=", "hostPath"]]
  181. immutable: true
  182. required: true
  183. - variable: media
  184. label: Frigate Media Storage
  185. description: The path to store Frigate Media.
  186. schema:
  187. type: dict
  188. attrs:
  189. - variable: type
  190. label: Type
  191. description: |
  192. ixVolume: Is dataset created automatically by the system.</br>
  193. Host Path: Is a path that already exists on the system.
  194. schema:
  195. type: string
  196. required: true
  197. immutable: true
  198. default: "ixVolume"
  199. enum:
  200. - value: "hostPath"
  201. description: Host Path (Path that already exists on the system)
  202. - value: "ixVolume"
  203. description: ixVolume (Dataset created automatically by the system)
  204. - variable: datasetName
  205. label: Dataset Name
  206. schema:
  207. type: string
  208. show_if: [["type", "=", "ixVolume"]]
  209. required: true
  210. hidden: true
  211. immutable: true
  212. default: "config"
  213. $ref:
  214. - "normalize/ixVolume"
  215. - variable: hostPath
  216. label: Host Path
  217. schema:
  218. type: hostpath
  219. show_if: [["type", "=", "hostPath"]]
  220. immutable: true
  221. required: true
  222. - variable: cache
  223. label: Frigate Cache Storage
  224. schema:
  225. type: dict
  226. attrs:
  227. - variable: sizeGiB
  228. label: Size (GiB)
  229. description: The size of RAM is allowed to Frigate to use as cache
  230. schema:
  231. type: int
  232. max: 4
  233. default: 1
  234. required: true
  235. - variable: shm
  236. label: Frigate /dev/shm Storage
  237. schema:
  238. type: dict
  239. attrs:
  240. - variable: sizeMiB
  241. label: Size (MiB)
  242. description: |
  243. The size of RAM is allowed to Frigate to use as /dev/shm</br>
  244. https://docs.frigate.video/frigate/installation/#calculating-required-shm-size
  245. schema:
  246. type: int
  247. max: 2048
  248. default: 64
  249. required: true
  250. - variable: additionalStorages
  251. label: Additional Storage
  252. description: Additional storage for Frigate.
  253. schema:
  254. type: list
  255. default: []
  256. items:
  257. - variable: storageEntry
  258. label: Storage Entry
  259. schema:
  260. type: dict
  261. attrs:
  262. - variable: type
  263. label: Type
  264. description: |
  265. ixVolume: Is dataset created automatically by the system.</br>
  266. Host Path: Is a path that already exists on the system.</br>
  267. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  268. schema:
  269. type: string
  270. required: true
  271. default: "ixVolume"
  272. immutable: true
  273. enum:
  274. - value: "hostPath"
  275. description: Host Path (Path that already exists on the system)
  276. - value: "ixVolume"
  277. description: ixVolume (Dataset created automatically by the system)
  278. - value: "smb-pv-pvc"
  279. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  280. - variable: mountPath
  281. label: Mount Path
  282. description: The path inside the container to mount the storage.
  283. schema:
  284. type: path
  285. required: true
  286. - variable: hostPath
  287. label: Host Path
  288. description: The host path to use for storage.
  289. schema:
  290. type: hostpath
  291. show_if: [["type", "=", "hostPath"]]
  292. required: true
  293. - variable: datasetName
  294. label: Dataset Name
  295. description: The name of the dataset to use for storage.
  296. schema:
  297. type: string
  298. show_if: [["type", "=", "ixVolume"]]
  299. required: true
  300. immutable: true
  301. default: "storage_entry"
  302. $ref:
  303. - "normalize/ixVolume"
  304. - variable: server
  305. label: Server
  306. description: The server for the SMB share.
  307. schema:
  308. type: string
  309. show_if: [["type", "=", "smb-pv-pvc"]]
  310. required: true
  311. - variable: share
  312. label: Share
  313. description: The share name for the SMB share.
  314. schema:
  315. type: string
  316. show_if: [["type", "=", "smb-pv-pvc"]]
  317. required: true
  318. - variable: domain
  319. label: Domain (Optional)
  320. description: The domain for the SMB share.
  321. schema:
  322. type: string
  323. show_if: [["type", "=", "smb-pv-pvc"]]
  324. - variable: username
  325. label: Username
  326. description: The username for the SMB share.
  327. schema:
  328. type: string
  329. show_if: [["type", "=", "smb-pv-pvc"]]
  330. required: true
  331. - variable: password
  332. label: Password
  333. description: The password for the SMB share.
  334. schema:
  335. type: string
  336. show_if: [["type", "=", "smb-pv-pvc"]]
  337. required: true
  338. private: true
  339. - variable: size
  340. label: Size (in Gi)
  341. description: The size of the volume quota.
  342. schema:
  343. type: int
  344. show_if: [["type", "=", "smb-pv-pvc"]]
  345. required: true
  346. min: 1
  347. default: 1
  348. - variable: resources
  349. group: Resources Configuration
  350. label: ""
  351. schema:
  352. type: dict
  353. attrs:
  354. - variable: limits
  355. label: Limits
  356. schema:
  357. type: dict
  358. attrs:
  359. - variable: cpu
  360. label: CPU
  361. description: CPU limit for Frigate.
  362. schema:
  363. type: string
  364. max_length: 6
  365. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  366. valid_chars_error: |
  367. Valid CPU limit formats are</br>
  368. - Plain Integer - eg. 1</br>
  369. - Float - eg. 0.5</br>
  370. - Milicpu - eg. 500m
  371. default: "4000m"
  372. required: true
  373. - variable: memory
  374. label: Memory
  375. description: Memory limit for Frigate.
  376. schema:
  377. type: string
  378. max_length: 12
  379. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  380. valid_chars_error: |
  381. Valid Memory limit formats are</br>
  382. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  383. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  384. - Plain Integer in bytes - eg. 1024</br>
  385. - Exponent - eg. 134e6
  386. default: "8Gi"
  387. required: true
  388. - variable: frigateGPU
  389. group: Resources Configuration
  390. label: GPU Configuration
  391. schema:
  392. type: dict
  393. $ref:
  394. - "definitions/gpuConfiguration"
  395. attrs: []