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

6 lines
320 B
Markdown
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.
核心部署方案StatefulSet vs Deployment
对于 Redis 独立 Pod
不要用 Deployment 它是为无状态设计的Pod 名字随机,且多个副本会争抢同一个存储。
推荐使用 StatefulSet 专门用于数据库。Pod 名字固定(如 redis-0且能完美绑定 Longhorn 的磁盘。