questions.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. default: "ixVolume"
  123. enum:
  124. - value: "hostPath"
  125. description: Host Path (Path that already exists on the system)
  126. - value: "ixVolume"
  127. description: ixVolume (Dataset created automatically by the system)
  128. - variable: datasetName
  129. label: Dataset Name
  130. schema:
  131. type: string
  132. show_if: [["type", "=", "ixVolume"]]
  133. required: true
  134. hidden: true
  135. immutable: true
  136. default: "config"
  137. $ref:
  138. - "normalize/ixVolume"
  139. - variable: hostPath
  140. label: Host Path
  141. schema:
  142. type: hostpath
  143. show_if: [["type", "=", "hostPath"]]
  144. immutable: true
  145. required: true
  146. - variable: cache
  147. label: Jellyfin Cache Storage
  148. description: The path to store Jellyfin Cache.
  149. schema:
  150. type: dict
  151. attrs:
  152. - variable: type
  153. label: Type
  154. description: |
  155. ixVolume: Is dataset created automatically by the system.</br>
  156. Host Path: Is a path that already exists on the system.
  157. schema:
  158. type: string
  159. required: true
  160. default: "ixVolume"
  161. enum:
  162. - value: "hostPath"
  163. description: Host Path (Path that already exists on the system)
  164. - value: "ixVolume"
  165. description: ixVolume (Dataset created automatically by the system)
  166. - variable: datasetName
  167. label: Dataset Name
  168. schema:
  169. type: string
  170. show_if: [["type", "=", "ixVolume"]]
  171. required: true
  172. hidden: true
  173. immutable: true
  174. default: "cache"
  175. $ref:
  176. - "normalize/ixVolume"
  177. - variable: hostPath
  178. label: Host Path
  179. schema:
  180. type: hostpath
  181. show_if: [["type", "=", "hostPath"]]
  182. immutable: true
  183. required: true
  184. - variable: transcodes
  185. label: Jellyfin Transcodes Storage
  186. description: The path to store Jellyfin Transcodes.
  187. schema:
  188. type: dict
  189. attrs:
  190. - variable: type
  191. label: Type
  192. description: |
  193. ixVolume: Is dataset created automatically by the system.</br>
  194. Host Path: Is a path that already exists on the system.</br>
  195. emptyDir: Is a temporary directory that will be created on the disk or in memory.
  196. schema:
  197. type: string
  198. required: true
  199. default: "ixVolume"
  200. enum:
  201. - value: "hostPath"
  202. description: Host Path (Path that already exists on the system)
  203. - value: "ixVolume"
  204. description: ixVolume (Dataset created automatically by the system)
  205. - value: "emptyDir"
  206. description: emptyDir (Temporary directory created on the disk or in memory)
  207. - variable: datasetName
  208. label: Dataset Name
  209. schema:
  210. type: string
  211. show_if: [["type", "=", "ixVolume"]]
  212. required: true
  213. hidden: true
  214. immutable: true
  215. default: "transcodes"
  216. $ref:
  217. - "normalize/ixVolume"
  218. - variable: hostPath
  219. label: Host Path
  220. schema:
  221. type: hostpath
  222. show_if: [["type", "=", "hostPath"]]
  223. immutable: true
  224. required: true
  225. - variable: medium
  226. label: emptyDir Medium
  227. description: |
  228. Disk: Creates a temporary directory on the disk.</br>
  229. Memory: Creates a temporary directory in memory.
  230. schema:
  231. type: string
  232. show_if: [["type", "=", "emptyDir"]]
  233. default: ""
  234. enum:
  235. - value: ""
  236. description: Disk (Temporary directory created on the disk)
  237. - value: "Memory"
  238. description: Memory (Temporary directory created in memory)
  239. - variable: size
  240. label: emptyDir Size Limit
  241. description: |
  242. The maximum size of the temporary directory.</br>
  243. For example: 2Gi
  244. schema:
  245. type: string
  246. show_if: [["type", "=", "emptyDir"]]
  247. default: "2Gi"
  248. - variable: additionalStorages
  249. label: Additional Storage
  250. description: Additional storage for Jellyfin.
  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. immutable: true
  270. enum:
  271. - value: "hostPath"
  272. description: Host Path (Path that already exists on the system)
  273. - value: "ixVolume"
  274. description: ixVolume (Dataset created automatically by the system)
  275. - value: "smb-pv-pvc"
  276. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  277. - variable: mountPath
  278. label: Mount Path
  279. description: The path inside the container to mount the storage.
  280. schema:
  281. type: path
  282. required: true
  283. - variable: hostPath
  284. label: Host Path
  285. description: The host path to use for storage.
  286. schema:
  287. type: hostpath
  288. show_if: [["type", "=", "hostPath"]]
  289. required: true
  290. - variable: datasetName
  291. label: Dataset Name
  292. description: The name of the dataset to use for storage.
  293. schema:
  294. type: string
  295. show_if: [["type", "=", "ixVolume"]]
  296. required: true
  297. immutable: true
  298. default: "storage_entry"
  299. $ref:
  300. - "normalize/ixVolume"
  301. - variable: server
  302. label: Server
  303. description: The server for the SMB share.
  304. schema:
  305. type: string
  306. show_if: [["type", "=", "smb-pv-pvc"]]
  307. required: true
  308. - variable: share
  309. label: Share
  310. description: The share name for the SMB share.
  311. schema:
  312. type: string
  313. show_if: [["type", "=", "smb-pv-pvc"]]
  314. required: true
  315. - variable: domain
  316. label: Domain (Optional)
  317. description: The domain for the SMB share.
  318. schema:
  319. type: string
  320. show_if: [["type", "=", "smb-pv-pvc"]]
  321. - variable: username
  322. label: Username
  323. description: The username for the SMB share.
  324. schema:
  325. type: string
  326. show_if: [["type", "=", "smb-pv-pvc"]]
  327. required: true
  328. - variable: password
  329. label: Password
  330. description: The password for the SMB share.
  331. schema:
  332. type: string
  333. show_if: [["type", "=", "smb-pv-pvc"]]
  334. required: true
  335. private: true
  336. - variable: size
  337. label: Size (in Gi)
  338. description: The size of the volume quota.
  339. schema:
  340. type: int
  341. show_if: [["type", "=", "smb-pv-pvc"]]
  342. required: true
  343. min: 1
  344. default: 1
  345. - variable: resources
  346. group: Resources Configuration
  347. label: ""
  348. schema:
  349. type: dict
  350. attrs:
  351. - variable: limits
  352. label: Limits
  353. schema:
  354. type: dict
  355. attrs:
  356. - variable: cpu
  357. label: CPU
  358. description: CPU limit for Jellyfin.
  359. schema:
  360. type: string
  361. max_length: 6
  362. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  363. valid_chars_error: |
  364. Valid CPU limit formats are</br>
  365. - Plain Integer - eg. 1</br>
  366. - Float - eg. 0.5</br>
  367. - Milicpu - eg. 500m
  368. default: "4000m"
  369. required: true
  370. - variable: memory
  371. label: Memory
  372. description: Memory limit for Jellyfin.
  373. schema:
  374. type: string
  375. max_length: 12
  376. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  377. valid_chars_error: |
  378. Valid Memory limit formats are</br>
  379. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  380. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  381. - Plain Integer in bytes - eg. 1024</br>
  382. - Exponent - eg. 134e6
  383. default: "8Gi"
  384. required: true
  385. - variable: jellyfinGPU
  386. group: Resources Configuration
  387. label: GPU Configuration
  388. schema:
  389. type: dict
  390. $ref:
  391. - "definitions/gpuConfiguration"
  392. attrs: []