questions.yaml 9.3 KB

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