feat: add searxng deployment, service, and persistent volume claim
This commit is contained in:
13
cluster/apps/searxng/searxng-pvc.yml
Normal file
13
cluster/apps/searxng/searxng-pvc.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: longhorn-searxng
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 500Mi
|
||||
16
cluster/apps/searxng/searxng-svc.yml
Normal file
16
cluster/apps/searxng/searxng-svc.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: searxng-service
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
app: searxng
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
nodePort: 8085
|
||||
protocol: TCP
|
||||
|
||||
33
cluster/apps/searxng/searxng.yml
Normal file
33
cluster/apps/searxng/searxng.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: searxng
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: searxng
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: searxng
|
||||
spec:
|
||||
containers:
|
||||
- name: searxng
|
||||
image: searxng/searxng:2025.3.19-40feede51
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: "INSTANCE_NAME"
|
||||
value: "searxng"
|
||||
- name: BASE_URL
|
||||
value: "https://sear.akshun-lab.uk"
|
||||
volumeMounts:
|
||||
- name: searxng
|
||||
mountPath: /etc/searxng
|
||||
volumes:
|
||||
- name: searxng
|
||||
persistentVolumeClaim:
|
||||
claimName: longhorn-searxng
|
||||
Reference in New Issue
Block a user