questions.yaml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. enum:
  138. - value: "hostPath"
  139. description: Host Path (Path that already exists on the system)
  140. - value: "ixVolume"
  141. description: ixVolume (Dataset created automatically by the system)
  142. - variable: mountPath
  143. label: Mount Path
  144. description: The path inside the container to mount the storage.
  145. schema:
  146. type: path
  147. required: true
  148. - variable: hostPath
  149. label: Host Path
  150. description: The host path to use for storage.
  151. schema:
  152. type: hostpath
  153. show_if: [["type", "=", "hostPath"]]
  154. required: true
  155. - variable: datasetName
  156. label: Dataset Name
  157. description: The name of the dataset to use for storage.
  158. schema:
  159. type: string
  160. show_if: [["type", "=", "ixVolume"]]
  161. required: true
  162. immutable: true
  163. default: "storage_entry"
  164. $ref:
  165. - "normalize/ixVolume"
  166. - variable: resources
  167. group: Resources Configuration
  168. label: ""
  169. schema:
  170. type: dict
  171. attrs:
  172. - variable: limits
  173. label: Limits
  174. schema:
  175. type: dict
  176. attrs:
  177. - variable: cpu
  178. label: CPU
  179. description: CPU limit for Kavita.
  180. schema:
  181. type: string
  182. max_length: 6
  183. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  184. valid_chars_error: |
  185. Valid CPU limit formats are</br>
  186. - Plain Integer - eg. 1</br>
  187. - Float - eg. 0.5</br>
  188. - Milicpu - eg. 500m
  189. default: "4000m"
  190. required: true
  191. - variable: memory
  192. label: Memory
  193. description: Memory limit for Kavita.
  194. schema:
  195. type: string
  196. max_length: 12
  197. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  198. valid_chars_error: |
  199. Valid Memory limit formats are</br>
  200. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  201. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  202. - Plain Integer in bytes - eg. 1024</br>
  203. - Exponent - eg. 134e6
  204. default: "8Gi"
  205. required: true