questions.yaml 10 KB

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