questions.yaml 10 KB

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