ai/at
1
0
Files
at/k8s/redis.yaml
2026-02-04 22:59:18 +09:00

59 lines
1.1 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: redis
namespace: atproto
spec:
selector:
app: redis
ports:
- port: 6379
targetPort: 6379
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
namespace: atproto
spec:
replicas: 1
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: redis:alpine
ports:
- containerPort: 6379
volumeMounts:
- name: data
mountPath: /data
livenessProbe:
exec:
command: ["redis-cli", "ping"]
periodSeconds: 5
readinessProbe:
exec:
command: ["redis-cli", "ping"]
periodSeconds: 5
volumes:
- name: data
persistentVolumeClaim:
claimName: redis-data
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-data
namespace: atproto
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi