homelab/kubernetes/apps/production/searxng/deployment.yaml

48 lines
1.2 KiB
YAML
Raw Normal View History

2024-09-24 06:01:24 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: searxng
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
app: searxng
template:
metadata:
labels:
app: searxng
spec:
containers:
- name: searxng
image: docker.io/searxng/searxng:2024.9.23-6be56aee1
ports:
- containerPort: 8080
env:
- name: SEARXNG_BASE_URL
value: "https://search.fascinated.cc"
2024-09-24 06:25:41 +00:00
- name: SEARXNG_SECRET
2024-09-24 06:17:17 +00:00
valueFrom:
secretKeyRef:
name: searxng-secret
key: secret_key
volumeMounts:
- name: searxng-config-volume
2024-09-24 06:20:43 +00:00
mountPath: /etc/searxng/limiter.toml
subPath: limiter.toml
- name: searxng-config-volume
mountPath: /etc/searxng/settings.yml
subPath: settings.yml
2024-09-24 06:01:24 +00:00
resources:
2024-09-24 06:07:51 +00:00
requests:
2024-09-24 06:29:16 +00:00
memory: "384Mi"
2024-09-24 06:07:51 +00:00
cpu: "100m"
limits:
memory: "512Mi"
2024-09-24 06:01:24 +00:00
cpu: "500m"
2024-09-24 06:17:17 +00:00
volumes:
- name: searxng-config-volume
configMap:
name: searxng-config