searxng/manifests/common/valkey.yaml
ange b24dc7fbab
All checks were successful
/ deploy (push) Successful in 5s
chore: bump 2024.7.29-98c73010f (#1)
Reviewed-on: #1
2024-07-30 10:21:28 +00: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: {}