add searxng deployment, service, PVC, and sealed secret configuration

This commit is contained in:
2025-10-16 00:27:36 +05:30
parent 8d2a71ba64
commit f4bd48f362
4 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: searxng
namespace: tools
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: searxng
template:
metadata:
labels:
app: searxng
spec:
containers:
- name: searxng
image: searxng/searxng@sha256:1458a9e6df554fa0306f2f4b770e2e49ad49dc726dddaa598eb4613718cb3b81
ports:
- containerPort: 8080
env:
- name: "INSTANCE_NAME"
value: "searxng"
- name: BASE_URL
valueFrom:
secretKeyRef:
name: searxng-secret
key: BASE_URL
volumeMounts:
- name: searxng
mountPath: /etc/searxng
volumes:
- name: searxng
persistentVolumeClaim:
claimName: searxng-longhorn