questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Workload Configuration"
  5. description: "Configure workload deployment"
  6. - name: "Minio Configuration"
  7. description: "Configure Minio credentials"
  8. - name: "Storage"
  9. description: "Configure Storage for Nextcloud"
  10. - name: "Advanced DNS Settings"
  11. description: "Configure DNS settings"
  12. - name: "Resource Limits"
  13. description: "Set CPU/memory limits for Kubernetes Pod"
  14. portals:
  15. web_portal:
  16. protocols:
  17. - "$kubernetes-resource_configmap_minio-config_protocol"
  18. host:
  19. - "$node_ip"
  20. ports:
  21. - "$variable-service.consolePort"
  22. questions:
  23. - variable: dnsConfig
  24. label: "DNS Configuration"
  25. group: "Advanced DNS Settings"
  26. schema:
  27. type: dict
  28. attrs:
  29. - variable: options
  30. label: "DNS Options"
  31. schema:
  32. type: list
  33. items:
  34. - variable: optionsEntry
  35. label: "Option Entry Configuration"
  36. schema:
  37. type: dict
  38. attrs:
  39. - variable: name
  40. label: "Option Name"
  41. schema:
  42. type: string
  43. required: true
  44. - variable: value
  45. label: "Option Value"
  46. schema:
  47. type: string
  48. required: true
  49. - variable: updateStrategy
  50. label: "Minio update strategy"
  51. group: "Workload Configuration"
  52. schema:
  53. type: string
  54. default: "Recreate"
  55. enum:
  56. - value: "RollingUpdate"
  57. description: "Create new pods and then kill old ones"
  58. - value: "Recreate"
  59. description: "Kill existing pods before creating new ones"
  60. - variable: distributedMode
  61. label: "Enable Distributed Mode"
  62. description: "Run Minio instance to connect to a distributed minio cluster"
  63. group: "Minio Configuration"
  64. schema:
  65. type: boolean
  66. default: false
  67. show_subquestions_if: true
  68. subquestions:
  69. - variable: distributedIps
  70. label: "Distributed Minio Instance URI(s)"
  71. schema:
  72. type: list
  73. required: true
  74. default: []
  75. items:
  76. - variable: ip
  77. label: "Distributed Minio Instance URI"
  78. schema:
  79. type: string
  80. empty: false
  81. - variable: extraArgs
  82. label: "Minio Extra Arguments"
  83. group: "Minio Configuration"
  84. schema:
  85. type: list
  86. default: []
  87. items:
  88. - variable: arg
  89. label: "Argument"
  90. schema:
  91. type: string
  92. - variable: accessKey
  93. label: "Root User"
  94. group: "Minio Configuration"
  95. description: "Enter the S3 Root User"
  96. schema:
  97. type: string
  98. private: true
  99. required: true
  100. min_length: 5
  101. max_length: 20
  102. - variable: secretKey
  103. label: "Root Password"
  104. group: "Minio Configuration"
  105. description: "Enter the S3 Root Password"
  106. schema:
  107. type: string
  108. private: true
  109. required: true
  110. min_length: 8
  111. max_length: 40
  112. - variable: environmentVariables
  113. label: "Minio image environment"
  114. group: "Minio Configuration"
  115. schema:
  116. type: list
  117. default: []
  118. items:
  119. - variable: environmentVariable
  120. label: "Environment Variable"
  121. schema:
  122. type: dict
  123. attrs:
  124. - variable: name
  125. label: "Name"
  126. schema:
  127. type: string
  128. - variable: value
  129. label: "Value"
  130. schema:
  131. type: string
  132. - variable: service
  133. description: "Minio Service Configuration"
  134. label: "Minio Service Configuration"
  135. group: "Minio Configuration"
  136. schema:
  137. type: dict
  138. required: true
  139. attrs:
  140. - variable: nodePort
  141. label: "Node Port to use for Minio API"
  142. schema:
  143. type: int
  144. min: 9000
  145. max: 65535
  146. default: 9000
  147. required: true
  148. - variable: consolePort
  149. label: "Node Port to use for Minio UI Access"
  150. schema:
  151. type: int
  152. min: 9000
  153. max: 65535
  154. default: 9002
  155. required: true
  156. - variable: certificate
  157. description: "Minio Certificate"
  158. label: "Minio Certificate"
  159. group: "Minio Configuration"
  160. schema:
  161. type: int
  162. $ref:
  163. - "definitions/certificate"
  164. - variable: minioDomain
  165. label: "Minio Domain Name"
  166. description: |
  167. Depending on your setup/environment, you may need to leave this blank.
  168. Check MinIO documentation for more information.
  169. group: "Minio Configuration"
  170. schema:
  171. type: string
  172. default: null
  173. "null": true
  174. show_if: [["certificate", "!=", null]]
  175. - variable: logsearchapi
  176. label: Log Search API Configuration
  177. description: Log Search API Configuration
  178. group: Minio Configuration
  179. schema:
  180. type: dict
  181. attrs:
  182. - variable: enabled
  183. label: Enable Log Search API
  184. description: Enables Log Search API and configures MinIO to use it. It also deploys a postgres DB for it.
  185. schema:
  186. type: boolean
  187. default: false
  188. - variable: diskCapacityGB
  189. label: Disk Capacity in GB
  190. description: Capacity in GB that logs are allowed to occupy.
  191. schema:
  192. type: int
  193. show_if: [["enabled", "=", true]]
  194. default: 5
  195. - variable: appVolumeMounts
  196. label: "Minio Storage"
  197. group: "Storage"
  198. schema:
  199. type: dict
  200. show_if: [["distributedMode", "=", false]]
  201. attrs:
  202. - variable: export
  203. label: "Data Volume"
  204. schema:
  205. type: dict
  206. attrs:
  207. - variable: datasetName
  208. label: "Minio Data Volume Name"
  209. schema:
  210. type: string
  211. hidden: true
  212. $ref:
  213. - "normalize/ixVolume"
  214. show_if: [["hostPathEnabled", "=", false]]
  215. default: "ix-minio"
  216. editable: false
  217. - variable: mountPath
  218. label: "Minio Data Mount Path"
  219. description: "Path where the volume will be mounted inside the pod"
  220. schema:
  221. type: path
  222. default: "/export"
  223. immutable: true
  224. - variable: hostPathEnabled
  225. label: "Enable Host Path for Minio Data Volume"
  226. schema:
  227. type: boolean
  228. default: false
  229. show_subquestions_if: true
  230. subquestions:
  231. - variable: hostPath
  232. label: "Host Path for Minio Data Volume"
  233. schema:
  234. type: hostpath
  235. required: true
  236. immutable: true
  237. - variable: extraAppVolumeMounts
  238. label: "Extra Host Path Volumes"
  239. group: "Storage"
  240. schema:
  241. type: list
  242. items:
  243. - variable: extraAppVolume
  244. label: "Host Path Volume"
  245. description: "Add an extra host path volume for Minio application"
  246. schema:
  247. type: dict
  248. attrs:
  249. - variable: mountPath
  250. label: "Mount Path in Pod"
  251. description: "Path where the volume will be mounted inside the pod"
  252. schema:
  253. type: path
  254. required: true
  255. - variable: hostPath
  256. label: "Host Path"
  257. description: "Host path"
  258. schema:
  259. type: hostpath
  260. required: true
  261. - variable: postgresAppVolumeMounts
  262. label: Postgres Storage
  263. group: Storage
  264. schema:
  265. type: dict
  266. attrs:
  267. - variable: postgres-data
  268. label: Postgres Data Volume
  269. schema:
  270. type: dict
  271. attrs:
  272. - variable: datasetName
  273. label: Postgres Data Volume Name
  274. schema:
  275. type: string
  276. hidden: true
  277. $ref:
  278. - normalize/ixVolume
  279. default: ix-postgres_data
  280. show_if: [["hostPathEnabled", "=", false]]
  281. editable: false
  282. - variable: mountPath
  283. label: Postgresql Data Mount Path
  284. description: Path where the volume will be mounted inside the pod
  285. schema:
  286. type: path
  287. hidden: true
  288. editable: false
  289. default: /var/lib/postgresql/data
  290. - variable: hostPathEnabled
  291. label: Enable Host Path for Postgres Data Volume
  292. schema:
  293. type: boolean
  294. default: false
  295. show_subquestions_if: true
  296. subquestions:
  297. - variable: hostPath
  298. label: Host Path for Postgres Data Volume
  299. schema:
  300. type: hostpath
  301. required: true
  302. immutable: true
  303. - variable: postgres-backup
  304. label: Postgres Backup Volume
  305. schema:
  306. type: dict
  307. attrs:
  308. - variable: datasetName
  309. label: Postgres Backup Volume Name
  310. schema:
  311. type: string
  312. hidden: true
  313. $ref:
  314. - normalize/ixVolume
  315. default: ix-postgres_backups
  316. show_if: [["hostPathEnabled", "=", false]]
  317. editable: false
  318. - variable: mountPath
  319. label: Postgresql Backup Mount Path
  320. description: Path where the volume will be mounted inside the pod
  321. schema:
  322. type: path
  323. hidden: true
  324. editable: false
  325. default: /postgres_backups
  326. - variable: hostPathEnabled
  327. label: Enable Host Path for Postgres Backup Volume
  328. schema:
  329. type: boolean
  330. default: false
  331. show_subquestions_if: true
  332. subquestions:
  333. - variable: hostPath
  334. label: Host Path for Postgres Backup Volume
  335. schema:
  336. type: hostpath
  337. required: true
  338. - variable: enableResourceLimits
  339. label: "Enable Pod resource limits"
  340. group: "Resource Limits"
  341. schema:
  342. type: boolean
  343. default: false
  344. - variable: cpuLimit
  345. label: "CPU Limit"
  346. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  347. group: "Resource Limits"
  348. schema:
  349. type: string
  350. show_if: [["enableResourceLimits", "=", true]]
  351. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  352. default: "4000m"
  353. - variable: memLimit
  354. label: "Memory Limit"
  355. group: "Resource Limits"
  356. description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi"
  357. schema:
  358. type: string
  359. show_if: [["enableResourceLimits", "=", true]]
  360. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  361. default: "8Gi"