This commit is contained in:
parent
6639673c00
commit
6318c34ad1
@ -1,23 +1,33 @@
|
|||||||
apiVersion: v1
|
apiVersion: apps/v1
|
||||||
kind: Pod
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: searxng-redis
|
name: searxng-redis
|
||||||
namespace: public-services
|
namespace: public-services
|
||||||
spec:
|
spec:
|
||||||
containers:
|
replicas: 1
|
||||||
- name: searxng-redis
|
selector:
|
||||||
image: docker.io/valkey/valkey:8-alpine
|
matchLabels:
|
||||||
command: ["valkey-server", "--save", "30", "1", "--loglevel", "warning"]
|
app: searxng-redis
|
||||||
ports:
|
template:
|
||||||
- containerPort: 6379
|
metadata:
|
||||||
volumeMounts:
|
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
|
- name: redis-data
|
||||||
mountPath: /data
|
persistentVolumeClaim:
|
||||||
resources:
|
claimName: searxng-redis-pvc
|
||||||
limits:
|
|
||||||
memory: "128Mi"
|
|
||||||
cpu: "100m"
|
|
||||||
volumes:
|
|
||||||
- name: redis-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: searxng-redis-pvc
|
|
||||||
|
Reference in New Issue
Block a user