Files
sbbb/base/data/searxng-deployment.yaml

101 lines
2.0 KiB
YAML
Raw Normal View History

apiVersion: v1
kind: ConfigMap
metadata:
name: searxng-config
namespace: data
data:
settings.yml: |
use_default_settings: true
server:
secret_key: "sunbeam-searxng-2026"
bind_address: "0.0.0.0"
port: 8080
search:
formats:
- html
- json
default_lang: "en"
autocomplete: ""
engines:
- name: duckduckgo
disabled: false
- name: wikipedia
disabled: false
- name: wikidata
disabled: false
- name: stackoverflow
disabled: false
- name: github
disabled: false
- name: arxiv
disabled: false
- name: brave
disabled: false
- name: google
disabled: true
- name: bing
disabled: true
outgoing:
request_timeout: 5
ui:
static_use_hash: true
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: searxng
namespace: data
spec:
replicas: 1
selector:
matchLabels:
app: searxng
template:
metadata:
labels:
app: searxng
spec:
containers:
- name: searxng
image: searxng/searxng:latest
ports:
- containerPort: 8080
volumeMounts:
- name: config
mountPath: /etc/searxng/settings.yml
subPath: settings.yml
resources:
limits:
memory: 4Gi
requests:
memory: 512Mi
cpu: 100m
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
volumes:
- name: config
configMap:
name: searxng-config
---
apiVersion: v1
kind: Service
metadata:
name: searxng
namespace: data
spec:
selector:
app: searxng
ports:
- port: 8080
targetPort: 8080