add searxng

This commit is contained in:
2025-02-17 17:52:23 -06:00
parent 9494d424e6
commit c1ef7a02bc
3 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
apiVersion: v2
name: searxng
version: 1.0.0
description: Searxng
keywords:
- searxng
- search
home: https://wiki.alexlebens.dev/doc/searxng-
sources:
- https://github.com/searxng/searxng
- https://github.com/valkey-io/valkey
- https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template
- https://github.com/bitnami/charts/tree/main/bitnami/valkey
maintainers:
- name: alexlebens
dependencies:
- name: app-template
alias: searxng
repository: https://bjw-s.github.io/helm-charts/
version: 3.6.1
- name: valkey
version: 2.2.3
repository: https://charts.bitnami.com/bitnami
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/svg/searxng.svg
appVersion: 1.0.0

View File

@@ -0,0 +1,30 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: searxng-config-secret
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: searxng-config-secret
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: web
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
secretStoreRef:
kind: ClusterSecretStore
name: vault
data:
- secretKey: settings.yml
remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: /cl01tl/searxng/config
metadataPolicy: None
property: settings.yml
- secretKey: limiter.toml
remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: /cl01tl/searxng/config
metadataPolicy: None
property: limiter.toml

View File

@@ -0,0 +1,140 @@
searxng:
controllers:
api:
type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
containers:
main:
image:
repository: docker.io/searxng/searxng
tag: 2025.1.26-70f1b6500
pullPolicy: IfNotPresent
env:
- name: SEARXNG_BASE_URL
value: http://searxng-api.searxng:8080
- name: SEARXNG_QUERY_URL
value: http://searxng-api.searxng:8080/search?q=<query>
- name: SEARXNG_HOSTNAME
value: searxng-api.searxng
- name: UWSGI_WORKERS
value: 4
- name: UWSGI_THREADS
value: 4
- name: ENABLE_RAG_WEB_SEARCH
value: true
- name: RAG_WEB_SEARCH_ENGINE
value: searxng
- name: RAG_WEB_SEARCH_RESULT_COUNT
value: 3
- name: RAG_WEB_SEARCH_CONCURRENT_REQUESTS
value: 10
resources:
requests:
cpu: 10m
memory: 256Mi
browser:
type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
containers:
main:
image:
repository: docker.io/searxng/searxng
tag: 2025.1.26-70f1b6500
pullPolicy: IfNotPresent
env:
- name: SEARXNG_BASE_URL
value: https://searxng-cl01tl.boreal-beaufort.ts.net/
- name: SEARXNG_QUERY_URL
value: https://searxng-cl01tl.boreal-beaufort.ts.net/search?q=<query>
- name: SEARXNG_HOSTNAME
value: searxng-cl01tl.boreal-beaufort.ts.net
- name: SEARXNG_REDIS_URL
value: redis://searxng-valkey-primary.searxng:6379/0
- name: UWSGI_WORKERS
value: 4
- name: UWSGI_THREADS
value: 4
resources:
requests:
cpu: 10m
memory: 256Mi
serviceAccount:
create: true
service:
api:
controller: api
ports:
mail:
port: 8080
targetPort: 8080
protocol: HTTP
browser:
controller: browser
ports:
mail:
port: 80
targetPort: 8080
protocol: HTTP
ingress:
tailscale:
enabled: true
className: tailscale
hosts:
- host: searxng-cl01tl
paths:
- path: /
pathType: Prefix
service:
name: searxng-browser
port: 80
tls:
- hosts:
- searxng-cl01tl
persistence:
config:
enabled: true
type: secret
name: searxng-config-secret
advancedMounts:
api:
main:
- path: /etc/searxng/settings.yml
readOnly: true
mountPropagation: None
subPath: settings.yml
- path: /etc/searxng/limiter.toml
readOnly: true
mountPropagation: None
subPath: limiter.toml
api-data:
storageClass: ceph-block-delete
accessMode: ReadWriteOnce
size: 5Gi
advancedMounts:
api:
main:
- path: /etc/searxng
readOnly: false
browser-data:
storageClass: ceph-block-delete
accessMode: ReadWriteOnce
size: 5Gi
advancedMounts:
browser:
main:
- path: /etc/searxng
readOnly: false
valkey:
architecture: standalone
auth:
enabled: false
primary:
persistence:
enabled: false
replica:
persistence:
enabled: false