questions.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. groups:
  2. - name: Audiobookshelf Configuration
  3. description: Configure Audiobookshelf
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Audiobookshelf
  6. - name: Network Configuration
  7. description: Configure Network for Audiobookshelf
  8. - name: Storage Configuration
  9. description: Configure Storage for Audiobookshelf
  10. - name: Resources Configuration
  11. description: Configure Resources for Audiobookshelf
  12. portals:
  13. web_portal:
  14. protocols:
  15. - "$kubernetes-resource_configmap_portal_protocol"
  16. host:
  17. - "$kubernetes-resource_configmap_portal_host"
  18. ports:
  19. - "$kubernetes-resource_configmap_portal_port"
  20. path: "$kubernetes-resource_configmap_portal_path"
  21. questions:
  22. - variable: TZ
  23. group: Audiobookshelf Configuration
  24. label: Timezone
  25. schema:
  26. type: string
  27. default: Etc/UTC
  28. required: true
  29. $ref:
  30. - definitions/timezone
  31. - variable: audiobookshelfConfig
  32. label: ""
  33. group: Audiobookshelf Configuration
  34. schema:
  35. type: dict
  36. attrs:
  37. - variable: additionalEnvs
  38. label: Additional Environment Variables
  39. description: Configure additional environment variables for Audiobookshelf.
  40. schema:
  41. type: list
  42. default: []
  43. items:
  44. - variable: env
  45. label: Environment Variable
  46. schema:
  47. type: dict
  48. attrs:
  49. - variable: name
  50. label: Name
  51. schema:
  52. type: string
  53. required: true
  54. - variable: value
  55. label: Value
  56. schema:
  57. type: string
  58. required: true
  59. - variable: audiobookshelfRunAs
  60. label: ""
  61. group: User and Group Configuration
  62. schema:
  63. type: dict
  64. attrs:
  65. - variable: user
  66. label: User ID
  67. description: The user id that Audiobookshelf will run as.
  68. schema:
  69. type: int
  70. min: 2
  71. default: 568
  72. required: true
  73. - variable: group
  74. label: Group ID
  75. description: The group id that Audiobookshelf will run as.
  76. schema:
  77. type: int
  78. min: 2
  79. default: 568
  80. required: true
  81. - variable: audiobookshelfNetwork
  82. label: ""
  83. group: Network Configuration
  84. schema:
  85. type: dict
  86. attrs:
  87. - variable: webPort
  88. label: Web Port
  89. description: The port for the Audiobookshelf Web UI.
  90. schema:
  91. type: int
  92. default: 30067
  93. min: 9000
  94. max: 65535
  95. required: true
  96. - variable: hostNetwork
  97. label: Host Network
  98. description: |
  99. Bind to the host network. It's recommended to keep this disabled.</br>
  100. schema:
  101. type: boolean
  102. default: false
  103. - variable: audiobookshelfStorage
  104. label: ""
  105. group: Storage Configuration
  106. schema:
  107. type: dict
  108. attrs:
  109. - variable: config
  110. label: Audiobookshelf Config Storage
  111. description: The path to store Audiobookshelf Configuration and Database.
  112. schema:
  113. type: dict
  114. attrs:
  115. - variable: type
  116. label: Type
  117. description: |
  118. ixVolume: Is dataset created automatically by the system.</br>
  119. Host Path: Is a path that already exists on the system.
  120. schema:
  121. type: string
  122. required: true
  123. immutable: true
  124. default: "ixVolume"
  125. enum:
  126. - value: "hostPath"
  127. description: Host Path (Path that already exists on the system)
  128. - value: "ixVolume"
  129. description: ixVolume (Dataset created automatically by the system)
  130. - variable: ixVolumeConfig
  131. label: ixVolume Configuration
  132. description: The configuration for the ixVolume dataset.
  133. schema:
  134. type: dict
  135. show_if: [["type", "=", "ixVolume"]]
  136. $ref:
  137. - "normalize/ixVolume"
  138. attrs:
  139. - variable: aclEnable
  140. label: Enable ACL
  141. description: Enable ACL for the dataset.
  142. schema:
  143. type: boolean
  144. default: false
  145. - variable: datasetName
  146. label: Dataset Name
  147. description: The name of the dataset to use for storage.
  148. schema:
  149. type: string
  150. required: true
  151. immutable: true
  152. hidden: true
  153. default: "config"
  154. - variable: aclEntries
  155. label: ACL Configuration
  156. schema:
  157. type: dict
  158. show_if: [["aclEnable", "=", true]]
  159. attrs: []
  160. - variable: hostPathConfig
  161. label: Host Path Configuration
  162. schema:
  163. type: dict
  164. show_if: [["type", "=", "hostPath"]]
  165. attrs:
  166. - variable: aclEnable
  167. label: Enable ACL
  168. description: Enable ACL for the dataset.
  169. schema:
  170. type: boolean
  171. default: false
  172. - variable: acl
  173. label: ACL Configuration
  174. schema:
  175. type: dict
  176. show_if: [["aclEnable", "=", true]]
  177. attrs: []
  178. $ref:
  179. - "normalize/acl"
  180. - variable: hostPath
  181. label: Host Path
  182. description: The host path to use for storage.
  183. schema:
  184. type: hostpath
  185. show_if: [["aclEnable", "=", false]]
  186. required: true
  187. - variable: metadata
  188. label: Audiobookshelf Metadata Storage
  189. description: The path to store Audiobookshelf cache, streams, covers, downloads, backups and logs.
  190. schema:
  191. type: dict
  192. attrs:
  193. - variable: type
  194. label: Type
  195. description: |
  196. ixVolume: Is dataset created automatically by the system.</br>
  197. Host Path: Is a path that already exists on the system.
  198. schema:
  199. type: string
  200. required: true
  201. immutable: true
  202. default: "ixVolume"
  203. enum:
  204. - value: "hostPath"
  205. description: Host Path (Path that already exists on the system)
  206. - value: "ixVolume"
  207. description: ixVolume (Dataset created automatically by the system)
  208. - variable: ixVolumeConfig
  209. label: ixVolume Configuration
  210. description: The configuration for the ixVolume dataset.
  211. schema:
  212. type: dict
  213. show_if: [["type", "=", "ixVolume"]]
  214. $ref:
  215. - "normalize/ixVolume"
  216. attrs:
  217. - variable: aclEnable
  218. label: Enable ACL
  219. description: Enable ACL for the dataset.
  220. schema:
  221. type: boolean
  222. default: false
  223. - variable: datasetName
  224. label: Dataset Name
  225. description: The name of the dataset to use for storage.
  226. schema:
  227. type: string
  228. required: true
  229. immutable: true
  230. hidden: true
  231. default: "metadata"
  232. - variable: aclEntries
  233. label: ACL Configuration
  234. schema:
  235. type: dict
  236. show_if: [["aclEnable", "=", true]]
  237. attrs: []
  238. - variable: hostPathConfig
  239. label: Host Path Configuration
  240. schema:
  241. type: dict
  242. show_if: [["type", "=", "hostPath"]]
  243. attrs:
  244. - variable: aclEnable
  245. label: Enable ACL
  246. description: Enable ACL for the dataset.
  247. schema:
  248. type: boolean
  249. default: false
  250. - variable: acl
  251. label: ACL Configuration
  252. schema:
  253. type: dict
  254. show_if: [["aclEnable", "=", true]]
  255. attrs: []
  256. $ref:
  257. - "normalize/acl"
  258. - variable: hostPath
  259. label: Host Path
  260. description: The host path to use for storage.
  261. schema:
  262. type: hostpath
  263. show_if: [["aclEnable", "=", false]]
  264. required: true
  265. - variable: additionalStorages
  266. label: Additional Storage
  267. description: Additional storage for Audiobookshelf.
  268. schema:
  269. type: list
  270. default: []
  271. items:
  272. - variable: storageEntry
  273. label: Storage Entry
  274. schema:
  275. type: dict
  276. attrs:
  277. - variable: type
  278. label: Type
  279. description: |
  280. ixVolume: Is dataset created automatically by the system.</br>
  281. Host Path: Is a path that already exists on the system.</br>
  282. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  283. schema:
  284. type: string
  285. required: true
  286. default: "ixVolume"
  287. immutable: true
  288. enum:
  289. - value: "hostPath"
  290. description: Host Path (Path that already exists on the system)
  291. - value: "ixVolume"
  292. description: ixVolume (Dataset created automatically by the system)
  293. - value: "smb-pv-pvc"
  294. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  295. - variable: readOnly
  296. label: Read Only
  297. description: Mount the volume as read only.
  298. schema:
  299. type: boolean
  300. default: false
  301. - variable: mountPath
  302. label: Mount Path
  303. description: The path inside the container to mount the storage.
  304. schema:
  305. type: path
  306. required: true
  307. - variable: hostPathConfig
  308. label: Host Path Configuration
  309. schema:
  310. type: dict
  311. show_if: [["type", "=", "hostPath"]]
  312. attrs:
  313. - variable: aclEnable
  314. label: Enable ACL
  315. description: Enable ACL for the dataset.
  316. schema:
  317. type: boolean
  318. default: false
  319. - variable: acl
  320. label: ACL Configuration
  321. schema:
  322. type: dict
  323. show_if: [["aclEnable", "=", true]]
  324. attrs: []
  325. $ref:
  326. - "normalize/acl"
  327. - variable: hostPath
  328. label: Host Path
  329. description: The host path to use for storage.
  330. schema:
  331. type: hostpath
  332. show_if: [["aclEnable", "=", false]]
  333. required: true
  334. - variable: ixVolumeConfig
  335. label: ixVolume Configuration
  336. description: The configuration for the ixVolume dataset.
  337. schema:
  338. type: dict
  339. show_if: [["type", "=", "ixVolume"]]
  340. $ref:
  341. - "normalize/ixVolume"
  342. attrs:
  343. - variable: aclEnable
  344. label: Enable ACL
  345. description: Enable ACL for the dataset.
  346. schema:
  347. type: boolean
  348. default: false
  349. - variable: datasetName
  350. label: Dataset Name
  351. description: The name of the dataset to use for storage.
  352. schema:
  353. type: string
  354. required: true
  355. immutable: true
  356. default: "storage_entry"
  357. - variable: aclEntries
  358. label: ACL Configuration
  359. schema:
  360. type: dict
  361. show_if: [["aclEnable", "=", true]]
  362. attrs: []
  363. - variable: smbConfig
  364. label: SMB Share Configuration
  365. description: The configuration for the SMB Share.
  366. schema:
  367. type: dict
  368. show_if: [["type", "=", "smb-pv-pvc"]]
  369. attrs:
  370. - variable: server
  371. label: Server
  372. description: The server for the SMB share.
  373. schema:
  374. type: string
  375. required: true
  376. - variable: share
  377. label: Share
  378. description: The share name for the SMB share.
  379. schema:
  380. type: string
  381. required: true
  382. - variable: domain
  383. label: Domain (Optional)
  384. description: The domain for the SMB share.
  385. schema:
  386. type: string
  387. - variable: username
  388. label: Username
  389. description: The username for the SMB share.
  390. schema:
  391. type: string
  392. required: true
  393. - variable: password
  394. label: Password
  395. description: The password for the SMB share.
  396. schema:
  397. type: string
  398. required: true
  399. private: true
  400. - variable: size
  401. label: Size (in Gi)
  402. description: The size of the volume quota.
  403. schema:
  404. type: int
  405. required: true
  406. min: 1
  407. default: 1
  408. - variable: resources
  409. group: Resources Configuration
  410. label: ""
  411. schema:
  412. type: dict
  413. attrs:
  414. - variable: limits
  415. label: Limits
  416. schema:
  417. type: dict
  418. attrs:
  419. - variable: cpu
  420. label: CPU
  421. description: CPU limit for Audiobookshelf.
  422. schema:
  423. type: string
  424. max_length: 6
  425. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  426. valid_chars_error: |
  427. Valid CPU limit formats are</br>
  428. - Plain Integer - eg. 1</br>
  429. - Float - eg. 0.5</br>
  430. - Milicpu - eg. 500m
  431. default: "4000m"
  432. required: true
  433. - variable: memory
  434. label: Memory
  435. description: Memory limit for Audiobookshelf.
  436. schema:
  437. type: string
  438. max_length: 12
  439. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  440. valid_chars_error: |
  441. Valid Memory limit formats are</br>
  442. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  443. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  444. - Plain Integer in bytes - eg. 1024</br>
  445. - Exponent - eg. 134e6
  446. default: "8Gi"
  447. required: true