questions.yaml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. enum:
  143. - value: "hostPath"
  144. description: Host Path (Path that already exists on the system)
  145. - value: "ixVolume"
  146. description: ixVolume (Dataset created automatically by the system)
  147. - variable: mountPath
  148. label: Mount Path
  149. description: The path inside the container to mount the storage.
  150. schema:
  151. type: path
  152. required: true
  153. - variable: hostPath
  154. label: Host Path
  155. description: The host path to use for storage.
  156. schema:
  157. type: hostpath
  158. show_if: [["type", "=", "hostPath"]]
  159. required: true
  160. - variable: datasetName
  161. label: Dataset Name
  162. description: The name of the dataset to use for storage.
  163. schema:
  164. type: string
  165. show_if: [["type", "=", "ixVolume"]]
  166. required: true
  167. immutable: true
  168. default: "storage_entry"
  169. $ref:
  170. - "normalize/ixVolume"
  171. - variable: resources
  172. group: Resources Configuration
  173. label: ""
  174. schema:
  175. type: dict
  176. attrs:
  177. - variable: limits
  178. label: Limits
  179. schema:
  180. type: dict
  181. attrs:
  182. - variable: cpu
  183. label: CPU
  184. description: CPU limit for SearXNG.
  185. schema:
  186. type: string
  187. max_length: 6
  188. valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
  189. valid_chars_error: |
  190. Valid CPU limit formats are</br>
  191. - Plain Integer - eg. 1</br>
  192. - Float - eg. 0.5</br>
  193. - Milicpu - eg. 500m
  194. default: "4000m"
  195. required: true
  196. - variable: memory
  197. label: Memory
  198. description: Memory limit for SearXNG.
  199. schema:
  200. type: string
  201. max_length: 12
  202. valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
  203. valid_chars_error: |
  204. Valid Memory limit formats are</br>
  205. - Suffixed with E/P/T/G/M/K - eg. 1G</br>
  206. - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
  207. - Plain Integer in bytes - eg. 1024</br>
  208. - Exponent - eg. 134e6
  209. default: "8Gi"
  210. required: true