questions.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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. default: "ixVolume"
  159. enum:
  160. - value: "hostPath"
  161. description: Host Path (Path that already exists on the system)
  162. - value: "ixVolume"
  163. description: ixVolume (Dataset created automatically by the system)
  164. - variable: datasetName
  165. label: Dataset Name
  166. schema:
  167. type: string
  168. show_if: [["type", "=", "ixVolume"]]
  169. required: true
  170. hidden: true
  171. immutable: true
  172. default: "config"
  173. $ref:
  174. - "normalize/ixVolume"
  175. - variable: hostPath
  176. label: Host Path
  177. schema:
  178. type: hostpath
  179. show_if: [["type", "=", "hostPath"]]
  180. immutable: true
  181. required: true
  182. - variable: media
  183. label: Frigate Media Storage
  184. description: The path to store Frigate Media.
  185. schema:
  186. type: dict
  187. attrs:
  188. - variable: type
  189. label: Type
  190. description: |
  191. ixVolume: Is dataset created automatically by the system.</br>
  192. Host Path: Is a path that already exists on the system.
  193. schema:
  194. type: string
  195. required: true
  196. default: "ixVolume"
  197. enum:
  198. - value: "hostPath"
  199. description: Host Path (Path that already exists on the system)
  200. - value: "ixVolume"
  201. description: ixVolume (Dataset created automatically by the system)
  202. - variable: datasetName
  203. label: Dataset Name
  204. schema:
  205. type: string
  206. show_if: [["type", "=", "ixVolume"]]
  207. required: true
  208. hidden: true
  209. immutable: true
  210. default: "config"
  211. $ref:
  212. - "normalize/ixVolume"
  213. - variable: hostPath
  214. label: Host Path
  215. schema:
  216. type: hostpath
  217. show_if: [["type", "=", "hostPath"]]
  218. immutable: true
  219. required: true
  220. - variable: cache
  221. label: Frigate Cache Storage
  222. schema:
  223. type: dict
  224. attrs:
  225. - variable: sizeGiB
  226. label: Size (GiB)
  227. description: The size of RAM is allowed to Frigate to use as cache
  228. schema:
  229. type: int
  230. max: 4
  231. default: 1
  232. required: true
  233. - variable: shm
  234. label: Frigate /dev/shm Storage
  235. schema:
  236. type: dict
  237. attrs:
  238. - variable: sizeMiB
  239. label: Size (MiB)
  240. description: |
  241. The size of RAM is allowed to Frigate to use as /dev/shm</br>
  242. https://docs.frigate.video/frigate/installation/#calculating-required-shm-size
  243. schema:
  244. type: int
  245. max: 2048
  246. default: 64
  247. required: true
  248. - variable: additionalStorages
  249. label: Additional Storage
  250. description: Additional storage for Frigate.
  251. schema:
  252. type: list
  253. default: []
  254. items:
  255. - variable: storageEntry
  256. label: Storage Entry
  257. schema:
  258. type: dict
  259. attrs:
  260. - variable: type
  261. label: Type
  262. description: |
  263. ixVolume: Is dataset created automatically by the system.</br>
  264. Host Path: Is a path that already exists on the system.
  265. schema:
  266. type: string
  267. required: true
  268. default: "ixVolume"
  269. enum:
  270. - value: "hostPath"
  271. description: Host Path (Path that already exists on the system)
  272. - value: "ixVolume"
  273. description: ixVolume (Dataset created automatically by the system)
  274. - variable: mountPath
  275. label: Mount Path
  276. description: The path inside the container to mount the storage.
  277. schema:
  278. type: path
  279. required: true
  280. - variable: hostPath
  281. label: Host Path
  282. description: The host path to use for storage.
  283. schema:
  284. type: hostpath
  285. show_if: [["type", "=", "hostPath"]]
  286. required: true
  287. - variable: datasetName
  288. label: Dataset Name
  289. description: The name of the dataset to use for storage.
  290. schema:
  291. type: string
  292. show_if: [["type", "=", "ixVolume"]]
  293. required: true
  294. immutable: true
  295. default: "storage_entry"
  296. $ref:
  297. - "normalize/ixVolume"
  298. - variable: resources
  299. group: Resources Configuration
  300. label: ""
  301. schema:
  302. type: dict
  303. attrs:
  304. - variable: limits
  305. label: Limits
  306. schema:
  307. type: dict
  308. attrs:
  309. - variable: cpu
  310. label: CPU
  311. description: CPU limit for Frigate.
  312. schema:
  313. type: string
  314. max_length: 6
  315. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  316. valid_chars_error: |
  317. Valid CPU limit formats are</br>
  318. - Plain Integer - eg. 1</br>
  319. - Float - eg. 0.5</br>
  320. - Milicpu - eg. 500m
  321. default: "4000m"
  322. required: true
  323. - variable: memory
  324. label: Memory
  325. description: Memory limit for Frigate.
  326. schema:
  327. type: string
  328. max_length: 12
  329. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  330. valid_chars_error: |
  331. Valid Memory limit formats are</br>
  332. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  333. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  334. - Plain Integer in bytes - eg. 1024</br>
  335. - Exponent - eg. 134e6
  336. default: "8Gi"
  337. required: true
  338. - variable: frigateGPU
  339. group: Resources Configuration
  340. label: GPU Configuration
  341. schema:
  342. type: dict
  343. $ref:
  344. - "definitions/gpuConfiguration"
  345. attrs: []