questions.yaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. groups:
  2. - name: Invidious Configuration
  3. description: Configure Invidious
  4. - name: Network Configuration
  5. description: Configure Network for Invidious
  6. - name: Storage Configuration
  7. description: Configure Storage for Invidious
  8. - name: Resources Configuration
  9. description: Configure Resources for Invidious
  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: invidiousConfig
  21. label: ""
  22. group: Invidious Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: admins
  27. label: Admins
  28. description: List of usernames that will be granted administrator rights.
  29. schema:
  30. type: list
  31. default: []
  32. items:
  33. - variable: admin
  34. label: Admin
  35. schema:
  36. type: string
  37. required: true
  38. - variable: registrationEnabled
  39. label: Registration Enabled
  40. description: Enable registration for Invidious.
  41. schema:
  42. type: boolean
  43. default: true
  44. - variable: loginEnabled
  45. label: Login Enabled
  46. description: Enable login for Invidious.
  47. schema:
  48. type: boolean
  49. default: true
  50. - variable: captchaEnabled
  51. label: Captcha Enabled
  52. description: Enable captcha for Invidious.
  53. schema:
  54. type: boolean
  55. default: true
  56. - variable: additionalEnvs
  57. label: Additional Environment Variables
  58. description: Configure additional environment variables for Invidious.
  59. schema:
  60. type: list
  61. default: []
  62. items:
  63. - variable: env
  64. label: Environment Variable
  65. schema:
  66. type: dict
  67. attrs:
  68. - variable: name
  69. label: Name
  70. schema:
  71. type: string
  72. required: true
  73. - variable: value
  74. label: Value
  75. schema:
  76. type: string
  77. required: true
  78. - variable: invidiousNetwork
  79. label: ""
  80. group: Network Configuration
  81. schema:
  82. type: dict
  83. attrs:
  84. - variable: webPort
  85. label: Web Port
  86. description: The port for the Invidious WebUI.
  87. schema:
  88. type: int
  89. default: 31008
  90. min: 9000
  91. max: 65535
  92. required: true
  93. - variable: invidiousStorage
  94. label: ""
  95. group: Storage Configuration
  96. schema:
  97. type: dict
  98. attrs:
  99. - variable: config
  100. label: Invidious Config Storage
  101. description: The path to store Invidious Configuration.
  102. schema:
  103. type: dict
  104. attrs:
  105. - variable: type
  106. label: Type
  107. description: |
  108. ixVolume: Is dataset created automatically by the system.</br>
  109. Host Path: Is a path that already exists on the system.
  110. schema:
  111. type: string
  112. required: true
  113. immutable: true
  114. default: "ixVolume"
  115. enum:
  116. - value: "hostPath"
  117. description: Host Path (Path that already exists on the system)
  118. - value: "ixVolume"
  119. description: ixVolume (Dataset created automatically by the system)
  120. - variable: ixVolumeConfig
  121. label: ixVolume Configuration
  122. description: The configuration for the ixVolume dataset.
  123. schema:
  124. type: dict
  125. show_if: [["type", "=", "ixVolume"]]
  126. $ref:
  127. - "normalize/ixVolume"
  128. attrs:
  129. - variable: aclEnable
  130. label: Enable ACL
  131. description: Enable ACL for the dataset.
  132. schema:
  133. type: boolean
  134. default: false
  135. - variable: datasetName
  136. label: Dataset Name
  137. description: The name of the dataset to use for storage.
  138. schema:
  139. type: string
  140. required: true
  141. immutable: true
  142. hidden: true
  143. default: "config"
  144. - variable: aclEntries
  145. label: ACL Configuration
  146. schema:
  147. type: dict
  148. show_if: [["aclEnable", "=", true]]
  149. attrs: []
  150. - variable: hostPathConfig
  151. label: Host Path Configuration
  152. schema:
  153. type: dict
  154. show_if: [["type", "=", "hostPath"]]
  155. attrs:
  156. - variable: aclEnable
  157. label: Enable ACL
  158. description: Enable ACL for the dataset.
  159. schema:
  160. type: boolean
  161. default: false
  162. - variable: acl
  163. label: ACL Configuration
  164. schema:
  165. type: dict
  166. show_if: [["aclEnable", "=", true]]
  167. attrs: []
  168. $ref:
  169. - "normalize/acl"
  170. - variable: hostPath
  171. label: Host Path
  172. description: The host path to use for storage.
  173. schema:
  174. type: hostpath
  175. show_if: [["aclEnable", "=", false]]
  176. required: true
  177. - variable: pgData
  178. label: Invidious Postgres Data Storage
  179. description: The path to store Invidious Postgres Data.
  180. schema:
  181. type: dict
  182. attrs:
  183. - variable: type
  184. label: Type
  185. description: |
  186. ixVolume: Is dataset created automatically by the system.</br>
  187. Host Path: Is a path that already exists on the system.
  188. schema:
  189. type: string
  190. required: true
  191. immutable: true
  192. default: ixVolume
  193. enum:
  194. - value: hostPath
  195. description: Host Path (Path that already exists on the system)
  196. - value: ixVolume
  197. description: ixVolume (Dataset created automatically by the system)
  198. - variable: ixVolumeConfig
  199. label: ixVolume Configuration
  200. description: The configuration for the ixVolume dataset.
  201. schema:
  202. type: dict
  203. # Nothing to show for the user
  204. hidden: true
  205. show_if: [["type", "=", "ixVolume"]]
  206. $ref:
  207. - "normalize/ixVolume"
  208. attrs:
  209. - variable: aclEnable
  210. label: Enable ACL
  211. description: Enable ACL for the dataset.
  212. schema:
  213. type: boolean
  214. # Postgres does a CHMOD at startup
  215. # Which fails with ACL
  216. hidden: true
  217. default: false
  218. - variable: datasetName
  219. label: Dataset Name
  220. description: The name of the dataset to use for storage.
  221. schema:
  222. type: string
  223. required: true
  224. immutable: true
  225. hidden: true
  226. default: "pgData"
  227. - variable: aclEntries
  228. label: ACL Configuration
  229. schema:
  230. type: dict
  231. show_if: [["aclEnable", "=", true]]
  232. attrs: []
  233. - variable: hostPathConfig
  234. label: Host Path Configuration
  235. schema:
  236. type: dict
  237. show_if: [["type", "=", "hostPath"]]
  238. attrs:
  239. - variable: aclEnable
  240. label: Enable ACL
  241. description: Enable ACL for the dataset.
  242. schema:
  243. type: boolean
  244. # Postgres does a CHMOD at startup
  245. # Which fails with ACL
  246. hidden: true
  247. default: false
  248. - variable: acl
  249. label: ACL Configuration
  250. schema:
  251. type: dict
  252. show_if: [["aclEnable", "=", true]]
  253. attrs: []
  254. $ref:
  255. - "normalize/acl"
  256. - variable: hostPath
  257. label: Host Path
  258. description: The host path to use for storage.
  259. schema:
  260. type: hostpath
  261. show_if: [["aclEnable", "=", false]]
  262. required: true
  263. - variable: pgBackup
  264. label: Invidious Postgres Backup Storage
  265. description: The path to store Invidious Postgres Backup.
  266. schema:
  267. type: dict
  268. attrs:
  269. - variable: type
  270. label: Type
  271. description: |
  272. ixVolume: Is dataset created automatically by the system.</br>
  273. Host Path: Is a path that already exists on the system.
  274. schema:
  275. type: string
  276. required: true
  277. immutable: true
  278. default: ixVolume
  279. enum:
  280. - value: hostPath
  281. description: Host Path (Path that already exists on the system)
  282. - value: ixVolume
  283. description: ixVolume (Dataset created automatically by the system)
  284. - variable: ixVolumeConfig
  285. label: ixVolume Configuration
  286. description: The configuration for the ixVolume dataset.
  287. schema:
  288. type: dict
  289. # Nothing to show for the user
  290. hidden: true
  291. show_if: [["type", "=", "ixVolume"]]
  292. $ref:
  293. - "normalize/ixVolume"
  294. attrs:
  295. - variable: aclEnable
  296. label: Enable ACL
  297. description: Enable ACL for the dataset.
  298. schema:
  299. type: boolean
  300. # Postgres does a CHMOD at startup
  301. # Which fails with ACL
  302. hidden: true
  303. default: false
  304. - variable: datasetName
  305. label: Dataset Name
  306. description: The name of the dataset to use for storage.
  307. schema:
  308. type: string
  309. required: true
  310. immutable: true
  311. hidden: true
  312. default: "pgBackup"
  313. - variable: aclEntries
  314. label: ACL Configuration
  315. schema:
  316. type: dict
  317. show_if: [["aclEnable", "=", true]]
  318. attrs: []
  319. - variable: hostPathConfig
  320. label: Host Path Configuration
  321. schema:
  322. type: dict
  323. show_if: [["type", "=", "hostPath"]]
  324. attrs:
  325. - variable: aclEnable
  326. label: Enable ACL
  327. description: Enable ACL for the dataset.
  328. schema:
  329. type: boolean
  330. # Postgres does a CHMOD at startup
  331. # Which fails with ACL
  332. hidden: true
  333. default: false
  334. - variable: acl
  335. label: ACL Configuration
  336. schema:
  337. type: dict
  338. show_if: [["aclEnable", "=", true]]
  339. attrs: []
  340. $ref:
  341. - "normalize/acl"
  342. - variable: hostPath
  343. label: Host Path
  344. description: The host path to use for storage.
  345. schema:
  346. type: hostpath
  347. show_if: [["aclEnable", "=", false]]
  348. required: true
  349. - variable: additionalStorages
  350. label: Additional Storage
  351. description: Additional storage for Invidious.
  352. schema:
  353. type: list
  354. default: []
  355. items:
  356. - variable: storageEntry
  357. label: Storage Entry
  358. schema:
  359. type: dict
  360. attrs:
  361. - variable: type
  362. label: Type
  363. description: |
  364. ixVolume: Is dataset created automatically by the system.</br>
  365. Host Path: Is a path that already exists on the system.</br>
  366. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  367. schema:
  368. type: string
  369. required: true
  370. default: "ixVolume"
  371. immutable: true
  372. enum:
  373. - value: "hostPath"
  374. description: Host Path (Path that already exists on the system)
  375. - value: "ixVolume"
  376. description: ixVolume (Dataset created automatically by the system)
  377. - value: "smb-pv-pvc"
  378. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  379. - variable: readOnly
  380. label: Read Only
  381. description: Mount the volume as read only.
  382. schema:
  383. type: boolean
  384. default: false
  385. - variable: mountPath
  386. label: Mount Path
  387. description: The path inside the container to mount the storage.
  388. schema:
  389. type: path
  390. required: true
  391. - variable: hostPathConfig
  392. label: Host Path Configuration
  393. schema:
  394. type: dict
  395. show_if: [["type", "=", "hostPath"]]
  396. attrs:
  397. - variable: aclEnable
  398. label: Enable ACL
  399. description: Enable ACL for the dataset.
  400. schema:
  401. type: boolean
  402. default: false
  403. - variable: acl
  404. label: ACL Configuration
  405. schema:
  406. type: dict
  407. show_if: [["aclEnable", "=", true]]
  408. attrs: []
  409. $ref:
  410. - "normalize/acl"
  411. - variable: hostPath
  412. label: Host Path
  413. description: The host path to use for storage.
  414. schema:
  415. type: hostpath
  416. show_if: [["aclEnable", "=", false]]
  417. required: true
  418. - variable: ixVolumeConfig
  419. label: ixVolume Configuration
  420. description: The configuration for the ixVolume dataset.
  421. schema:
  422. type: dict
  423. show_if: [["type", "=", "ixVolume"]]
  424. $ref:
  425. - "normalize/ixVolume"
  426. attrs:
  427. - variable: aclEnable
  428. label: Enable ACL
  429. description: Enable ACL for the dataset.
  430. schema:
  431. type: boolean
  432. default: false
  433. - variable: datasetName
  434. label: Dataset Name
  435. description: The name of the dataset to use for storage.
  436. schema:
  437. type: string
  438. required: true
  439. immutable: true
  440. default: "storage_entry"
  441. - variable: aclEntries
  442. label: ACL Configuration
  443. schema:
  444. type: dict
  445. show_if: [["aclEnable", "=", true]]
  446. attrs: []
  447. - variable: smbConfig
  448. label: SMB Share Configuration
  449. description: The configuration for the SMB Share.
  450. schema:
  451. type: dict
  452. show_if: [["type", "=", "smb-pv-pvc"]]
  453. attrs:
  454. - variable: server
  455. label: Server
  456. description: The server for the SMB share.
  457. schema:
  458. type: string
  459. required: true
  460. - variable: share
  461. label: Share
  462. description: The share name for the SMB share.
  463. schema:
  464. type: string
  465. required: true
  466. - variable: domain
  467. label: Domain (Optional)
  468. description: The domain for the SMB share.
  469. schema:
  470. type: string
  471. - variable: username
  472. label: Username
  473. description: The username for the SMB share.
  474. schema:
  475. type: string
  476. required: true
  477. - variable: password
  478. label: Password
  479. description: The password for the SMB share.
  480. schema:
  481. type: string
  482. required: true
  483. private: true
  484. - variable: size
  485. label: Size (in Gi)
  486. description: The size of the volume quota.
  487. schema:
  488. type: int
  489. required: true
  490. min: 1
  491. default: 1
  492. - variable: resources
  493. label: ""
  494. group: Resources Configuration
  495. schema:
  496. type: dict
  497. attrs:
  498. - variable: limits
  499. label: Limits
  500. schema:
  501. type: dict
  502. attrs:
  503. - variable: cpu
  504. label: CPU
  505. description: CPU limit for Invidious.
  506. schema:
  507. type: string
  508. max_length: 6
  509. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  510. valid_chars_error: |
  511. Valid CPU limit formats are</br>
  512. - Plain Integer - eg. 1</br>
  513. - Float - eg. 0.5</br>
  514. - Milicpu - eg. 500m
  515. default: "4000m"
  516. required: true
  517. - variable: memory
  518. label: Memory
  519. description: Memory limit for Invidious.
  520. schema:
  521. type: string
  522. max_length: 12
  523. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  524. valid_chars_error: |
  525. Valid Memory limit formats are</br>
  526. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  527. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  528. - Plain Integer in bytes - eg. 1024</br>
  529. - Exponent - eg. 134e6
  530. default: "8Gi"
  531. required: true