questions.yaml 9.5 KB

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