From de494761409166617c2f4abc4d88e95a16343fde Mon Sep 17 00:00:00 2001 From: nushkovg Date: Fri, 15 Nov 2024 20:46:24 +0100 Subject: [PATCH] feat: searxng-1.0.1 --- charts/searxng/Chart.yaml | 4 +- charts/searxng/README.md | 146 ++++++++++--------------------------- charts/searxng/values.yaml | 12 +-- 3 files changed, 45 insertions(+), 117 deletions(-) diff --git a/charts/searxng/Chart.yaml b/charts/searxng/Chart.yaml index b3f1236..a0afa64 100644 --- a/charts/searxng/Chart.yaml +++ b/charts/searxng/Chart.yaml @@ -3,8 +3,8 @@ maintainers: - name: kubitodev url: https://kubito.dev apiVersion: v2 -appVersion: 1.0.0 -version: 1.0.0 +appVersion: 1.0.1 +version: 1.0.1 description: Kubito SearXNG Helm Chart home: https://github.com/kubitodev/helm/tree/main/charts/searxng icon: https://kubito.dev/images/kubito.svg diff --git a/charts/searxng/README.md b/charts/searxng/README.md index 26a9227..3e01b52 100644 --- a/charts/searxng/README.md +++ b/charts/searxng/README.md @@ -61,115 +61,43 @@ The command removes all the Kubernetes components associated with the chart and ### Deployment parameters -| Name | Description | Value | -| ----------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `replicaCount` | The number of replicas to deploy. | `1` | -| `imagePullSecrets` | Private registry pull secrets to include. | `[]` | -| `env` | Additional environment variables to add to the deployment. | `[]` | -| `podAnnotations` | Additional pod annotations. | `{}` | -| `podLabels` | Additional pod labels. | `{}` | -| `podSecurityContext` | Optional pod security context. | `{}` | -| `securityContext` | Optional deployment security context. | `{}` | -| `service.type` | The type of the service to use. | `ClusterIP` | -| `service.port` | The service port to use. | `8080` | -| `config.settings.enabled` | Enable custom settings. | `true` | -| `config.settings.data` | Custom settings data. Replace the secret key to any random string with `openssl rand -hex 32`. | `use_default_settings: true - -server: - secret_key: "57dc63125e7eef404481411b99c21fb9a5763b724b0bc88f2440ef373cf94809" - limiter: false - image_proxy: true - port: 8080 - bind_address: "0.0.0.0" - -ui: - static_use_hash: true - -search: - safe_search: 0 - autocomplete: "" - default_lang: "" - formats: - - html - - json -` | -| `config.limiter.enabled` | Enable IP limiter. | `true` | -| `config.limiter.data` | IP limiter data. | `[botdetection.ip_limit] -# activate link_token method in the ip_limit method -link_token = true -` | -| `config.uwsgi.enabled` | Enable UWSGI. | `true` | -| `config.uwsgi.data` | UWSGI data. | `[uwsgi] -# Who will run the code -uid = searxng -gid = searxng - -# Number of workers (usually CPU count) -# default value: %k (= number of CPU core, see Dockerfile) -workers = %k - -# Number of threads per worker -# default value: 4 (see Dockerfile) -threads = 4 - -# The right granted on the created socket -chmod-socket = 666 - -# Plugin to use and interpreter config -single-interpreter = true -master = true -plugin = python3 -lazy-apps = true -enable-threads = 4 - -# Module to import -module = searx.webapp - -# Virtualenv and python path -pythonpath = /usr/local/searxng/ -chdir = /usr/local/searxng/searx/ - -# automatically set processes name to something meaningful -auto-procname = true - -# Disable request logging for privacy -disable-logging = true -log-5xx = true - -# Set the max size of a request (request-body excluded) -buffer-size = 8192 - -# No keep alive -# See https://github.com/searx/searx-docker/issues/24 -add-header = Connection: close - -# uwsgi serves the static files -static-map = /static=/usr/local/searxng/searx/static -# expires set to one day -static-expires = /* 86400 -static-gzip-all = True -offload-threads = 4 -` | -| `ingress.enabled` | Enable ingress record generation for Searxng. | `false` | -| `ingress.className` | The class name of the ingress to use. | `""` | -| `ingress.annotations` | Mapped annotations for the ingress. | `{}` | -| `ingress.hosts` | Array style hosts for the ingress. | `nil` | -| `ingress.tls` | Array style TLS secrets for the ingress. | `[]` | -| `resources` | Optional resource requests and limits to set. | `{}` | -| `livenessProbe.httpGet.path` | The path to use for the liveness probe. | `/` | -| `livenessProbe.httpGet.port` | The port name to use for the liveness probe. | `http` | -| `readinessProbe.httpGet.path` | The path to use for the readiness probe. | `/` | -| `readinessProbe.httpGet.port` | The port name to use for the readiness probe. | `http` | -| `autoscaling.enabled` | Whether to enable autoscaling. | `false` | -| `autoscaling.minReplicas` | The minimum number of replicas to scale to. | `1` | -| `autoscaling.maxReplicas` | The maximum number of replicas to scale to. | `100` | -| `autoscaling.targetCPUUtilizationPercentage` | The target CPU utilization percentage to use for autoscaling. | `80` | -| `autoscaling.targetMemoryUtilizationPercentage` | The target memory utilization percentage to use for autoscaling. | `80` | -| `volumes` | Additional volumes to use. | `[]` | -| `volumeMounts` | Additional volume mounts to use. | `[]` | -| `nodeSelector` | Optional node selector to use. | `{}` | -| `tolerations` | Whether to set node tolerations. | `[]` | -| `affinity` | Whether to set node affinity. | `{}` | +| Name | Description | Value | +| ----------------------------------------------- | ---------------------------------------------------------------------------------------------- | ----------- | +| `replicaCount` | The number of replicas to deploy. | `1` | +| `imagePullSecrets` | Private registry pull secrets to include. | `[]` | +| `env` | Additional environment variables to add to the deployment. | `[]` | +| `podAnnotations` | Additional pod annotations. | `{}` | +| `podLabels` | Additional pod labels. | `{}` | +| `podSecurityContext` | Optional pod security context. | `{}` | +| `securityContext` | Optional deployment security context. | `{}` | +| `service.type` | The type of the service to use. | `ClusterIP` | +| `service.port` | The service port to use. | `8080` | +| `config.settings.enabled` | Enable custom settings. | `true` | +| `config.settings.data` | Custom settings data. Replace the secret key to any random string with `openssl rand -hex 32`. | `{}` | +| `config.limiter.enabled` | Enable IP limiter. | `true` | +| `config.limiter.data` | IP limiter data. | `{}` | +| `config.uwsgi.enabled` | Enable UWSGI. | `true` | +| `config.uwsgi.data` | UWSGI data. | `{}` | +| `ingress.enabled` | Enable ingress record generation for Searxng. | `false` | +| `ingress.className` | The class name of the ingress to use. | `""` | +| `ingress.annotations` | Mapped annotations for the ingress. | `{}` | +| `ingress.hosts` | Array style hosts for the ingress. | `nil` | +| `ingress.tls` | Array style TLS secrets for the ingress. | `[]` | +| `resources` | Optional resource requests and limits to set. | `{}` | +| `livenessProbe.httpGet.path` | The path to use for the liveness probe. | `/` | +| `livenessProbe.httpGet.port` | The port name to use for the liveness probe. | `http` | +| `readinessProbe.httpGet.path` | The path to use for the readiness probe. | `/` | +| `readinessProbe.httpGet.port` | The port name to use for the readiness probe. | `http` | +| `autoscaling.enabled` | Whether to enable autoscaling. | `false` | +| `autoscaling.minReplicas` | The minimum number of replicas to scale to. | `1` | +| `autoscaling.maxReplicas` | The maximum number of replicas to scale to. | `100` | +| `autoscaling.targetCPUUtilizationPercentage` | The target CPU utilization percentage to use for autoscaling. | `80` | +| `autoscaling.targetMemoryUtilizationPercentage` | The target memory utilization percentage to use for autoscaling. | `80` | +| `volumes` | Additional volumes to use. | `[]` | +| `volumeMounts` | Additional volume mounts to use. | `[]` | +| `nodeSelector` | Optional node selector to use. | `{}` | +| `tolerations` | Whether to set node tolerations. | `[]` | +| `affinity` | Whether to set node affinity. | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/charts/searxng/values.yaml b/charts/searxng/values.yaml index f53ee4d..3a770d2 100644 --- a/charts/searxng/values.yaml +++ b/charts/searxng/values.yaml @@ -35,11 +35,11 @@ serviceAccount: ## @param service.type The type of the service to use. ## @param service.port The service port to use. ## @param config.settings.enabled Enable custom settings. -## @param config.settings.data Custom settings data. Replace the secret key to any random string with `openssl rand -hex 32`. +## @param config.settings.data [object, nullable] Custom settings data. Replace the secret key to any random string with `openssl rand -hex 32`. ## @param config.limiter.enabled Enable IP limiter. -## @param config.limiter.data IP limiter data. +## @param config.limiter.data [object, nullable] IP limiter data. ## @param config.uwsgi.enabled Enable UWSGI. -## @param config.uwsgi.data UWSGI data. +## @param config.uwsgi.data [object, nullable] UWSGI data. ## @param ingress.enabled Enable ingress record generation for Searxng. ## @param ingress.className The class name of the ingress to use. ## @param ingress.annotations Mapped annotations for the ingress. @@ -90,7 +90,7 @@ service: config: settings: enabled: true - data: | + data: |- use_default_settings: true server: @@ -112,13 +112,13 @@ config: - json limiter: enabled: true - data: | + data: |- [botdetection.ip_limit] # activate link_token method in the ip_limit method link_token = true uwsgi: enabled: true - data: | + data: |- [uwsgi] # Who will run the code uid = searxng