85 lines
2.5 KiB
YAML
85 lines
2.5 KiB
YAML
---
|
|
# Source: searxng/charts/searxng/templates/common.yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: searxng-api
|
|
labels:
|
|
app.kubernetes.io/controller: api
|
|
app.kubernetes.io/instance: searxng
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: searxng
|
|
helm.sh/chart: searxng-4.4.0
|
|
namespace: searxng
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/controller: api
|
|
app.kubernetes.io/name: searxng
|
|
app.kubernetes.io/instance: searxng
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/controller: api
|
|
app.kubernetes.io/instance: searxng
|
|
app.kubernetes.io/name: searxng
|
|
spec:
|
|
enableServiceLinks: false
|
|
serviceAccountName: default
|
|
automountServiceAccountToken: true
|
|
hostIPC: false
|
|
hostNetwork: false
|
|
hostPID: false
|
|
dnsPolicy: ClusterFirst
|
|
containers:
|
|
- 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"
|
|
image: searxng/searxng:latest@sha256:09dfc123bd7c118ed086471b42d17ed57964827beffeb8d7f012dae3d2608545
|
|
imagePullPolicy: IfNotPresent
|
|
name: main
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 256Mi
|
|
volumeMounts:
|
|
- mountPath: /etc/searxng
|
|
name: api-data
|
|
- mountPath: /etc/searxng/settings.yml
|
|
mountPropagation: None
|
|
name: config
|
|
readOnly: true
|
|
subPath: settings.yml
|
|
- mountPath: /etc/searxng/limiter.toml
|
|
mountPropagation: None
|
|
name: config
|
|
readOnly: true
|
|
subPath: limiter.toml
|
|
volumes:
|
|
- name: api-data
|
|
persistentVolumeClaim:
|
|
claimName: searxng-api-data
|
|
- name: config
|
|
secret:
|
|
secretName: searxng-api-config-secret
|