46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: searxng
|
|
namespace: searxng
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: searxng
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: searxng
|
|
spec:
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 10
|
|
enableServiceLinks: false
|
|
containers:
|
|
- name: searxng
|
|
image: searxng/searxng:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
env:
|
|
- name: SEARXNG_BASE_URL
|
|
value: "https://search.jsme.be"
|
|
- name: SEARXNG_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: searxng-secrets
|
|
key: SEARXNG_SECRET_KEY
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /etc/searxng
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: searxng-pvc
|