searxng/manifests/common/valkey.yaml

43 lines
732 B
YAML
Raw Normal View History

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