questions.yaml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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: datasetName
  105. label: Dataset Name
  106. schema:
  107. type: string
  108. show_if: [["type", "=", "ixVolume"]]
  109. required: true
  110. hidden: true
  111. immutable: true
  112. default: "config"
  113. $ref:
  114. - "normalize/ixVolume"
  115. - variable: hostPath
  116. label: Host Path
  117. schema:
  118. type: hostpath
  119. show_if: [["type", "=", "hostPath"]]
  120. immutable: true
  121. required: true
  122. - variable: additionalStorages
  123. label: Additional Storage
  124. description: Additional storage for SearXNG.
  125. schema:
  126. type: list
  127. default: []
  128. items:
  129. - variable: storageEntry
  130. label: Storage Entry
  131. schema:
  132. type: dict
  133. attrs:
  134. - variable: type
  135. label: Type
  136. description: |
  137. ixVolume: Is dataset created automatically by the system.</br>
  138. Host Path: Is a path that already exists on the system.</br>
  139. SMB Share: Is a SMB share that is mounted to a persistent volume claim.
  140. schema:
  141. type: string
  142. required: true
  143. default: "ixVolume"
  144. immutable: true
  145. enum:
  146. - value: "hostPath"
  147. description: Host Path (Path that already exists on the system)
  148. - value: "ixVolume"
  149. description: ixVolume (Dataset created automatically by the system)
  150. - value: "smb-pv-pvc"
  151. description: SMB Share (Mounts a persistent volume claim to a SMB share)
  152. - variable: mountPath
  153. label: Mount Path
  154. description: The path inside the container to mount the storage.
  155. schema:
  156. type: path
  157. required: true
  158. - variable: hostPath
  159. label: Host Path
  160. description: The host path to use for storage.
  161. schema:
  162. type: hostpath
  163. show_if: [["type", "=", "hostPath"]]
  164. required: true
  165. - variable: datasetName
  166. label: Dataset Name
  167. description: The name of the dataset to use for storage.
  168. schema:
  169. type: string
  170. show_if: [["type", "=", "ixVolume"]]
  171. required: true
  172. immutable: true
  173. default: "storage_entry"
  174. $ref:
  175. - "normalize/ixVolume"
  176. - variable: server
  177. label: Server
  178. description: The server for the SMB share.
  179. schema:
  180. type: string
  181. show_if: [["type", "=", "smb-pv-pvc"]]
  182. required: true
  183. - variable: share
  184. label: Share
  185. description: The share name for the SMB share.
  186. schema:
  187. type: string
  188. show_if: [["type", "=", "smb-pv-pvc"]]
  189. required: true
  190. - variable: domain
  191. label: Domain (Optional)
  192. description: The domain for the SMB share.
  193. schema:
  194. type: string
  195. show_if: [["type", "=", "smb-pv-pvc"]]
  196. - variable: username
  197. label: Username
  198. description: The username for the SMB share.
  199. schema:
  200. type: string
  201. show_if: [["type", "=", "smb-pv-pvc"]]
  202. required: true
  203. - variable: password
  204. label: Password
  205. description: The password for the SMB share.
  206. schema:
  207. type: string
  208. show_if: [["type", "=", "smb-pv-pvc"]]
  209. required: true
  210. private: true
  211. - variable: size
  212. label: Size (in Gi)
  213. description: The size of the volume quota.
  214. schema:
  215. type: int
  216. show_if: [["type", "=", "smb-pv-pvc"]]
  217. required: true
  218. min: 1
  219. default: 1
  220. - variable: resources
  221. group: Resources Configuration
  222. label: ""
  223. schema:
  224. type: dict
  225. attrs:
  226. - variable: limits
  227. label: Limits
  228. schema:
  229. type: dict
  230. attrs:
  231. - variable: cpu
  232. label: CPU
  233. description: CPU limit for SearXNG.
  234. schema:
  235. type: string
  236. max_length: 6
  237. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  238. valid_chars_error: |
  239. Valid CPU limit formats are</br>
  240. - Plain Integer - eg. 1</br>
  241. - Float - eg. 0.5</br>
  242. - Milicpu - eg. 500m
  243. default: "4000m"
  244. required: true
  245. - variable: memory
  246. label: Memory
  247. description: Memory limit for SearXNG.
  248. schema:
  249. type: string
  250. max_length: 12
  251. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  252. valid_chars_error: |
  253. Valid Memory limit formats are</br>
  254. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  255. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  256. - Plain Integer in bytes - eg. 1024</br>
  257. - Exponent - eg. 134e6
  258. default: "8Gi"
  259. required: true