questions.yaml 11 KB

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