知识卡片
工作负载类型匹配运行方式
Deployment 管理无状态常驻应用,StatefulSet 面向需稳定身份或存储的有状态应用,DaemonSet 在节点上铺设进程,Job/CronJob 运行一次性或定时任务。选型应由生命周期与状态需求决定,而非把所有进程都做成 Deployment。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》第 14 章《Deploying microservice APIs with Kubernetes》(源文件:_epub-src/OEBPS/Text/14.htm)
- 结论依据:原文逐一说明 Deployment、StatefulSet、DaemonSet、Job/CronJob 的用途,构成按运行方式选型的依据。
- 原始内容:Kubernetes has four types of workloads: Deployment , StatefulSet , DaemonSet , and Job/CronJob . Deployment is the most common type of Kubernetes workload and is useful for running stateless distributed applications.