questions.yaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. groups:
  2. - name: Photoprism Configuration
  3. description: Configure Photoprism
  4. - name: User and Group Configuration
  5. description: Configure User and Group for Photoprism
  6. - name: Advanced Pod Configuration
  7. description: Configure Advanced Pod Options for Photoprism
  8. - name: Network Configuration
  9. description: Configure Network for Photoprism
  10. - name: Storage Configuration
  11. description: Configure Storage for Photoprism
  12. - name: Resources Configuration
  13. description: Configure Resources for Photoprism
  14. portals:
  15. web_portal:
  16. protocols:
  17. - "$kubernetes-resource_configmap_portal_protocol"
  18. host:
  19. - "$kubernetes-resource_configmap_portal_host"
  20. ports:
  21. - "$kubernetes-resource_configmap_portal_port"
  22. path: "$kubernetes-resource_configmap_portal_path"
  23. questions:
  24. - variable: photoprismConfig
  25. label: ""
  26. group: Photoprism Configuration
  27. schema:
  28. type: dict
  29. attrs:
  30. - variable: siteURL
  31. label: Site URL
  32. description: The URL for Photoprism.
  33. schema:
  34. type: string
  35. default: ""
  36. - variable: public
  37. label: Public
  38. description: |
  39. Enable public access to Photoprism.</br>
  40. If enabled, Photoprism will be accessible without authentication.
  41. schema:
  42. type: boolean
  43. default: false
  44. - variable: password
  45. label: Password
  46. description: |
  47. Set a password for Photoprism.</br>
  48. If public access is enabled, a password is required.
  49. schema:
  50. type: string
  51. default: ""
  52. required: true
  53. show_if: [["public", "=", false]]
  54. private: true
  55. - variable: additionalEnvs
  56. label: Additional Environment Variables
  57. description: Configure additional environment variables for Photoprism.
  58. schema:
  59. type: list
  60. default: []
  61. items:
  62. - variable: env
  63. label: Environment Variable
  64. schema:
  65. type: dict
  66. attrs:
  67. - variable: name
  68. label: Name
  69. schema:
  70. type: string
  71. required: true
  72. - variable: value
  73. label: Value
  74. schema:
  75. type: string
  76. required: true
  77. - variable: photoprismID
  78. label: ""
  79. group: User and Group Configuration
  80. schema:
  81. type: dict
  82. attrs:
  83. - variable: user
  84. label: User ID
  85. description: The user id that Photoprism files will be owned by.
  86. schema:
  87. type: int
  88. min: 2
  89. default: 568
  90. required: true
  91. - variable: group
  92. label: Group ID
  93. description: The group id that Photoprism files will be owned by.
  94. schema:
  95. type: int
  96. min: 2
  97. default: 568
  98. required: true
  99. - variable: podOptions
  100. label: ""
  101. group: Advanced Pod Configuration
  102. schema:
  103. type: dict
  104. attrs:
  105. - variable: dnsConfig
  106. label: Advanced DNS Configuration
  107. schema:
  108. type: dict
  109. attrs:
  110. - variable: options
  111. label: DNS Options
  112. schema:
  113. type: list
  114. items:
  115. - variable: optionsEntry
  116. label: DNS Option Entry
  117. schema:
  118. type: dict
  119. attrs:
  120. - variable: name
  121. label: Option Name
  122. schema:
  123. type: string
  124. required: true
  125. - variable: value
  126. label: Option Value
  127. schema:
  128. type: string
  129. required: true
  130. - variable: photoprismNetwork
  131. label: ""
  132. group: Network Configuration
  133. schema:
  134. type: dict
  135. attrs:
  136. - variable: webPort
  137. label: WebUI Port
  138. description: The port for Photoprism WebUI
  139. schema:
  140. type: int
  141. default: 20800
  142. min: 9000
  143. max: 65535
  144. required: true
  145. - variable: hostNetwork
  146. label: Host Network
  147. description: |
  148. Bind to the host network. It's recommended to keep this disabled.
  149. schema:
  150. type: boolean
  151. default: false
  152. - variable: certificateID
  153. label: Certificate
  154. description: The certificate to use for Photoprism
  155. schema:
  156. type: int
  157. "null": true
  158. $ref:
  159. - "definitions/certificate"
  160. - variable: photoprismStorage
  161. label: ""
  162. group: Storage Configuration
  163. schema:
  164. type: dict
  165. attrs:
  166. - variable: import
  167. label: Photoprism Import Storage
  168. description: The path to store Photoprism Import.
  169. schema:
  170. type: dict
  171. attrs:
  172. - variable: type
  173. label: Type
  174. description: |
  175. ixVolume: Is dataset created automatically by the system.</br>
  176. Host Path: Is a path that already exists on the system.
  177. schema:
  178. type: string
  179. required: true
  180. immutable: true
  181. default: "ixVolume"
  182. enum:
  183. - value: "hostPath"
  184. description: Host Path (Path that already exists on the system)
  185. - value: "ixVolume"
  186. description: ixVolume (Dataset created automatically by the system)
  187. - variable: ixVolumeConfig
  188. label: ixVolume Configuration
  189. description: The configuration for the ixVolume dataset.
  190. schema:
  191. type: dict
  192. show_if: [["type", "=", "ixVolume"]]
  193. $ref:
  194. - "normalize/ixVolume"
  195. attrs:
  196. - variable: aclEnable
  197. label: Enable ACL
  198. description: Enable ACL for the dataset.
  199. schema:
  200. type: boolean
  201. default: false
  202. - variable: datasetName
  203. label: Dataset Name
  204. description: The name of the dataset to use for storage.
  205. schema:
  206. type: string
  207. required: true
  208. immutable: true
  209. hidden: true
  210. default: "import"
  211. - variable: aclEntries
  212. label: ACL Configuration
  213. schema:
  214. type: dict
  215. show_if: [["aclEnable", "=", true]]
  216. attrs: []
  217. - variable: hostPathConfig
  218. label: Host Path Configuration
  219. schema:
  220. type: dict
  221. show_if: [["type", "=", "hostPath"]]
  222. attrs:
  223. - variable: aclEnable
  224. label: Enable ACL
  225. description: Enable ACL for the dataset.
  226. schema:
  227. type: boolean
  228. default: false
  229. - variable: acl
  230. label: ACL Configuration
  231. schema:
  232. type: dict
  233. show_if: [["aclEnable", "=", true]]
  234. attrs: []
  235. $ref:
  236. - "normalize/acl"
  237. - variable: hostPath
  238. label: Host Path
  239. description: The host path to use for storage.
  240. schema:
  241. type: hostpath
  242. show_if: [["aclEnable", "=", false]]
  243. required: true
  244. - variable: storage
  245. label: Photoprism Storage
  246. description: The path to store Photoprism Storage.
  247. schema:
  248. type: dict
  249. attrs:
  250. - variable: type
  251. label: Type
  252. description: |
  253. ixVolume: Is dataset created automatically by the system.</br>
  254. Host Path: Is a path that already exists on the system.
  255. schema:
  256. type: string
  257. required: true
  258. immutable: true
  259. default: "ixVolume"
  260. enum:
  261. - value: "hostPath"
  262. description: Host Path (Path that already exists on the system)
  263. - value: "ixVolume"
  264. description: ixVolume (Dataset created automatically by the system)
  265. - variable: ixVolumeConfig
  266. label: ixVolume Configuration
  267. description: The configuration for the ixVolume dataset.
  268. schema:
  269. type: dict
  270. show_if: [["type", "=", "ixVolume"]]
  271. $ref:
  272. - "normalize/ixVolume"
  273. attrs:
  274. - variable: aclEnable
  275. label: Enable ACL
  276. description: Enable ACL for the dataset.
  277. schema:
  278. type: boolean
  279. default: false
  280. - variable: datasetName
  281. label: Dataset Name
  282. description: The name of the dataset to use for storage.
  283. schema:
  284. type: string
  285. required: true
  286. immutable: true
  287. hidden: true
  288. default: "storage"
  289. - variable: aclEntries
  290. label: ACL Configuration
  291. schema:
  292. type: dict
  293. show_if: [["aclEnable", "=", true]]
  294. attrs: []
  295. - variable: hostPathConfig
  296. label: Host Path Configuration
  297. schema:
  298. type: dict
  299. show_if: [["type", "=", "hostPath"]]
  300. attrs:
  301. - variable: aclEnable
  302. label: Enable ACL
  303. description: Enable ACL for the dataset.
  304. schema:
  305. type: boolean
  306. default: false
  307. - variable: acl
  308. label: ACL Configuration
  309. schema:
  310. type: dict
  311. show_if: [["aclEnable", "=", true]]
  312. attrs: []
  313. $ref:
  314. - "normalize/acl"
  315. - variable: hostPath
  316. label: Host Path
  317. description: The host path to use for storage.
  318. schema:
  319. type: hostpath
  320. show_if: [["aclEnable", "=", false]]
  321. required: true
  322. - variable: originals
  323. label: Photoprism Originals Storage
  324. description: The path to store Photoprism Originals.
  325. schema:
  326. type: dict
  327. attrs:
  328. - variable: type
  329. label: Type
  330. description: |
  331. ixVolume: Is dataset created automatically by the system.</br>
  332. Host Path: Is a path that already exists on the system.</br>
  333. schema:
  334. type: string
  335. required: true
  336. immutable: true
  337. default: "ixVolume"
  338. enum:
  339. - value: "hostPath"
  340. description: Host Path (Path that already exists on the system)
  341. - value: "ixVolume"
  342. description: ixVolume (Dataset created automatically by the system)
  343. - value: "emptyDir"
  344. description: emptyDir (Temporary directory created on the disk or in memory)
  345. - variable: readOnly
  346. label: Read Only
  347. description: Mount the volume as read only.
  348. schema:
  349. type: boolean
  350. default: false
  351. - variable: ixVolumeConfig
  352. label: ixVolume Configuration
  353. description: The configuration for the ixVolume dataset.
  354. schema:
  355. type: dict
  356. show_if: [["type", "=", "ixVolume"]]
  357. $ref:
  358. - "normalize/ixVolume"
  359. attrs:
  360. - variable: aclEnable
  361. label: Enable ACL
  362. description: Enable ACL for the dataset.
  363. schema:
  364. type: boolean
  365. default: false
  366. - variable: datasetName
  367. label: Dataset Name
  368. description: The name of the dataset to use for storage.
  369. schema:
  370. type: string
  371. required: true
  372. immutable: true
  373. hidden: true
  374. default: "originals"
  375. - variable: aclEntries
  376. label: ACL Configuration
  377. schema:
  378. type: dict
  379. show_if: [["aclEnable", "=", true]]
  380. attrs: []
  381. - variable: hostPathConfig
  382. label: Host Path Configuration
  383. schema:
  384. type: dict
  385. show_if: [["type", "=", "hostPath"]]
  386. attrs:
  387. - variable: aclEnable
  388. label: Enable ACL
  389. description: Enable ACL for the dataset.
  390. schema:
  391. type: boolean
  392. default: false
  393. - variable: acl
  394. label: ACL Configuration
  395. schema:
  396. type: dict
  397. show_if: [["aclEnable", "=", true]]
  398. attrs: []
  399. $ref:
  400. - "normalize/acl"
  401. - variable: hostPath
  402. label: Host Path
  403. description: The host path to use for storage.
  404. schema:
  405. type: hostpath
  406. show_if: [["aclEnable", "=", false]]
  407. required: true
  408. - variable: additionalStorages
  409. label: Additional Storage
  410. description: Additional storage for Photoprism.
  411. schema:
  412. type: list
  413. default: []
  414. items:
  415. - variable: storageEntry
  416. label: Storage Entry
  417. schema:
  418. type: dict
  419. attrs:
  420. - variable: type
  421. label: Type
  422. description: |
  423. ixVolume: Is dataset created automatically by the system.</br>
  424. Host Path: Is a path that already exists on the system.</br>
  425. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  426. schema:
  427. type: string
  428. required: true
  429. default: "ixVolume"
  430. immutable: true
  431. enum:
  432. - value: "hostPath"
  433. description: Host Path (Path that already exists on the system)
  434. - value: "ixVolume"
  435. description: ixVolume (Dataset created automatically by the system)
  436. - value: "smb-pv-pvc"
  437. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  438. - variable: readOnly
  439. label: Read Only
  440. description: Mount the volume as read only.
  441. schema:
  442. type: boolean
  443. default: false
  444. - variable: mountPath
  445. label: Mount Path
  446. description: The path inside the container to mount the storage.
  447. schema:
  448. type: path
  449. required: true
  450. - variable: hostPathConfig
  451. label: Host Path Configuration
  452. schema:
  453. type: dict
  454. show_if: [["type", "=", "hostPath"]]
  455. attrs:
  456. - variable: aclEnable
  457. label: Enable ACL
  458. description: Enable ACL for the dataset.
  459. schema:
  460. type: boolean
  461. default: false
  462. - variable: acl
  463. label: ACL Configuration
  464. schema:
  465. type: dict
  466. show_if: [["aclEnable", "=", true]]
  467. attrs: []
  468. $ref:
  469. - "normalize/acl"
  470. - variable: hostPath
  471. label: Host Path
  472. description: The host path to use for storage.
  473. schema:
  474. type: hostpath
  475. show_if: [["aclEnable", "=", false]]
  476. required: true
  477. - variable: ixVolumeConfig
  478. label: ixVolume Configuration
  479. description: The configuration for the ixVolume dataset.
  480. schema:
  481. type: dict
  482. show_if: [["type", "=", "ixVolume"]]
  483. $ref:
  484. - "normalize/ixVolume"
  485. attrs:
  486. - variable: aclEnable
  487. label: Enable ACL
  488. description: Enable ACL for the dataset.
  489. schema:
  490. type: boolean
  491. default: false
  492. - variable: datasetName
  493. label: Dataset Name
  494. description: The name of the dataset to use for storage.
  495. schema:
  496. type: string
  497. required: true
  498. immutable: true
  499. default: "storage_entry"
  500. - variable: aclEntries
  501. label: ACL Configuration
  502. schema:
  503. type: dict
  504. show_if: [["aclEnable", "=", true]]
  505. attrs: []
  506. - variable: smbConfig
  507. label: SMB Share Configuration
  508. description: The configuration for the SMB Share.
  509. schema:
  510. type: dict
  511. show_if: [["type", "=", "smb-pv-pvc"]]
  512. attrs:
  513. - variable: server
  514. label: Server
  515. description: The server for the SMB share.
  516. schema:
  517. type: string
  518. required: true
  519. - variable: share
  520. label: Share
  521. description: The share name for the SMB share.
  522. schema:
  523. type: string
  524. required: true
  525. - variable: domain
  526. label: Domain (Optional)
  527. description: The domain for the SMB share.
  528. schema:
  529. type: string
  530. - variable: username
  531. label: Username
  532. description: The username for the SMB share.
  533. schema:
  534. type: string
  535. required: true
  536. - variable: password
  537. label: Password
  538. description: The password for the SMB share.
  539. schema:
  540. type: string
  541. required: true
  542. private: true
  543. - variable: size
  544. label: Size (in Gi)
  545. description: The size of the volume quota.
  546. schema:
  547. type: int
  548. required: true
  549. min: 1
  550. default: 1
  551. - variable: resources
  552. label: Resources Configuration
  553. group: Resources Configuration
  554. schema:
  555. type: dict
  556. attrs:
  557. - variable: limits
  558. label: Limits
  559. schema:
  560. type: dict
  561. attrs:
  562. - variable: cpu
  563. label: CPU
  564. description: CPU limit for Photoprism.
  565. schema:
  566. type: string
  567. max_length: 6
  568. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  569. valid_chars_error: |
  570. Valid CPU limit formats are</br>
  571. - Plain Integer - eg. 1</br>
  572. - Float - eg. 0.5</br>
  573. - Milicpu - eg. 500m
  574. default: "4000m"
  575. required: true
  576. - variable: memory
  577. label: Memory
  578. description: Memory limit for Photoprism.
  579. schema:
  580. type: string
  581. max_length: 12
  582. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  583. valid_chars_error: |
  584. Valid Memory limit formats are</br>
  585. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  586. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  587. - Plain Integer in bytes - eg. 1024</br>
  588. - Exponent - eg. 134e6
  589. default: "8Gi"
  590. required: true
  591. - variable: photoprismGPU
  592. group: Resources Configuration
  593. label: GPU Configuration
  594. schema:
  595. type: dict
  596. $ref:
  597. - "definitions/gpuConfiguration"
  598. attrs: []