questions.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. groups:
  2. - name: Postgres Configuration
  3. description: Configure Postgres
  4. - name: Network Configuration
  5. description: Configure Network for Postgres
  6. - name: Storage Configuration
  7. description: Configure Storage for Postgres
  8. - name: Labels Configuration
  9. description: Configure Labels for Postgres
  10. - name: Resources Configuration
  11. description: Configure Resources for Postgres
  12. questions:
  13. - variable: postgres
  14. label: ""
  15. group: Postgres Configuration
  16. schema:
  17. type: dict
  18. attrs:
  19. - variable: image_selector
  20. label: Image Selector
  21. description: |
  22. The image to use for Postgres.</br>
  23. Selecting an image with pgvector will use a pgvector image (not the official postgres).
  24. schema:
  25. type: string
  26. default: "image"
  27. required: true
  28. enum:
  29. - value: "image"
  30. description: Postgres 17 Image
  31. - value: "v16_image"
  32. description: Postgres 16 Image
  33. - value: "v15_image"
  34. description: Postgres 15 Image
  35. - value: "v17_pgvector_image"
  36. description: Postgres 17 Image with pgvector
  37. - value: "v16_pgvector_image"
  38. description: Postgres 16 Image with pgvector
  39. - value: "v15_pgvector_image"
  40. description: Postgres 15 Image with pgvector
  41. - variable: user
  42. label: User
  43. description: The database user.
  44. schema:
  45. type: string
  46. default: ""
  47. required: true
  48. - variable: password
  49. label: Password
  50. description: The database password.
  51. schema:
  52. type: string
  53. default: ""
  54. required: true
  55. private: true
  56. - variable: database
  57. label: Database
  58. description: The database name.
  59. schema:
  60. type: string
  61. default: ""
  62. required: true
  63. - variable: additional_envs
  64. label: Additional Environment Variables
  65. schema:
  66. type: list
  67. default: []
  68. items:
  69. - variable: env
  70. label: Environment Variable
  71. schema:
  72. type: dict
  73. attrs:
  74. - variable: name
  75. label: Name
  76. schema:
  77. type: string
  78. required: true
  79. - variable: value
  80. label: Value
  81. schema:
  82. type: string
  83. - variable: network
  84. label: ""
  85. group: Network Configuration
  86. schema:
  87. type: dict
  88. attrs:
  89. - variable: tcp_port
  90. label: TCP Port
  91. schema:
  92. type: dict
  93. attrs:
  94. - variable: bind_mode
  95. label: Port Bind Mode
  96. description: |
  97. The port bind mode.</br>
  98. - Publish: The port will be published on the host for external access.</br>
  99. - Expose: The port will be exposed for inter-container communication.</br>
  100. - None: The port will not be exposed or published.</br>
  101. Note: If the Dockerfile defines an EXPOSE directive,
  102. the port will still be exposed for inter-container communication regardless of this setting.
  103. schema:
  104. type: string
  105. default: "published"
  106. enum:
  107. - value: "published"
  108. description: Publish port on the host for external access
  109. - value: "exposed"
  110. description: Expose port for inter-container communication
  111. - value: ""
  112. description: None
  113. - variable: port_number
  114. label: Port Number
  115. schema:
  116. type: int
  117. default: 5432
  118. min: 1
  119. max: 65535
  120. required: true
  121. - variable: host_ips
  122. label: Host IPs
  123. description: IPs on the host to bind this port
  124. schema:
  125. type: list
  126. show_if: [["bind_mode", "=", "published"]]
  127. default: []
  128. items:
  129. - variable: host_ip
  130. label: Host IP
  131. schema:
  132. type: string
  133. required: true
  134. $ref:
  135. - definitions/node_bind_ip
  136. - variable: host_network
  137. label: Host Network
  138. description: Bind to the host network. It's recommended to keep this disabled.
  139. schema:
  140. type: boolean
  141. default: false
  142. - variable: storage
  143. label: ""
  144. group: Storage Configuration
  145. schema:
  146. type: dict
  147. attrs:
  148. - variable: data
  149. label: Postgres Data Storage
  150. description: The path to store Postgres Data.
  151. schema:
  152. type: dict
  153. attrs:
  154. - variable: type
  155. label: Type
  156. description: |
  157. ixVolume: Is dataset created automatically by the system.</br>
  158. Host Path: Is a path that already exists on the system.
  159. schema:
  160. type: string
  161. required: true
  162. default: "ix_volume"
  163. enum:
  164. - value: "host_path"
  165. description: Host Path (Path that already exists on the system)
  166. - value: "ix_volume"
  167. description: ixVolume (Dataset created automatically by the system)
  168. - variable: ix_volume_config
  169. label: ixVolume Configuration
  170. description: The configuration for the ixVolume dataset.
  171. schema:
  172. type: dict
  173. show_if: [["type", "=", "ix_volume"]]
  174. $ref:
  175. - "normalize/ix_volume"
  176. attrs:
  177. - variable: acl_enable
  178. label: Enable ACL
  179. description: Enable ACL for the storage.
  180. schema:
  181. type: boolean
  182. default: false
  183. - variable: dataset_name
  184. label: Dataset Name
  185. description: The name of the dataset to use for storage.
  186. schema:
  187. type: string
  188. required: true
  189. hidden: true
  190. default: "data"
  191. - variable: acl_entries
  192. label: ACL Configuration
  193. schema:
  194. type: dict
  195. show_if: [["acl_enable", "=", true]]
  196. attrs: []
  197. - variable: host_path_config
  198. label: Host Path Configuration
  199. schema:
  200. type: dict
  201. show_if: [["type", "=", "host_path"]]
  202. attrs:
  203. - variable: acl_enable
  204. label: Enable ACL
  205. description: Enable ACL for the storage.
  206. schema:
  207. type: boolean
  208. default: false
  209. - variable: acl
  210. label: ACL Configuration
  211. schema:
  212. type: dict
  213. show_if: [["acl_enable", "=", true]]
  214. attrs: []
  215. $ref:
  216. - "normalize/acl"
  217. - variable: path
  218. label: Host Path
  219. description: The host path to use for storage.
  220. schema:
  221. type: hostpath
  222. show_if: [["acl_enable", "=", false]]
  223. required: true
  224. - variable: additional_storage
  225. label: Additional Storage
  226. schema:
  227. type: list
  228. default: []
  229. items:
  230. - variable: storageEntry
  231. label: Storage Entry
  232. schema:
  233. type: dict
  234. attrs:
  235. - variable: type
  236. label: Type
  237. description: |
  238. ixVolume: Is dataset created automatically by the system.</br>
  239. Host Path: Is a path that already exists on the system.</br>
  240. SMB Share: Is a SMB share that is mounted to as a volume.
  241. schema:
  242. type: string
  243. required: true
  244. default: "ix_volume"
  245. enum:
  246. - value: "host_path"
  247. description: Host Path (Path that already exists on the system)
  248. - value: "ix_volume"
  249. description: ixVolume (Dataset created automatically by the system)
  250. - value: "cifs"
  251. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  252. - variable: read_only
  253. label: Read Only
  254. description: Mount the volume as read only.
  255. schema:
  256. type: boolean
  257. default: false
  258. - variable: mount_path
  259. label: Mount Path
  260. description: The path inside the container to mount the storage.
  261. schema:
  262. type: path
  263. required: true
  264. - variable: host_path_config
  265. label: Host Path Configuration
  266. schema:
  267. type: dict
  268. show_if: [["type", "=", "host_path"]]
  269. attrs:
  270. - variable: acl_enable
  271. label: Enable ACL
  272. description: Enable ACL for the storage.
  273. schema:
  274. type: boolean
  275. default: false
  276. - variable: acl
  277. label: ACL Configuration
  278. schema:
  279. type: dict
  280. show_if: [["acl_enable", "=", true]]
  281. attrs: []
  282. $ref:
  283. - "normalize/acl"
  284. - variable: path
  285. label: Host Path
  286. description: The host path to use for storage.
  287. schema:
  288. type: hostpath
  289. show_if: [["acl_enable", "=", false]]
  290. required: true
  291. - variable: ix_volume_config
  292. label: ixVolume Configuration
  293. description: The configuration for the ixVolume dataset.
  294. schema:
  295. type: dict
  296. show_if: [["type", "=", "ix_volume"]]
  297. $ref:
  298. - "normalize/ix_volume"
  299. attrs:
  300. - variable: acl_enable
  301. label: Enable ACL
  302. description: Enable ACL for the storage.
  303. schema:
  304. type: boolean
  305. default: false
  306. - variable: dataset_name
  307. label: Dataset Name
  308. description: The name of the dataset to use for storage.
  309. schema:
  310. type: string
  311. required: true
  312. default: "storage_entry"
  313. - variable: acl_entries
  314. label: ACL Configuration
  315. schema:
  316. type: dict
  317. show_if: [["acl_enable", "=", true]]
  318. attrs: []
  319. $ref:
  320. - "normalize/acl"
  321. - variable: cifs_config
  322. label: SMB Configuration
  323. description: The configuration for the SMB dataset.
  324. schema:
  325. type: dict
  326. show_if: [["type", "=", "cifs"]]
  327. attrs:
  328. - variable: server
  329. label: Server
  330. description: The server to mount the SMB share.
  331. schema:
  332. type: string
  333. required: true
  334. - variable: path
  335. label: Path
  336. description: The path to mount the SMB share.
  337. schema:
  338. type: string
  339. required: true
  340. - variable: username
  341. label: Username
  342. description: The username to use for the SMB share.
  343. schema:
  344. type: string
  345. required: true
  346. - variable: password
  347. label: Password
  348. description: The password to use for the SMB share.
  349. schema:
  350. type: string
  351. required: true
  352. private: true
  353. - variable: domain
  354. label: Domain
  355. description: The domain to use for the SMB share.
  356. schema:
  357. type: string
  358. - variable: labels
  359. label: ""
  360. group: Labels Configuration
  361. schema:
  362. type: list
  363. default: []
  364. items:
  365. - variable: label
  366. label: Label
  367. schema:
  368. type: dict
  369. attrs:
  370. - variable: key
  371. label: Key
  372. schema:
  373. type: string
  374. required: true
  375. - variable: value
  376. label: Value
  377. schema:
  378. type: string
  379. required: true
  380. - variable: containers
  381. label: Containers
  382. description: Containers where the label should be applied
  383. schema:
  384. type: list
  385. items:
  386. - variable: container
  387. label: Container
  388. schema:
  389. type: string
  390. required: true
  391. enum:
  392. - value: postgres
  393. description: postgres
  394. - variable: resources
  395. label: ""
  396. group: Resources Configuration
  397. schema:
  398. type: dict
  399. attrs:
  400. - variable: limits
  401. label: Limits
  402. schema:
  403. type: dict
  404. attrs:
  405. - variable: cpus
  406. label: CPUs
  407. description: CPUs limit for Postgres.
  408. schema:
  409. type: int
  410. default: 2
  411. required: true
  412. - variable: memory
  413. label: Memory (in MB)
  414. description: Memory limit for Postgres.
  415. schema:
  416. type: int
  417. default: 4096
  418. required: true