questions.yaml 15 KB

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