questions.yaml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. groups:
  2. - name: "Container Images"
  3. description: "Image to be used for container"
  4. - name: "Nextcloud Configuration"
  5. description: "Configuration details for Nextcloud workload"
  6. - name: "Storage"
  7. description: "Configure Storage for Nextcloud"
  8. - name: "Container Configuration"
  9. description: "Configure nextcloud container parameters"
  10. - name: "Postgresql Configuration"
  11. description: "Configure Postgresql for nextcloud"
  12. - name: "CronJob configuration"
  13. description: "Configure CronJob for nextcloud"
  14. - name: "Scaling/Upgrade Policy"
  15. description: "Configure how pods are replaced when configuration is upgraded"
  16. - name: "Advanced DNS Settings"
  17. description: "Configure DNS settings"
  18. - name: "Resource Limits"
  19. description: "Set CPU/memory limits for Kubernetes Pod"
  20. portals:
  21. web_portal:
  22. protocols:
  23. - "$kubernetes-resource_configmap_nginx-configuration_protocol"
  24. host:
  25. - "$variable-nextcloud.host"
  26. ports:
  27. - "$variable-service.nodePort"
  28. questions:
  29. - variable: dnsConfig
  30. label: "DNS Configuration"
  31. group: "Advanced DNS Settings"
  32. schema:
  33. type: dict
  34. attrs:
  35. - variable: options
  36. label: "DNS Options"
  37. schema:
  38. type: list
  39. items:
  40. - variable: optionsEntry
  41. label: "Option Entry Configuration"
  42. schema:
  43. type: dict
  44. attrs:
  45. - variable: name
  46. label: "Option Name"
  47. schema:
  48. type: string
  49. required: true
  50. - variable: value
  51. label: "Option Value"
  52. schema:
  53. type: string
  54. required: true
  55. - variable: certificate
  56. description: "Configure Certificate for Nextcloud"
  57. label: "Certificate Configuration"
  58. group: "Nextcloud Configuration"
  59. schema:
  60. type: int
  61. $ref:
  62. - "definitions/certificate"
  63. - variable: nextcloud
  64. description: "Nextcloud configuration details"
  65. label: "Nextcloud Configuration"
  66. group: "Nextcloud Configuration"
  67. schema:
  68. type: dict
  69. required: true
  70. additional_attrs: true
  71. attrs:
  72. - variable: host
  73. description: "Nextcloud host to create application URLs"
  74. label: "Nextcloud host"
  75. schema:
  76. type: string
  77. $ref:
  78. - "definitions/nodeIP"
  79. - variable: username
  80. label: "Username"
  81. description: "Name of the Nextcloud admin user"
  82. schema:
  83. type: string
  84. default: "admin"
  85. required: true
  86. - variable: password
  87. label: "Password"
  88. description: "Password for the Nextcloud admin user"
  89. schema:
  90. type: string
  91. private: true
  92. default: "changeme"
  93. required: true
  94. - variable: datadir
  95. label: "Nextcloud data directory"
  96. description: "Configures the data directory where nextcloud stores all files from the users"
  97. schema:
  98. type: path
  99. default: "/var/www/html/data"
  100. required: true
  101. - variable: cronjob
  102. description: "Setup cronjob for nextcloud"
  103. label: "Setup cronjob for nextcloud"
  104. group: "CronJob configuration"
  105. schema:
  106. type: dict
  107. attrs:
  108. - variable: enabled
  109. label: "Enable cronjobs for nextcloud"
  110. schema:
  111. type: boolean
  112. default: false
  113. show_subquestions_if: true
  114. subquestions:
  115. - variable: schedule
  116. label: Schedule
  117. schema:
  118. type: string
  119. default: "1 */24 * * *"
  120. empty: false
  121. # Update strategy
  122. - variable: updateStrategy
  123. description: "Upgrade Policy"
  124. label: "Update Strategy"
  125. group: "Scaling/Upgrade Policy"
  126. schema:
  127. type: string
  128. default: "Recreate"
  129. enum:
  130. - value: "RollingUpdate"
  131. description: "Create new pods and then kill old ones"
  132. - value: "Recreate"
  133. description: "Kill existing pods before creating new ones"
  134. - variable: service
  135. description: "Nextcloud Service Configuration"
  136. label: "Nextcloud Service Configuration"
  137. group: "Nextcloud Configuration"
  138. schema:
  139. type: dict
  140. required: true
  141. attrs:
  142. - variable: nodePort
  143. label: "Node Port to use for Nextcloud"
  144. schema:
  145. type: int
  146. min: 9000
  147. max: 65535
  148. default: 9001
  149. required: true
  150. - variable: appVolumeMounts
  151. label: "Nextcloud Storage"
  152. group: "Storage"
  153. schema:
  154. type: dict
  155. attrs:
  156. - variable: nextcloud-data
  157. label: "Nextcloud Data Volume"
  158. schema:
  159. type: dict
  160. attrs:
  161. - variable: datasetName
  162. label: "Nextcloud Data Volume Name"
  163. schema:
  164. type: string
  165. hidden: true
  166. $ref:
  167. - "normalize/ixVolume"
  168. show_if: [["hostPathEnabled", "=", false]]
  169. default: "ix-nextcloud_data"
  170. editable: false
  171. - variable: mountPath
  172. label: "Nextcloud Data Mount Path"
  173. description: "Path where the volume will be mounted inside the pod"
  174. schema:
  175. type: path
  176. hidden: true
  177. editable: false
  178. default: "/var/www"
  179. - variable: hostPathEnabled
  180. label: "Enable Host Path for Nextcloud Data Volume"
  181. schema:
  182. type: boolean
  183. default: false
  184. show_subquestions_if: true
  185. subquestions:
  186. - variable: hostPath
  187. label: "Host Path for Nextcloud Data Volume"
  188. schema:
  189. type: hostpath
  190. required: true
  191. - variable: extraAppVolumeMounts
  192. label: "Nextcloud Extra Host Path Volumes"
  193. group: "Storage"
  194. schema:
  195. type: list
  196. items:
  197. - variable: extraAppVolume
  198. label: "Nextcloud Host Path Volume"
  199. description: "Add an extra host path volume for nextcloud application"
  200. schema:
  201. type: dict
  202. attrs:
  203. - variable: mountPath
  204. label: "Mount Path in Pod"
  205. description: "Path where the volume will be mounted inside the pod"
  206. schema:
  207. type: path
  208. required: true
  209. - variable: hostPath
  210. label: "Host Path"
  211. description: "Host path"
  212. schema:
  213. type: hostpath
  214. required: true
  215. - variable: postgresAppVolumeMounts
  216. label: "Postgres Storage"
  217. group: "Storage"
  218. schema:
  219. type: dict
  220. hidden: true
  221. attrs:
  222. - variable: postgres-data
  223. label: "Postgres Data Volume"
  224. schema:
  225. type: dict
  226. attrs:
  227. - variable: datasetName
  228. label: "Postgres Data Volume Name"
  229. schema:
  230. type: string
  231. $ref:
  232. - "normalize/ixVolume"
  233. default: "ix-postgres_data"
  234. editable: false
  235. - variable: mountPath
  236. label: "Postgresql Data Mount Path"
  237. description: "Path where the volume will be mounted inside the pod"
  238. schema:
  239. type: path
  240. editable: false
  241. default: "/var/lib/postgresql/data"
  242. - variable: postgres-backup
  243. label: "Postgres Backup Volume"
  244. schema:
  245. type: dict
  246. attrs:
  247. - variable: datasetName
  248. label: "Postgres Backup Volume Name"
  249. schema:
  250. type: string
  251. $ref:
  252. - "normalize/ixVolume"
  253. default: "ix-postgres_backups"
  254. editable: false
  255. - variable: mountPath
  256. label: "Postgresql Backup Mount Path"
  257. description: "Path where the volume will be mounted inside the pod"
  258. schema:
  259. type: path
  260. editable: false
  261. default: "/postgres_backups"
  262. - variable: enableResourceLimits
  263. label: "Enable Pod resource limits"
  264. group: "Resource Limits"
  265. schema:
  266. type: boolean
  267. default: false
  268. - variable: cpuLimit
  269. label: "CPU Limresource limitsit"
  270. description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
  271. group: "Resource Limits"
  272. schema:
  273. type: string
  274. show_if: [["enableResourceLimits", "=", true]]
  275. valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
  276. default: "4000m"
  277. - variable: memLimit
  278. label: "Memory Limit"
  279. group: "Resource Limits"
  280. 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"
  281. schema:
  282. type: string
  283. show_if: [["enableResourceLimits", "=", true]]
  284. valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
  285. default: "8Gi"