questions.yaml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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: minioDomain
  157. label: "Minio Domain Name"
  158. description: "This is only required if TLS is configured for Minio"
  159. group: "Minio Configuration"
  160. schema:
  161. type: string
  162. default: null
  163. "null": true
  164. show_if: [["certificate", "!=", null]]
  165. - variable: certificate
  166. description: "Minio Certificate"
  167. label: "Minio Certificate"
  168. group: "Minio Configuration"
  169. schema:
  170. type: int
  171. $ref:
  172. - "definitions/certificate"
  173. - variable: appVolumeMounts
  174. label: "Minio Storage"
  175. group: "Storage"
  176. schema:
  177. type: dict
  178. show_if: [["distributedMode", "=", false]]
  179. attrs:
  180. - variable: export
  181. label: "Data Volume"
  182. schema:
  183. type: dict
  184. attrs:
  185. - variable: datasetName
  186. label: "Minio Data Volume Name"
  187. schema:
  188. type: string
  189. hidden: true
  190. $ref:
  191. - "normalize/ixVolume"
  192. show_if: [["hostPathEnabled", "=", false]]
  193. default: "ix-minio"
  194. editable: false
  195. - variable: mountPath
  196. label: "Minio Data Mount Path"
  197. description: "Path where the volume will be mounted inside the pod"
  198. schema:
  199. type: path
  200. default: "/export"
  201. immutable: true
  202. - variable: hostPathEnabled
  203. label: "Enable Host Path for Minio Data Volume"
  204. schema:
  205. type: boolean
  206. default: false
  207. show_subquestions_if: true
  208. subquestions:
  209. - variable: hostPath
  210. label: "Host Path for Minio Data Volume"
  211. schema:
  212. type: hostpath
  213. required: true
  214. immutable: true
  215. - variable: extraAppVolumeMounts
  216. label: "Extra Host Path Volumes"
  217. group: "Storage"
  218. schema:
  219. type: list
  220. items:
  221. - variable: extraAppVolume
  222. label: "Host Path Volume"
  223. description: "Add an extra host path volume for Minio application"
  224. schema:
  225. type: dict
  226. attrs:
  227. - variable: mountPath
  228. label: "Mount Path in Pod"
  229. description: "Path where the volume will be mounted inside the pod"
  230. schema:
  231. type: path
  232. required: true
  233. - variable: hostPath
  234. label: "Host Path"
  235. description: "Host path"
  236. schema:
  237. type: hostpath
  238. required: true
  239. - variable: enableResourceLimits
  240. label: "Enable Pod resource limits"
  241. group: "Resource Limits"
  242. schema:
  243. type: boolean
  244. default: false
  245. - variable: cpuLimit
  246. label: "CPU Limresource limitsit"
  247. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  248. group: "Resource Limits"
  249. schema:
  250. type: string
  251. show_if: [["enableResourceLimits", "=", true]]
  252. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  253. default: "4000m"
  254. - variable: memLimit
  255. label: "Memory Limit"
  256. group: "Resource Limits"
  257. 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"
  258. schema:
  259. type: string
  260. show_if: [["enableResourceLimits", "=", true]]
  261. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  262. default: "8Gi"