questions.yaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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. required: true
  161. - variable: additionalStorages
  162. label: Additional Storage
  163. description: Additional storage for SearXNG.
  164. schema:
  165. type: list
  166. default: []
  167. items:
  168. - variable: storageEntry
  169. label: Storage Entry
  170. schema:
  171. type: dict
  172. attrs:
  173. - variable: type
  174. label: Type
  175. description: |
  176. ixVolume: Is dataset created automatically by the system.</br>
  177. Host Path: Is a path that already exists on the system.</br>
  178. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  179. schema:
  180. type: string
  181. required: true
  182. default: "ixVolume"
  183. immutable: true
  184. enum:
  185. - value: "hostPath"
  186. description: Host Path (Path that already exists on the system)
  187. - value: "ixVolume"
  188. description: ixVolume (Dataset created automatically by the system)
  189. - value: "smb-pv-pvc"
  190. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  191. - variable: readOnly
  192. label: Read Only
  193. description: Mount the volume as read only.
  194. schema:
  195. type: boolean
  196. default: false
  197. - variable: mountPath
  198. label: Mount Path
  199. description: The path inside the container to mount the storage.
  200. schema:
  201. type: path
  202. required: true
  203. - variable: hostPathConfig
  204. label: Host Path Configuration
  205. schema:
  206. type: dict
  207. show_if: [["type", "=", "hostPath"]]
  208. attrs:
  209. - variable: aclEnable
  210. label: Enable ACL
  211. description: Enable ACL for the dataset.
  212. schema:
  213. type: boolean
  214. default: false
  215. - variable: acl
  216. label: ACL Configuration
  217. schema:
  218. type: dict
  219. show_if: [["aclEnable", "=", true]]
  220. attrs: []
  221. $ref:
  222. - "normalize/acl"
  223. - variable: hostPath
  224. label: Host Path
  225. description: The host path to use for storage.
  226. schema:
  227. type: hostpath
  228. show_if: [["aclEnable", "=", false]]
  229. required: true
  230. - variable: ixVolumeConfig
  231. label: ixVolume Configuration
  232. description: The configuration for the ixVolume dataset.
  233. schema:
  234. type: dict
  235. show_if: [["type", "=", "ixVolume"]]
  236. $ref:
  237. - "normalize/ixVolume"
  238. attrs:
  239. - variable: aclEnable
  240. label: Enable ACL
  241. description: Enable ACL for the dataset.
  242. schema:
  243. type: boolean
  244. default: false
  245. - variable: datasetName
  246. label: Dataset Name
  247. description: The name of the dataset to use for storage.
  248. schema:
  249. type: string
  250. required: true
  251. immutable: true
  252. default: "storage_entry"
  253. - variable: aclEntries
  254. label: ACL Configuration
  255. schema:
  256. type: dict
  257. show_if: [["aclEnable", "=", true]]
  258. attrs: []
  259. - variable: smbConfig
  260. label: SMB Share Configuration
  261. description: The configuration for the SMB Share.
  262. schema:
  263. type: dict
  264. show_if: [["type", "=", "smb-pv-pvc"]]
  265. attrs:
  266. - variable: server
  267. label: Server
  268. description: The server for the SMB share.
  269. schema:
  270. type: string
  271. required: true
  272. - variable: share
  273. label: Share
  274. description: The share name for the SMB share.
  275. schema:
  276. type: string
  277. required: true
  278. - variable: domain
  279. label: Domain (Optional)
  280. description: The domain for the SMB share.
  281. schema:
  282. type: string
  283. - variable: username
  284. label: Username
  285. description: The username for the SMB share.
  286. schema:
  287. type: string
  288. required: true
  289. - variable: password
  290. label: Password
  291. description: The password for the SMB share.
  292. schema:
  293. type: string
  294. required: true
  295. private: true
  296. - variable: size
  297. label: Size (in Gi)
  298. description: The size of the volume quota.
  299. schema:
  300. type: int
  301. required: true
  302. min: 1
  303. default: 1
  304. - variable: resources
  305. group: Resources Configuration
  306. label: ""
  307. schema:
  308. type: dict
  309. attrs:
  310. - variable: limits
  311. label: Limits
  312. schema:
  313. type: dict
  314. attrs:
  315. - variable: cpu
  316. label: CPU
  317. description: CPU limit for SearXNG.
  318. schema:
  319. type: string
  320. max_length: 6
  321. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  322. valid_chars_error: |
  323. Valid CPU limit formats are</br>
  324. - Plain Integer - eg. 1</br>
  325. - Float - eg. 0.5</br>
  326. - Milicpu - eg. 500m
  327. default: "4000m"
  328. required: true
  329. - variable: memory
  330. label: Memory
  331. description: Memory limit for SearXNG.
  332. schema:
  333. type: string
  334. max_length: 12
  335. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  336. valid_chars_error: |
  337. Valid Memory limit formats are</br>
  338. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  339. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  340. - Plain Integer in bytes - eg. 1024</br>
  341. - Exponent - eg. 134e6
  342. default: "8Gi"
  343. required: true