questions.yaml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. immutable: true
  93. default: "ixVolume"
  94. enum:
  95. - value: "hostPath"
  96. description: Host Path (Path that already exists on the system)
  97. - value: "ixVolume"
  98. description: ixVolume (Dataset created automatically by the system)
  99. - variable: datasetName
  100. label: Dataset Name
  101. schema:
  102. type: string
  103. show_if: [["type", "=", "ixVolume"]]
  104. required: true
  105. hidden: true
  106. immutable: true
  107. default: "config"
  108. $ref:
  109. - "normalize/ixVolume"
  110. - variable: hostPath
  111. label: Host Path
  112. schema:
  113. type: hostpath
  114. show_if: [["type", "=", "hostPath"]]
  115. immutable: true
  116. required: true
  117. - variable: additionalStorages
  118. label: Additional Storage
  119. description: Additional storage for Kavita.
  120. schema:
  121. type: list
  122. default: []
  123. items:
  124. - variable: storageEntry
  125. label: Storage Entry
  126. schema:
  127. type: dict
  128. attrs:
  129. - variable: type
  130. label: Type
  131. description: |
  132. ixVolume: Is dataset created automatically by the system.</br>
  133. Host Path: Is a path that already exists on the system.</br>
  134. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  135. schema:
  136. type: string
  137. required: true
  138. default: "ixVolume"
  139. immutable: true
  140. enum:
  141. - value: "hostPath"
  142. description: Host Path (Path that already exists on the system)
  143. - value: "ixVolume"
  144. description: ixVolume (Dataset created automatically by the system)
  145. - value: "smb-pv-pvc"
  146. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  147. - variable: mountPath
  148. label: Mount Path
  149. description: The path inside the container to mount the storage.
  150. schema:
  151. type: path
  152. required: true
  153. - variable: hostPath
  154. label: Host Path
  155. description: The host path to use for storage.
  156. schema:
  157. type: hostpath
  158. show_if: [["type", "=", "hostPath"]]
  159. required: true
  160. - variable: datasetName
  161. label: Dataset Name
  162. description: The name of the dataset to use for storage.
  163. schema:
  164. type: string
  165. show_if: [["type", "=", "ixVolume"]]
  166. required: true
  167. immutable: true
  168. default: "storage_entry"
  169. $ref:
  170. - "normalize/ixVolume"
  171. - variable: server
  172. label: Server
  173. description: The server for the SMB share.
  174. schema:
  175. type: string
  176. show_if: [["type", "=", "smb-pv-pvc"]]
  177. required: true
  178. - variable: share
  179. label: Share
  180. description: The share name for the SMB share.
  181. schema:
  182. type: string
  183. show_if: [["type", "=", "smb-pv-pvc"]]
  184. required: true
  185. - variable: domain
  186. label: Domain (Optional)
  187. description: The domain for the SMB share.
  188. schema:
  189. type: string
  190. show_if: [["type", "=", "smb-pv-pvc"]]
  191. - variable: username
  192. label: Username
  193. description: The username for the SMB share.
  194. schema:
  195. type: string
  196. show_if: [["type", "=", "smb-pv-pvc"]]
  197. required: true
  198. - variable: password
  199. label: Password
  200. description: The password for the SMB share.
  201. schema:
  202. type: string
  203. show_if: [["type", "=", "smb-pv-pvc"]]
  204. required: true
  205. private: true
  206. - variable: size
  207. label: Size (in Gi)
  208. description: The size of the volume quota.
  209. schema:
  210. type: int
  211. show_if: [["type", "=", "smb-pv-pvc"]]
  212. required: true
  213. min: 1
  214. default: 1
  215. - variable: resources
  216. group: Resources Configuration
  217. label: ""
  218. schema:
  219. type: dict
  220. attrs:
  221. - variable: limits
  222. label: Limits
  223. schema:
  224. type: dict
  225. attrs:
  226. - variable: cpu
  227. label: CPU
  228. description: CPU limit for Kavita.
  229. schema:
  230. type: string
  231. max_length: 6
  232. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  233. valid_chars_error: |
  234. Valid CPU limit formats are</br>
  235. - Plain Integer - eg. 1</br>
  236. - Float - eg. 0.5</br>
  237. - Milicpu - eg. 500m
  238. default: "4000m"
  239. required: true
  240. - variable: memory
  241. label: Memory
  242. description: Memory limit for Kavita.
  243. schema:
  244. type: string
  245. max_length: 12
  246. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  247. valid_chars_error: |
  248. Valid Memory limit formats are</br>
  249. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  250. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  251. - Plain Integer in bytes - eg. 1024</br>
  252. - Exponent - eg. 134e6
  253. default: "8Gi"
  254. required: true