questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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: "RollingUpdate"
  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: "This is only required if TLS is configured for Minio"
  167. group: "Minio Configuration"
  168. schema:
  169. type: string
  170. default: null
  171. "null": true
  172. show_if: [["certificate", "!=", null]]
  173. - variable: logsearchapi
  174. label: Log Search API Configuration
  175. description: Log Search API Configuration
  176. group: Minio Configuration
  177. schema:
  178. type: dict
  179. attrs:
  180. - variable: enabled
  181. label: Enable Log Search API
  182. description: Enables Log Search API and configures MinIO to use it. It also deploys a postgres DB for it.
  183. schema:
  184. type: boolean
  185. default: false
  186. - variable: diskCapacityGB
  187. label: Disk Capacity in GB
  188. description: Capacity in GB that logs are allowed to occupy.
  189. schema:
  190. type: int
  191. show_if: [["enabled", "=", true]]
  192. default: 5
  193. - variable: appVolumeMounts
  194. label: "Minio Storage"
  195. group: "Storage"
  196. schema:
  197. type: dict
  198. show_if: [["distributedMode", "=", false]]
  199. attrs:
  200. - variable: export
  201. label: "Data Volume"
  202. schema:
  203. type: dict
  204. attrs:
  205. - variable: datasetName
  206. label: "Minio Data Volume Name"
  207. schema:
  208. type: string
  209. hidden: true
  210. $ref:
  211. - "normalize/ixVolume"
  212. show_if: [["hostPathEnabled", "=", false]]
  213. default: "ix-minio"
  214. editable: false
  215. - variable: mountPath
  216. label: "Minio Data Mount Path"
  217. description: "Path where the volume will be mounted inside the pod"
  218. schema:
  219. type: path
  220. default: "/export"
  221. immutable: true
  222. - variable: hostPathEnabled
  223. label: "Enable Host Path for Minio Data Volume"
  224. schema:
  225. type: boolean
  226. default: false
  227. show_subquestions_if: true
  228. subquestions:
  229. - variable: hostPath
  230. label: "Host Path for Minio Data Volume"
  231. schema:
  232. type: hostpath
  233. required: true
  234. immutable: true
  235. - variable: extraAppVolumeMounts
  236. label: "Extra Host Path Volumes"
  237. group: "Storage"
  238. schema:
  239. type: list
  240. items:
  241. - variable: extraAppVolume
  242. label: "Host Path Volume"
  243. description: "Add an extra host path volume for Minio application"
  244. schema:
  245. type: dict
  246. attrs:
  247. - variable: mountPath
  248. label: "Mount Path in Pod"
  249. description: "Path where the volume will be mounted inside the pod"
  250. schema:
  251. type: path
  252. required: true
  253. - variable: hostPath
  254. label: "Host Path"
  255. description: "Host path"
  256. schema:
  257. type: hostpath
  258. required: true
  259. - variable: postgresAppVolumeMounts
  260. label: Postgres Storage
  261. group: Storage
  262. schema:
  263. type: dict
  264. attrs:
  265. - variable: postgres-data
  266. label: Postgres Data Volume
  267. schema:
  268. type: dict
  269. attrs:
  270. - variable: datasetName
  271. label: Postgres Data Volume Name
  272. schema:
  273. type: string
  274. hidden: true
  275. $ref:
  276. - normalize/ixVolume
  277. default: ix-postgres_data
  278. show_if: [["hostPathEnabled", "=", false]]
  279. editable: false
  280. - variable: mountPath
  281. label: Postgresql Data Mount Path
  282. description: Path where the volume will be mounted inside the pod
  283. schema:
  284. type: path
  285. hidden: true
  286. editable: false
  287. default: /var/lib/postgresql/data
  288. - variable: hostPathEnabled
  289. label: Enable Host Path for Postgres Data Volume
  290. schema:
  291. type: boolean
  292. default: false
  293. show_subquestions_if: true
  294. subquestions:
  295. - variable: hostPath
  296. label: Host Path for Postgres Data Volume
  297. schema:
  298. type: hostpath
  299. required: true
  300. immutable: true
  301. - variable: postgres-backup
  302. label: Postgres Backup Volume
  303. schema:
  304. type: dict
  305. attrs:
  306. - variable: datasetName
  307. label: Postgres Backup Volume Name
  308. schema:
  309. type: string
  310. hidden: true
  311. $ref:
  312. - normalize/ixVolume
  313. default: ix-postgres_backups
  314. show_if: [["hostPathEnabled", "=", false]]
  315. editable: false
  316. - variable: mountPath
  317. label: Postgresql Backup Mount Path
  318. description: Path where the volume will be mounted inside the pod
  319. schema:
  320. type: path
  321. hidden: true
  322. editable: false
  323. default: /postgres_backups
  324. - variable: hostPathEnabled
  325. label: Enable Host Path for Postgres Backup Volume
  326. schema:
  327. type: boolean
  328. default: false
  329. show_subquestions_if: true
  330. subquestions:
  331. - variable: hostPath
  332. label: Host Path for Postgres Backup Volume
  333. schema:
  334. type: hostpath
  335. required: true
  336. - variable: enableResourceLimits
  337. label: "Enable Pod resource limits"
  338. group: "Resource Limits"
  339. schema:
  340. type: boolean
  341. default: false
  342. - variable: cpuLimit
  343. label: "CPU Limit"
  344. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  345. group: "Resource Limits"
  346. schema:
  347. type: string
  348. show_if: [["enableResourceLimits", "=", true]]
  349. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  350. default: "4000m"
  351. - variable: memLimit
  352. label: "Memory Limit"
  353. group: "Resource Limits"
  354. 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"
  355. schema:
  356. type: string
  357. show_if: [["enableResourceLimits", "=", true]]
  358. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  359. default: "8Gi"