searxng/manifests/common/valkey.yaml
2024-07-01 17:23:18 +02:00

43 lines
732 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: valkey
labels:
app: valkey
spec:
selector:
app: valkey
ports:
- name: valkey
port: 6379
targetPort: valkey
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: valkey
spec:
selector:
matchLabels:
app: valkey
serviceName: valkey
replicas: $NB_REPLICAS
template:
metadata:
labels:
app: valkey
spec:
containers:
- name: valkey
image: docker.io/valkey/valkey:latest
ports:
- name: valkey
containerPort: 6379
volumeMounts:
- name: data
mountPath: /data/
volumes:
- name: data
emptyDir: {}