questions.yaml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. groups:
  2. - name: SearXNG Configuration
  3. description: Configure SearXNG
  4. - name: Network Configuration
  5. description: Configure Network for SearXNG
  6. - name: Storage Configuration
  7. description: Configure Storage for SearXNG
  8. - name: Resources Configuration
  9. description: Configure Resources for SearXNG
  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. questions:
  20. - variable: searxngConfig
  21. label: ""
  22. group: SearXNG Configuration
  23. schema:
  24. type: dict
  25. attrs:
  26. - variable: instanceName
  27. label: Instance Name
  28. description: The name of the SearXNG instance.
  29. schema:
  30. type: string
  31. default: "SearXNG"
  32. required: true
  33. - variable: additionalEnvs
  34. label: Additional Environment Variables
  35. description: Configure additional environment variables for SearXNG.
  36. schema:
  37. type: list
  38. default: []
  39. items:
  40. - variable: env
  41. label: Environment Variable
  42. schema:
  43. type: dict
  44. attrs:
  45. - variable: name
  46. label: Name
  47. schema:
  48. type: string
  49. required: true
  50. - variable: value
  51. label: Value
  52. schema:
  53. type: string
  54. required: true
  55. - variable: searxngNetwork
  56. label: ""
  57. group: Network Configuration
  58. schema:
  59. type: dict
  60. attrs:
  61. - variable: webPort
  62. label: Web Port
  63. description: The port for the SearXNG Web UI.
  64. schema:
  65. type: int
  66. default: 30053
  67. min: 9000
  68. max: 65535
  69. required: true
  70. - variable: hostNetwork
  71. label: Host Network
  72. description: |
  73. Bind to the host network. It's recommended to keep this disabled.</br>
  74. schema:
  75. type: boolean
  76. default: false
  77. - variable: searxngStorage
  78. label: ""
  79. group: Storage Configuration
  80. schema:
  81. type: dict
  82. attrs:
  83. - variable: config
  84. label: SearXNG Config Storage
  85. description: The path to store SearXNG Configuration.
  86. schema:
  87. type: dict
  88. attrs:
  89. - variable: type
  90. label: Type
  91. description: |
  92. ixVolume: Is dataset created automatically by the system.</br>
  93. Host Path: Is a path that already exists on the system.
  94. schema:
  95. type: string
  96. required: true
  97. immutable: true
  98. default: "ixVolume"
  99. enum:
  100. - value: "hostPath"
  101. description: Host Path (Path that already exists on the system)
  102. - value: "ixVolume"
  103. description: ixVolume (Dataset created automatically by the system)
  104. - variable: ixVolumeConfig
  105. label: ixVolume Configuration
  106. description: The configuration for the ixVolume dataset.
  107. schema:
  108. type: dict
  109. show_if: [["type", "=", "ixVolume"]]
  110. $ref:
  111. - "normalize/ixVolume"
  112. attrs:
  113. - variable: aclEnable
  114. label: Enable ACL
  115. description: Enable ACL for the dataset.
  116. schema:
  117. type: boolean
  118. default: false
  119. - variable: datasetName
  120. label: Dataset Name
  121. description: The name of the dataset to use for storage.
  122. schema:
  123. type: string
  124. required: true
  125. immutable: true
  126. hidden: true
  127. default: "config"
  128. - variable: aclEntries
  129. label: ACL Configuration
  130. schema:
  131. type: dict
  132. show_if: [["aclEnable", "=", true]]
  133. attrs: []
  134. - variable: hostPathConfig
  135. label: Host Path Configuration
  136. schema:
  137. type: dict
  138. show_if: [["type", "=", "hostPath"]]
  139. attrs:
  140. - variable: aclEnable
  141. label: Enable ACL
  142. description: Enable ACL for the dataset.
  143. schema:
  144. type: boolean
  145. default: false
  146. - variable: acl
  147. label: ACL Configuration
  148. schema:
  149. type: dict
  150. show_if: [["aclEnable", "=", true]]
  151. attrs: []
  152. $ref:
  153. - "normalize/acl"
  154. - variable: hostPath
  155. label: Host Path
  156. description: The host path to use for storage.
  157. schema:
  158. type: hostpath
  159. show_if: [["aclEnable", "=", false]]
  160. immutable: true
  161. required: true
  162. - variable: additionalStorages
  163. label: Additional Storage
  164. description: Additional storage for SearXNG.
  165. schema:
  166. type: list
  167. default: []
  168. items:
  169. - variable: storageEntry
  170. label: Storage Entry
  171. schema:
  172. type: dict
  173. attrs:
  174. - variable: type
  175. label: Type
  176. description: |
  177. ixVolume: Is dataset created automatically by the system.</br>
  178. Host Path: Is a path that already exists on the system.</br>
  179. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  180. schema:
  181. type: string
  182. required: true
  183. default: "ixVolume"
  184. immutable: true
  185. enum:
  186. - value: "hostPath"
  187. description: Host Path (Path that already exists on the system)
  188. - value: "ixVolume"
  189. description: ixVolume (Dataset created automatically by the system)
  190. - value: "smb-pv-pvc"
  191. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  192. - variable: readOnly
  193. label: Read Only
  194. description: Mount the volume as read only.
  195. schema:
  196. type: boolean
  197. default: false
  198. - variable: mountPath
  199. label: Mount Path
  200. description: The path inside the container to mount the storage.
  201. schema:
  202. type: path
  203. required: true
  204. - variable: hostPathConfig
  205. label: Host Path Configuration
  206. schema:
  207. type: dict
  208. show_if: [["type", "=", "hostPath"]]
  209. attrs:
  210. - variable: aclEnable
  211. label: Enable ACL
  212. description: Enable ACL for the dataset.
  213. schema:
  214. type: boolean
  215. default: false
  216. - variable: acl
  217. label: ACL Configuration
  218. schema:
  219. type: dict
  220. show_if: [["aclEnable", "=", true]]
  221. attrs: []
  222. $ref:
  223. - "normalize/acl"
  224. - variable: hostPath
  225. label: Host Path
  226. description: The host path to use for storage.
  227. schema:
  228. type: hostpath
  229. show_if: [["aclEnable", "=", false]]
  230. immutable: true
  231. required: true
  232. - variable: ixVolumeConfig
  233. label: ixVolume Configuration
  234. description: The configuration for the ixVolume dataset.
  235. schema:
  236. type: dict
  237. show_if: [["type", "=", "ixVolume"]]
  238. $ref:
  239. - "normalize/ixVolume"
  240. attrs:
  241. - variable: aclEnable
  242. label: Enable ACL
  243. description: Enable ACL for the dataset.
  244. schema:
  245. type: boolean
  246. default: false
  247. - variable: datasetName
  248. label: Dataset Name
  249. description: The name of the dataset to use for storage.
  250. schema:
  251. type: string
  252. required: true
  253. immutable: true
  254. default: "storage_entry"
  255. - variable: aclEntries
  256. label: ACL Configuration
  257. schema:
  258. type: dict
  259. show_if: [["aclEnable", "=", true]]
  260. attrs: []
  261. - variable: smbConfig
  262. label: SMB Share Configuration
  263. description: The configuration for the SMB Share.
  264. schema:
  265. type: dict
  266. show_if: [["type", "=", "smb-pv-pvc"]]
  267. attrs:
  268. - variable: server
  269. label: Server
  270. description: The server for the SMB share.
  271. schema:
  272. type: string
  273. required: true
  274. - variable: share
  275. label: Share
  276. description: The share name for the SMB share.
  277. schema:
  278. type: string
  279. required: true
  280. - variable: domain
  281. label: Domain (Optional)
  282. description: The domain for the SMB share.
  283. schema:
  284. type: string
  285. - variable: username
  286. label: Username
  287. description: The username for the SMB share.
  288. schema:
  289. type: string
  290. required: true
  291. - variable: password
  292. label: Password
  293. description: The password for the SMB share.
  294. schema:
  295. type: string
  296. required: true
  297. private: true
  298. - variable: size
  299. label: Size (in Gi)
  300. description: The size of the volume quota.
  301. schema:
  302. type: int
  303. required: true
  304. min: 1
  305. default: 1
  306. - variable: resources
  307. group: Resources Configuration
  308. label: ""
  309. schema:
  310. type: dict
  311. attrs:
  312. - variable: limits
  313. label: Limits
  314. schema:
  315. type: dict
  316. attrs:
  317. - variable: cpu
  318. label: CPU
  319. description: CPU limit for SearXNG.
  320. schema:
  321. type: string
  322. max_length: 6
  323. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  324. valid_chars_error: |
  325. Valid CPU limit formats are</br>
  326. - Plain Integer - eg. 1</br>
  327. - Float - eg. 0.5</br>
  328. - Milicpu - eg. 500m
  329. default: "4000m"
  330. required: true
  331. - variable: memory
  332. label: Memory
  333. description: Memory limit for SearXNG.
  334. schema:
  335. type: string
  336. max_length: 12
  337. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  338. valid_chars_error: |
  339. Valid Memory limit formats are</br>
  340. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  341. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  342. - Plain Integer in bytes - eg. 1024</br>
  343. - Exponent - eg. 134e6
  344. default: "8Gi"
  345. required: true