Files
k3s/010-中间件/pvc.yaml
2026-02-05 00:11:05 +08:00

12 lines
307 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-data
namespace: middleware
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn # 指向你刚装好的 Longhorn
resources:
requests:
storage: 5Gi # Redis 主要是内存存储5G 足够放持久化文件了