34 lines
792 B
YAML
34 lines
792 B
YAML
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
|