gitea/manifests/common/valkey.yaml
ange f231efb04e
All checks were successful
/ deploy (push) Successful in 19s
feat: renovatebot (#2)
Reviewed-on: #2
2024-12-23 02:44:15 +00:00

42 lines
707 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: valkey
labels:
app: valkey
spec:
selector:
app: valkey
ports:
- name: valkey
port: 6379
---
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: {}