questions.yaml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. groups:
  2. - name: Kavita Configuration
  3. description: Configure Kavita
  4. - name: Network Configuration
  5. description: Configure Network for Kavita
  6. - name: Storage Configuration
  7. description: Configure Storage for Kavita
  8. - name: Resources Configuration
  9. description: Configure Resources for Kavita
  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: TZ
  21. group: Kavita Configuration
  22. label: Timezone
  23. schema:
  24. type: string
  25. default: Etc/UTC
  26. required: true
  27. $ref:
  28. - definitions/timezone
  29. - variable: kavitaConfig
  30. label: ""
  31. group: Kavita Configuration
  32. schema:
  33. type: dict
  34. attrs:
  35. - variable: additionalEnvs
  36. label: Additional Environment Variables
  37. description: Configure additional environment variables for Kavita.
  38. schema:
  39. type: list
  40. default: []
  41. items:
  42. - variable: env
  43. label: Environment Variable
  44. schema:
  45. type: dict
  46. attrs:
  47. - variable: name
  48. label: Name
  49. schema:
  50. type: string
  51. required: true
  52. - variable: value
  53. label: Value
  54. schema:
  55. type: string
  56. required: true
  57. - variable: kavitaNetwork
  58. label: ""
  59. group: Network Configuration
  60. schema:
  61. type: dict
  62. attrs:
  63. - variable: webPort
  64. label: Web Port
  65. description: The port for the Kavita Web UI.
  66. schema:
  67. type: int
  68. default: 30069
  69. min: 9000
  70. max: 65535
  71. required: true
  72. - variable: kavitaStorage
  73. label: ""
  74. group: Storage Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: config
  79. label: Kavita Config Storage
  80. description: The path to store Kavita Configuration.
  81. schema:
  82. type: dict
  83. attrs:
  84. - variable: type
  85. label: Type
  86. description: |
  87. ixVolume: Is dataset created automatically by the system.</br>
  88. Host Path: Is a path that already exists on the system.
  89. schema:
  90. type: string
  91. required: true
  92. default: "ixVolume"
  93. enum:
  94. - value: "hostPath"
  95. description: Host Path (Path that already exists on the system)
  96. - value: "ixVolume"
  97. description: ixVolume (Dataset created automatically by the system)
  98. - variable: datasetName
  99. label: Dataset Name
  100. schema:
  101. type: string
  102. show_if: [["type", "=", "ixVolume"]]
  103. required: true
  104. hidden: true
  105. immutable: true
  106. default: "config"
  107. $ref:
  108. - "normalize/ixVolume"
  109. - variable: hostPath
  110. label: Host Path
  111. schema:
  112. type: hostpath
  113. show_if: [["type", "=", "hostPath"]]
  114. immutable: true
  115. required: true
  116. - variable: additionalStorages
  117. label: Additional Storage
  118. description: Additional storage for Kavita.
  119. schema:
  120. type: list
  121. default: []
  122. items:
  123. - variable: storageEntry
  124. label: Storage Entry
  125. schema:
  126. type: dict
  127. attrs:
  128. - variable: type
  129. label: Type
  130. description: |
  131. ixVolume: Is dataset created automatically by the system.</br>
  132. Host Path: Is a path that already exists on the system.
  133. schema:
  134. type: string
  135. required: true
  136. default: "ixVolume"
  137. immutable: true
  138. enum:
  139. - value: "hostPath"
  140. description: Host Path (Path that already exists on the system)
  141. - value: "ixVolume"
  142. description: ixVolume (Dataset created automatically by the system)
  143. - value: "smb-pv-pvc"
  144. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  145. - variable: mountPath
  146. label: Mount Path
  147. description: The path inside the container to mount the storage.
  148. schema:
  149. type: path
  150. required: true
  151. - variable: hostPath
  152. label: Host Path
  153. description: The host path to use for storage.
  154. schema:
  155. type: hostpath
  156. show_if: [["type", "=", "hostPath"]]
  157. required: true
  158. - variable: datasetName
  159. label: Dataset Name
  160. description: The name of the dataset to use for storage.
  161. schema:
  162. type: string
  163. show_if: [["type", "=", "ixVolume"]]
  164. required: true
  165. immutable: true
  166. default: "storage_entry"
  167. $ref:
  168. - "normalize/ixVolume"
  169. - variable: server
  170. label: Server
  171. description: The server for the SMB share.
  172. schema:
  173. type: string
  174. show_if: [["type", "=", "smb-pv-pvc"]]
  175. required: true
  176. - variable: share
  177. label: Share
  178. description: The share name for the SMB share.
  179. schema:
  180. type: string
  181. show_if: [["type", "=", "smb-pv-pvc"]]
  182. required: true
  183. - variable: domain
  184. label: Domain (Optional)
  185. description: The domain for the SMB share.
  186. schema:
  187. type: string
  188. show_if: [["type", "=", "smb-pv-pvc"]]
  189. - variable: username
  190. label: Username
  191. description: The username for the SMB share.
  192. schema:
  193. type: string
  194. show_if: [["type", "=", "smb-pv-pvc"]]
  195. required: true
  196. - variable: password
  197. label: Password
  198. description: The password for the SMB share.
  199. schema:
  200. type: string
  201. show_if: [["type", "=", "smb-pv-pvc"]]
  202. required: true
  203. private: true
  204. - variable: size
  205. label: Size (in Gi)
  206. description: The size of the volume quota.
  207. schema:
  208. type: int
  209. show_if: [["type", "=", "smb-pv-pvc"]]
  210. required: true
  211. min: 1
  212. default: 1
  213. - variable: resources
  214. group: Resources Configuration
  215. label: ""
  216. schema:
  217. type: dict
  218. attrs:
  219. - variable: limits
  220. label: Limits
  221. schema:
  222. type: dict
  223. attrs:
  224. - variable: cpu
  225. label: CPU
  226. description: CPU limit for Kavita.
  227. schema:
  228. type: string
  229. max_length: 6
  230. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  231. valid_chars_error: |
  232. Valid CPU limit formats are</br>
  233. - Plain Integer - eg. 1</br>
  234. - Float - eg. 0.5</br>
  235. - Milicpu - eg. 500m
  236. default: "4000m"
  237. required: true
  238. - variable: memory
  239. label: Memory
  240. description: Memory limit for Kavita.
  241. schema:
  242. type: string
  243. max_length: 12
  244. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  245. valid_chars_error: |
  246. Valid Memory limit formats are</br>
  247. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  248. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  249. - Plain Integer in bytes - eg. 1024</br>
  250. - Exponent - eg. 134e6
  251. default: "8Gi"
  252. required: true