questions.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. groups:
  2. - name: Wordpress Configuration
  3. description: Configure Wordpress
  4. - name: Network Configuration
  5. description: Configure Network for Wordpress
  6. - name: Storage Configuration
  7. description: Configure Storage for Wordpress
  8. - name: Resources Configuration
  9. description: Configure Resources for Wordpress
  10. portals:
  11. web_portal:
  12. protocols:
  13. - "$kubernetes-resource_configmap_portal_protocol"
  14. host:
  15. - "$kubernetes-resource_configmap_portal_host"
  16. ports:
  17. - "$kubernetes-resource_configmap_portal_port"
  18. path: "$kubernetes-resource_configmap_portal_path"
  19. admin:
  20. protocols:
  21. - "$kubernetes-resource_configmap_portal_protocol"
  22. host:
  23. - "$kubernetes-resource_configmap_portal_host"
  24. ports:
  25. - "$kubernetes-resource_configmap_portal_port"
  26. path: /wp-admin
  27. questions:
  28. - variable: wpConfig
  29. label: ""
  30. group: Wordpress Configuration
  31. schema:
  32. type: dict
  33. attrs:
  34. - variable: enableCronJob
  35. label: Enable CronJob
  36. description: |
  37. Enable CronJob for Wordpress executed by Kubernetes scheduler.</br>
  38. This will also disable running cron on page load.
  39. schema:
  40. type: boolean
  41. default: false
  42. - variable: cronSchedule
  43. label: Cron Schedule
  44. description: Cron schedule for Wordpress CronJob.
  45. schema:
  46. type: string
  47. default: "*/15 * * * *"
  48. show_if: [["enableCronJob", "=", true]]
  49. required: true
  50. - variable: additionalEnvs
  51. label: Additional Environment Variables
  52. description: Configure additional environment variables for Wordpress.
  53. schema:
  54. type: list
  55. default: []
  56. items:
  57. - variable: env
  58. label: Environment Variable
  59. schema:
  60. type: dict
  61. attrs:
  62. - variable: name
  63. label: Name
  64. schema:
  65. type: string
  66. required: true
  67. - variable: value
  68. label: Value
  69. schema:
  70. type: string
  71. required: true
  72. - variable: wpNetwork
  73. label: ""
  74. group: Network Configuration
  75. schema:
  76. type: dict
  77. attrs:
  78. - variable: webPort
  79. label: Web Port
  80. description: The port for the Wordpress WebUI.
  81. schema:
  82. type: int
  83. default: 30040
  84. min: 9000
  85. max: 65535
  86. required: true
  87. - variable: wpStorage
  88. label: ""
  89. group: Storage Configuration
  90. schema:
  91. type: dict
  92. attrs:
  93. - variable: data
  94. label: Wordpress Data Storage
  95. description: The path to store Wordpress data.
  96. schema:
  97. type: dict
  98. attrs:
  99. - variable: type
  100. label: Type
  101. description: |
  102. ixVolume: Is dataset created automatically by the system.</br>
  103. Host Path: Is a path that already exists on the system.
  104. schema:
  105. type: string
  106. required: true
  107. default: ixVolume
  108. enum:
  109. - value: hostPath
  110. description: Host Path (Path that already exists on the system)
  111. - value: ixVolume
  112. description: ixVolume (Dataset created automatically by the system)
  113. - variable: datasetName
  114. label: Dataset Name
  115. schema:
  116. type: string
  117. show_if: [["type", "=", "ixVolume"]]
  118. required: true
  119. hidden: true
  120. immutable: true
  121. default: data
  122. $ref:
  123. - "normalize/ixVolume"
  124. - variable: hostPath
  125. label: Host Path
  126. schema:
  127. type: hostpath
  128. show_if: [["type", "=", "hostPath"]]
  129. immutable: true
  130. required: true
  131. - variable: mariadbData
  132. label: Wordpress MariaDB Data Storage
  133. description: The path to store Wordpress MariaDB Data.
  134. schema:
  135. type: dict
  136. attrs:
  137. - variable: type
  138. label: Type
  139. description: |
  140. ixVolume: Is dataset created automatically by the system.</br>
  141. Host Path: Is a path that already exists on the system.
  142. schema:
  143. type: string
  144. required: true
  145. default: ixVolume
  146. enum:
  147. - value: hostPath
  148. description: Host Path (Path that already exists on the system)
  149. - value: ixVolume
  150. description: ixVolume (Dataset created automatically by the system)
  151. - variable: datasetName
  152. label: Dataset Name
  153. schema:
  154. type: string
  155. show_if: [["type", "=", "ixVolume"]]
  156. required: true
  157. hidden: true
  158. immutable: true
  159. default: mariadbData
  160. $ref:
  161. - "normalize/ixVolume"
  162. - variable: hostPath
  163. label: Host Path
  164. schema:
  165. type: hostpath
  166. show_if: [["type", "=", "hostPath"]]
  167. immutable: true
  168. required: true
  169. - variable: mariadbBackup
  170. label: Wordpress MariaDB Backup Storage
  171. description: The path to store Wordpress MariaDB Backup.
  172. schema:
  173. type: dict
  174. attrs:
  175. - variable: type
  176. label: Type
  177. description: |
  178. ixVolume: Is dataset created automatically by the system.</br>
  179. Host Path: Is a path that already exists on the system.
  180. schema:
  181. type: string
  182. required: true
  183. default: ixVolume
  184. enum:
  185. - value: hostPath
  186. description: Host Path (Path that already exists on the system)
  187. - value: ixVolume
  188. description: ixVolume (Dataset created automatically by the system)
  189. - variable: datasetName
  190. label: Dataset Name
  191. schema:
  192. type: string
  193. show_if: [["type", "=", "ixVolume"]]
  194. required: true
  195. hidden: true
  196. immutable: true
  197. default: mariadbBackup
  198. $ref:
  199. - "normalize/ixVolume"
  200. - variable: hostPath
  201. label: Host Path
  202. schema:
  203. type: hostpath
  204. show_if: [["type", "=", "hostPath"]]
  205. immutable: true
  206. required: true
  207. - variable: additionalStorages
  208. label: Additional Storage
  209. description: Additional storage for Wordpress.
  210. schema:
  211. type: list
  212. default: []
  213. items:
  214. - variable: storageEntry
  215. label: Storage Entry
  216. schema:
  217. type: dict
  218. attrs:
  219. - variable: type
  220. label: Type
  221. description: |
  222. ixVolume: Is dataset created automatically by the system.</br>
  223. Host Path: Is a path that already exists on the system.
  224. schema:
  225. type: string
  226. required: true
  227. default: "ixVolume"
  228. enum:
  229. - value: "hostPath"
  230. description: Host Path (Path that already exists on the system)
  231. - value: "ixVolume"
  232. description: ixVolume (Dataset created automatically by the system)
  233. - variable: mountPath
  234. label: Mount Path
  235. description: The path inside the container to mount the storage.
  236. schema:
  237. type: path
  238. required: true
  239. - variable: hostPath
  240. label: Host Path
  241. description: The host path to use for storage.
  242. schema:
  243. type: hostpath
  244. show_if: [["type", "=", "hostPath"]]
  245. required: true
  246. - variable: datasetName
  247. label: Dataset Name
  248. description: The name of the dataset to use for storage.
  249. schema:
  250. type: string
  251. show_if: [["type", "=", "ixVolume"]]
  252. required: true
  253. immutable: true
  254. default: "storage_entry"
  255. $ref:
  256. - "normalize/ixVolume"
  257. - variable: resources
  258. label: ""
  259. group: Resources Configuration
  260. schema:
  261. type: dict
  262. attrs:
  263. - variable: limits
  264. label: Limits
  265. schema:
  266. type: dict
  267. attrs:
  268. - variable: cpu
  269. label: CPU
  270. description: CPU limit for Wordpress.
  271. schema:
  272. type: string
  273. max_length: 6
  274. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  275. valid_chars_error: |
  276. Valid CPU limit formats are</br>
  277. - Plain Integer - eg. 1</br>
  278. - Float - eg. 0.5</br>
  279. - Milicpu - eg. 500m
  280. default: "4000m"
  281. required: true
  282. - variable: memory
  283. label: Memory
  284. description: Memory limit for Wordpress.
  285. schema:
  286. type: string
  287. max_length: 12
  288. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  289. valid_chars_error: |
  290. Valid Memory limit formats are</br>
  291. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  292. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  293. - Plain Integer in bytes - eg. 1024</br>
  294. - Exponent - eg. 134e6
  295. default: "8Gi"
  296. required: true