questions.yaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. groups:
  2. - name: SeaweedFS Configuration
  3. description: Configure SeaweedFS
  4. - name: User and Group Configuration
  5. description: Configure User and Group for SeaweedFS
  6. - name: Network Configuration
  7. description: Configure Network for SeaweedFS
  8. - name: Storage Configuration
  9. description: Configure Storage for SeaweedFS
  10. - name: Labels Configuration
  11. description: Configure Labels for SeaweedFS
  12. - name: Resources Configuration
  13. description: Configure Resources for SeaweedFS
  14. questions:
  15. - variable: TZ
  16. group: SeaweedFS Configuration
  17. label: Timezone
  18. schema:
  19. type: string
  20. default: Etc/UTC
  21. required: true
  22. $ref:
  23. - definitions/timezone
  24. - variable: seaweedfs
  25. label: ""
  26. group: SeaweedFS Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: data_center_name
  31. label: Data Center Name
  32. schema:
  33. type: string
  34. default: My Data Center
  35. required: true
  36. - variable: rack_name
  37. label: Rack Name
  38. schema:
  39. type: string
  40. default: My Rack
  41. required: true
  42. - variable: additional_envs
  43. label: Additional Environment Variables
  44. schema:
  45. type: list
  46. default: []
  47. items:
  48. - variable: env
  49. label: Environment Variable
  50. schema:
  51. type: dict
  52. attrs:
  53. - variable: name
  54. label: Name
  55. schema:
  56. type: string
  57. required: true
  58. - variable: value
  59. label: Value
  60. schema:
  61. type: string
  62. - variable: run_as
  63. label: ""
  64. group: User and Group Configuration
  65. schema:
  66. type: dict
  67. attrs:
  68. - variable: user
  69. label: User ID
  70. description: The user id that SeaweedFS files will be owned by.
  71. schema:
  72. type: int
  73. min: 568
  74. default: 568
  75. required: true
  76. - variable: group
  77. label: Group ID
  78. description: The group id that SeaweedFS files will be owned by.
  79. schema:
  80. type: int
  81. min: 568
  82. default: 568
  83. required: true
  84. - variable: network
  85. label: ""
  86. group: Network Configuration
  87. schema:
  88. type: dict
  89. attrs:
  90. - variable: master_port
  91. label: Master Port
  92. schema:
  93. type: dict
  94. attrs:
  95. - variable: bind_mode
  96. label: Port Bind Mode
  97. description: |
  98. The port bind mode.</br>
  99. - Publish: The port will be published on the host for external access.</br>
  100. - Expose: The port will be exposed for inter-container communication.</br>
  101. - None: The port will not be exposed or published.</br>
  102. Note: If the Dockerfile defines an EXPOSE directive,
  103. the port will still be exposed for inter-container communication regardless of this setting.
  104. schema:
  105. type: string
  106. default: "published"
  107. enum:
  108. - value: "published"
  109. description: Publish port on the host for external access
  110. - value: "exposed"
  111. description: Expose port for inter-container communication
  112. - value: ""
  113. description: None
  114. - variable: port_number
  115. label: Port Number
  116. schema:
  117. type: int
  118. default: 30200
  119. min: 1
  120. max: 65535
  121. required: true
  122. - variable: host_ips
  123. label: Host IPs
  124. description: IPs on the host to bind this port
  125. schema:
  126. type: list
  127. show_if: [["bind_mode", "=", "published"]]
  128. default: []
  129. items:
  130. - variable: host_ip
  131. label: Host IP
  132. schema:
  133. type: string
  134. required: true
  135. $ref:
  136. - definitions/node_bind_ip
  137. - variable: volume_port
  138. label: Volume Port
  139. schema:
  140. type: dict
  141. attrs:
  142. - variable: bind_mode
  143. label: Port Bind Mode
  144. description: |
  145. The port bind mode.</br>
  146. - Publish: The port will be published on the host for external access.</br>
  147. - Expose: The port will be exposed for inter-container communication.</br>
  148. - None: The port will not be exposed or published.</br>
  149. Note: If the Dockerfile defines an EXPOSE directive,
  150. the port will still be exposed for inter-container communication regardless of this setting.
  151. schema:
  152. type: string
  153. default: "published"
  154. enum:
  155. - value: "published"
  156. description: Publish port on the host for external access
  157. - value: "exposed"
  158. description: Expose port for inter-container communication
  159. - value: ""
  160. description: None
  161. - variable: port_number
  162. label: Port Number
  163. schema:
  164. type: int
  165. default: 30201
  166. min: 1
  167. max: 65535
  168. required: true
  169. - variable: host_ips
  170. label: Host IPs
  171. description: IPs on the host to bind this port
  172. schema:
  173. type: list
  174. show_if: [["bind_mode", "=", "published"]]
  175. default: []
  176. items:
  177. - variable: host_ip
  178. label: Host IP
  179. schema:
  180. type: string
  181. required: true
  182. $ref:
  183. - definitions/node_bind_ip
  184. - variable: filer_port
  185. label: Filer Port
  186. description: Filer provides a simple web interface for browsing and downloading files.
  187. schema:
  188. type: dict
  189. attrs:
  190. - variable: bind_mode
  191. label: Port Bind Mode
  192. description: |
  193. The port bind mode.</br>
  194. - Publish: The port will be published on the host for external access.</br>
  195. - Expose: The port will be exposed for inter-container communication.</br>
  196. - None: The port will not be exposed or published.</br>
  197. Note: If the Dockerfile defines an EXPOSE directive,
  198. the port will still be exposed for inter-container communication regardless of this setting.
  199. schema:
  200. type: string
  201. default: "published"
  202. enum:
  203. - value: "published"
  204. description: Publish port on the host for external access
  205. - value: "exposed"
  206. description: Expose port for inter-container communication
  207. - value: ""
  208. description: None
  209. - variable: port_number
  210. label: Port Number
  211. schema:
  212. type: int
  213. default: 30202
  214. min: 1
  215. max: 65535
  216. required: true
  217. - variable: host_ips
  218. label: Host IPs
  219. description: IPs on the host to bind this port
  220. schema:
  221. type: list
  222. show_if: [["bind_mode", "=", "published"]]
  223. default: []
  224. items:
  225. - variable: host_ip
  226. label: Host IP
  227. schema:
  228. type: string
  229. required: true
  230. $ref:
  231. - definitions/node_bind_ip
  232. - variable: s3_port
  233. label: S3 Port
  234. schema:
  235. type: dict
  236. attrs:
  237. - variable: bind_mode
  238. label: Port Bind Mode
  239. description: |
  240. The port bind mode.</br>
  241. - Publish: The port will be published on the host for external access.</br>
  242. - Expose: The port will be exposed for inter-container communication.</br>
  243. - None: The port will not be exposed or published.</br>
  244. Note: If the Dockerfile defines an EXPOSE directive,
  245. the port will still be exposed for inter-container communication regardless of this setting.
  246. schema:
  247. type: string
  248. default: "published"
  249. enum:
  250. - value: "published"
  251. description: Publish port on the host for external access
  252. - value: "exposed"
  253. description: Expose port for inter-container communication
  254. - value: ""
  255. description: None
  256. - variable: port_number
  257. label: Port Number
  258. schema:
  259. type: int
  260. default: 30203
  261. min: 1
  262. max: 65535
  263. required: true
  264. - variable: host_ips
  265. label: Host IPs
  266. description: IPs on the host to bind this port
  267. schema:
  268. type: list
  269. show_if: [["bind_mode", "=", "published"]]
  270. default: []
  271. items:
  272. - variable: host_ip
  273. label: Host IP
  274. schema:
  275. type: string
  276. required: true
  277. $ref:
  278. - definitions/node_bind_ip
  279. - variable: webdav_port
  280. label: WebDAV Port
  281. schema:
  282. type: dict
  283. attrs:
  284. - variable: bind_mode
  285. label: Port Bind Mode
  286. description: |
  287. The port bind mode.</br>
  288. - Publish: The port will be published on the host for external access.</br>
  289. - Expose: The port will be exposed for inter-container communication.</br>
  290. - None: The port will not be exposed or published.</br>
  291. Note: If the Dockerfile defines an EXPOSE directive,
  292. the port will still be exposed for inter-container communication regardless of this setting.
  293. schema:
  294. type: string
  295. default: "published"
  296. enum:
  297. - value: "published"
  298. description: Publish port on the host for external access
  299. - value: "exposed"
  300. description: Expose port for inter-container communication
  301. - value: ""
  302. description: None
  303. - variable: port_number
  304. label: Port Number
  305. schema:
  306. type: int
  307. default: 30204
  308. min: 1
  309. max: 65535
  310. required: true
  311. - variable: host_ips
  312. label: Host IPs
  313. description: IPs on the host to bind this port
  314. schema:
  315. type: list
  316. show_if: [["bind_mode", "=", "published"]]
  317. default: []
  318. items:
  319. - variable: host_ip
  320. label: Host IP
  321. schema:
  322. type: string
  323. required: true
  324. $ref:
  325. - definitions/node_bind_ip
  326. - variable: host_network
  327. label: Host Network
  328. description: |
  329. Bind to the host network. It's recommended to keep this disabled.
  330. schema:
  331. type: boolean
  332. default: false
  333. - variable: storage
  334. label: ""
  335. group: Storage Configuration
  336. schema:
  337. type: dict
  338. attrs:
  339. - variable: data
  340. label: SeaweedFS Data Storage
  341. description: The path to store SeaweedFS Data.
  342. schema:
  343. type: dict
  344. attrs:
  345. - variable: type
  346. label: Type
  347. description: |
  348. ixVolume: Is dataset created automatically by the system.</br>
  349. Host Path: Is a path that already exists on the system.
  350. schema:
  351. type: string
  352. required: true
  353. default: "ix_volume"
  354. enum:
  355. - value: "host_path"
  356. description: Host Path (Path that already exists on the system)
  357. - value: "ix_volume"
  358. description: ixVolume (Dataset created automatically by the system)
  359. - variable: ix_volume_config
  360. label: ixVolume Configuration
  361. description: The configuration for the ixVolume dataset.
  362. schema:
  363. type: dict
  364. show_if: [["type", "=", "ix_volume"]]
  365. $ref:
  366. - "normalize/ix_volume"
  367. attrs:
  368. - variable: acl_enable
  369. label: Enable ACL
  370. description: Enable ACL for the storage.
  371. schema:
  372. type: boolean
  373. default: false
  374. - variable: dataset_name
  375. label: Dataset Name
  376. description: The name of the dataset to use for storage.
  377. schema:
  378. type: string
  379. required: true
  380. hidden: true
  381. default: "data"
  382. - variable: acl_entries
  383. label: ACL Configuration
  384. schema:
  385. type: dict
  386. show_if: [["acl_enable", "=", true]]
  387. attrs: []
  388. - variable: host_path_config
  389. label: Host Path Configuration
  390. schema:
  391. type: dict
  392. show_if: [["type", "=", "host_path"]]
  393. attrs:
  394. - variable: acl_enable
  395. label: Enable ACL
  396. description: Enable ACL for the storage.
  397. schema:
  398. type: boolean
  399. default: false
  400. - variable: acl
  401. label: ACL Configuration
  402. schema:
  403. type: dict
  404. show_if: [["acl_enable", "=", true]]
  405. attrs: []
  406. $ref:
  407. - "normalize/acl"
  408. - variable: path
  409. label: Host Path
  410. description: The host path to use for storage.
  411. schema:
  412. type: hostpath
  413. show_if: [["acl_enable", "=", false]]
  414. required: true
  415. - variable: additional_storage
  416. label: Additional Storage
  417. schema:
  418. type: list
  419. default: []
  420. items:
  421. - variable: storageEntry
  422. label: Storage Entry
  423. schema:
  424. type: dict
  425. attrs:
  426. - variable: type
  427. label: Type
  428. description: |
  429. ixVolume: Is dataset created automatically by the system.</br>
  430. Host Path: Is a path that already exists on the system.</br>
  431. SMB Share: Is a SMB share that is mounted to as a volume.
  432. schema:
  433. type: string
  434. required: true
  435. default: "ix_volume"
  436. enum:
  437. - value: "host_path"
  438. description: Host Path (Path that already exists on the system)
  439. - value: "ix_volume"
  440. description: ixVolume (Dataset created automatically by the system)
  441. - value: "cifs"
  442. description: SMB/CIFS Share (Mounts a volume to a SMB share)
  443. - variable: read_only
  444. label: Read Only
  445. description: Mount the volume as read only.
  446. schema:
  447. type: boolean
  448. default: false
  449. - variable: mount_path
  450. label: Mount Path
  451. description: The path inside the container to mount the storage.
  452. schema:
  453. type: path
  454. required: true
  455. - variable: host_path_config
  456. label: Host Path Configuration
  457. schema:
  458. type: dict
  459. show_if: [["type", "=", "host_path"]]
  460. attrs:
  461. - variable: acl_enable
  462. label: Enable ACL
  463. description: Enable ACL for the storage.
  464. schema:
  465. type: boolean
  466. default: false
  467. - variable: acl
  468. label: ACL Configuration
  469. schema:
  470. type: dict
  471. show_if: [["acl_enable", "=", true]]
  472. attrs: []
  473. $ref:
  474. - "normalize/acl"
  475. - variable: path
  476. label: Host Path
  477. description: The host path to use for storage.
  478. schema:
  479. type: hostpath
  480. show_if: [["acl_enable", "=", false]]
  481. required: true
  482. - variable: ix_volume_config
  483. label: ixVolume Configuration
  484. description: The configuration for the ixVolume dataset.
  485. schema:
  486. type: dict
  487. show_if: [["type", "=", "ix_volume"]]
  488. $ref:
  489. - "normalize/ix_volume"
  490. attrs:
  491. - variable: acl_enable
  492. label: Enable ACL
  493. description: Enable ACL for the storage.
  494. schema:
  495. type: boolean
  496. default: false
  497. - variable: dataset_name
  498. label: Dataset Name
  499. description: The name of the dataset to use for storage.
  500. schema:
  501. type: string
  502. required: true
  503. default: "storage_entry"
  504. - variable: acl_entries
  505. label: ACL Configuration
  506. schema:
  507. type: dict
  508. show_if: [["acl_enable", "=", true]]
  509. attrs: []
  510. $ref:
  511. - "normalize/acl"
  512. - variable: cifs_config
  513. label: SMB Configuration
  514. description: The configuration for the SMB dataset.
  515. schema:
  516. type: dict
  517. show_if: [["type", "=", "cifs"]]
  518. attrs:
  519. - variable: server
  520. label: Server
  521. description: The server to mount the SMB share.
  522. schema:
  523. type: string
  524. required: true
  525. - variable: path
  526. label: Path
  527. description: The path to mount the SMB share.
  528. schema:
  529. type: string
  530. required: true
  531. - variable: username
  532. label: Username
  533. description: The username to use for the SMB share.
  534. schema:
  535. type: string
  536. required: true
  537. - variable: password
  538. label: Password
  539. description: The password to use for the SMB share.
  540. schema:
  541. type: string
  542. required: true
  543. private: true
  544. - variable: domain
  545. label: Domain
  546. description: The domain to use for the SMB share.
  547. schema:
  548. type: string
  549. - variable: labels
  550. label: ""
  551. group: Labels Configuration
  552. schema:
  553. type: list
  554. default: []
  555. items:
  556. - variable: label
  557. label: Label
  558. schema:
  559. type: dict
  560. attrs:
  561. - variable: key
  562. label: Key
  563. schema:
  564. type: string
  565. required: true
  566. - variable: value
  567. label: Value
  568. schema:
  569. type: string
  570. required: true
  571. - variable: containers
  572. label: Containers
  573. description: Containers where the label should be applied
  574. schema:
  575. type: list
  576. items:
  577. - variable: container
  578. label: Container
  579. schema:
  580. type: string
  581. required: true
  582. enum:
  583. - value: seaweedfs
  584. description: seaweedfs
  585. - variable: resources
  586. label: ""
  587. group: Resources Configuration
  588. schema:
  589. type: dict
  590. attrs:
  591. - variable: limits
  592. label: Limits
  593. schema:
  594. type: dict
  595. attrs:
  596. - variable: cpus
  597. label: CPUs
  598. description: CPUs limit for SeaweedFS.
  599. schema:
  600. type: int
  601. default: 2
  602. required: true
  603. - variable: memory
  604. label: Memory (in MB)
  605. description: Memory limit for SeaweedFS.
  606. schema:
  607. type: int
  608. default: 4096
  609. required: true