disable searngx (mem usage is too much)

This commit is contained in:
Lee
2024-09-24 08:01:21 +01:00
parent 6318c34ad1
commit 1fb2cedf28
9 changed files with 2 additions and 2 deletions

@ -0,0 +1,12 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: searxng-redis-pvc
namespace: public-services
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: searxng-redis
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
app: searxng-redis
template:
metadata:
labels:
app: searxng-redis
spec:
containers:
- name: searxng-redis
image: docker.io/valkey/valkey:8-alpine
command:
["valkey-server", "--save", "30", "1", "--loglevel", "warning"]
ports:
- containerPort: 6379
volumeMounts:
- name: redis-data
mountPath: /data
resources:
limits:
memory: "128Mi"
cpu: "100m"
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: searxng-redis-pvc

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Service
metadata:
name: searxng-redis
namespace: public-services
spec:
type: ClusterIP
ports:
- port: 6379
targetPort: 6379
selector:
app: searxng-redis