39 lines
837 B
YAML
39 lines
837 B
YAML
---
|
|
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:f987b3bab09e8921c12caea48ab41716ed153b7e27799df4acba808dc03f0f0a
|
|
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
|