This commit is contained in:
24
kubernetes/apps/production/searxng/redis/redis-pod.yaml
Normal file
24
kubernetes/apps/production/searxng/redis/redis-pod.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: searxng-redis
|
||||
namespace: public-services
|
||||
spec:
|
||||
containers:
|
||||
- name: 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: "256Mi"
|
||||
cpu: "500m"
|
||||
volumes:
|
||||
- name: redis-data
|
||||
persistentVolumeClaim:
|
||||
claimName: searxng-redis-pvc
|
13
kubernetes/apps/production/searxng/redis/service.yaml
Normal file
13
kubernetes/apps/production/searxng/redis/service.yaml
Normal file
@ -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
|
Reference in New Issue
Block a user