questions.yaml 21 KB

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