questions.yaml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. groups:
  2. - name: Navidrome Configuration
  3. description: Configure Navidrome
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Navidrome
  6. - name: Network Configuration
  7. description: Configure Network for Navidrome
  8. - name: Storage Configuration
  9. description: Configure Storage for Navidrome
  10. - name: Resources Configuration
  11. description: Configure Resources for Navidrome
  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: navidromeConfig
  23. label: ""
  24. group: Navidrome Configuration
  25. schema:
  26. type: dict
  27. attrs:
  28. - variable: uiWelcomeMessage
  29. label: Login Screen Welcome Message
  30. description: The welcome message to display on the Navidrome Login Screen.
  31. schema:
  32. type: string
  33. default: ""
  34. - variable: additionalEnvs
  35. label: Additional Environment Variables
  36. description: Configure additional environment variables for Navidrome.
  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: navidromeRunAs
  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 Navidrome 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 Navidrome will run as.
  73. schema:
  74. type: int
  75. min: 2
  76. default: 568
  77. required: true
  78. - variable: navidromeNetwork
  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 Navidrome Web UI.
  87. schema:
  88. type: int
  89. default: 30043
  90. min: 9000
  91. max: 65535
  92. required: true
  93. - variable: hostNetwork
  94. label: Host Network
  95. description: |
  96. Bind to the host network. It's recommended to keep this disabled.</br>
  97. schema:
  98. type: boolean
  99. default: false
  100. - variable: navidromeStorage
  101. label: ""
  102. group: Storage Configuration
  103. schema:
  104. type: dict
  105. attrs:
  106. - variable: data
  107. label: Navidrome Data Storage
  108. description: The path to store Navidrome Data.
  109. schema:
  110. type: dict
  111. attrs:
  112. - variable: type
  113. label: Type
  114. description: |
  115. ixVolume: Is dataset created automatically by the system.</br>
  116. Host Path: Is a path that already exists on the system.
  117. schema:
  118. type: string
  119. required: true
  120. default: "ixVolume"
  121. enum:
  122. - value: "hostPath"
  123. description: Host Path (Path that already exists on the system)
  124. - value: "ixVolume"
  125. description: ixVolume (Dataset created automatically by the system)
  126. - variable: datasetName
  127. label: Dataset Name
  128. schema:
  129. type: string
  130. show_if: [["type", "=", "ixVolume"]]
  131. required: true
  132. hidden: true
  133. immutable: true
  134. default: "data"
  135. $ref:
  136. - "normalize/ixVolume"
  137. - variable: hostPath
  138. label: Host Path
  139. schema:
  140. type: hostpath
  141. show_if: [["type", "=", "hostPath"]]
  142. immutable: true
  143. required: true
  144. - variable: music
  145. label: Navidrome Music Storage
  146. description: The path to store Navidrome Music.
  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: "music"
  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: additionalStorages
  183. label: Additional Storage
  184. description: Additional storage for Navidrome.
  185. schema:
  186. type: list
  187. default: []
  188. items:
  189. - variable: storageEntry
  190. label: Storage Entry
  191. schema:
  192. type: dict
  193. attrs:
  194. - variable: type
  195. label: Type
  196. description: |
  197. ixVolume: Is dataset created automatically by the system.</br>
  198. Host Path: Is a path that already exists on the system.
  199. schema:
  200. type: string
  201. required: 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: mountPath
  209. label: Mount Path
  210. description: The path inside the container to mount the storage.
  211. schema:
  212. type: path
  213. required: true
  214. - variable: hostPath
  215. label: Host Path
  216. description: The host path to use for storage.
  217. schema:
  218. type: hostpath
  219. show_if: [["type", "=", "hostPath"]]
  220. required: true
  221. - variable: datasetName
  222. label: Dataset Name
  223. description: The name of the dataset to use for storage.
  224. schema:
  225. type: string
  226. show_if: [["type", "=", "ixVolume"]]
  227. required: true
  228. immutable: true
  229. default: "storage_entry"
  230. $ref:
  231. - "normalize/ixVolume"
  232. - variable: resources
  233. group: Resources Configuration
  234. label: ""
  235. schema:
  236. type: dict
  237. attrs:
  238. - variable: limits
  239. label: Limits
  240. schema:
  241. type: dict
  242. attrs:
  243. - variable: cpu
  244. label: CPU
  245. description: CPU limit for Navidrome.
  246. schema:
  247. type: string
  248. max_length: 6
  249. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  250. valid_chars_error: |
  251. Valid CPU limit formats are</br>
  252. - Plain Integer - eg. 1</br>
  253. - Float - eg. 0.5</br>
  254. - Milicpu - eg. 500m
  255. default: "4000m"
  256. required: true
  257. - variable: memory
  258. label: Memory
  259. description: Memory limit for Navidrome.
  260. schema:
  261. type: string
  262. max_length: 12
  263. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  264. valid_chars_error: |
  265. Valid Memory limit formats are</br>
  266. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  267. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  268. - Plain Integer in bytes - eg. 1024</br>
  269. - Exponent - eg. 134e6
  270. default: "8Gi"
  271. required: true