feat: deploy SearXNG en namespace researchowl
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: searxng-config
|
||||
namespace: researchowl
|
||||
data:
|
||||
settings.yml: |
|
||||
use_default_settings: true
|
||||
general:
|
||||
instance_name: "ResearchOwl Search"
|
||||
debug: false
|
||||
search:
|
||||
safe_search: 0
|
||||
autocomplete: ""
|
||||
default_lang: "all"
|
||||
server:
|
||||
secret_key: "researchowl-searxng-secret-key-change-me"
|
||||
limiter: false
|
||||
image_proxy: false
|
||||
port: 8080
|
||||
bind_address: "0.0.0.0"
|
||||
ui:
|
||||
static_use_hash: true
|
||||
engines:
|
||||
- name: duckduckgo
|
||||
engine: duckduckgo
|
||||
shortcut: ddg
|
||||
- name: google
|
||||
engine: google
|
||||
shortcut: g
|
||||
- name: bing
|
||||
engine: bing
|
||||
shortcut: bi
|
||||
- name: brave
|
||||
engine: brave
|
||||
shortcut: brave
|
||||
- name: wikipedia
|
||||
engine: wikipedia
|
||||
shortcut: wp
|
||||
base_url: "https://en.wikipedia.org/"
|
||||
- name: reddit
|
||||
engine: reddit
|
||||
shortcut: re
|
||||
outgoing:
|
||||
request_timeout: 10.0
|
||||
max_request_timeout: 15.0
|
||||
useragent_suffix: ""
|
||||
pool_connections: 100
|
||||
pool_maxsize: 20
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: searxng
|
||||
namespace: researchowl
|
||||
labels:
|
||||
app: searxng
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: searxng
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: searxng
|
||||
spec:
|
||||
containers:
|
||||
- name: searxng
|
||||
image: searxng/searxng:latest
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: SEARXNG_SETTINGS_PATH
|
||||
value: "/etc/searxng/settings.yml"
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/searxng
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8080
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8080
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: searxng-config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: searxng
|
||||
namespace: researchowl
|
||||
spec:
|
||||
selector:
|
||||
app: searxng
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user