知识卡片

普通读书笔记卡 · 3527.a

部署清单声明Pod期望态

理解等级:中级

Deployment 清单指定 API 类型、名称、命名空间、副本数、选择器和 Pod 模板。提交清单只表达期望状态;应继续核对 Pod 是否被调度、镜像是否拉取、容器是否就绪,避免把 apply 成功当作部署成功。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Microservice APIs》第 14 章《Deploying microservice APIs with Kubernetes》(源文件:_epub-src/OEBPS/Text/14.htm) - 结论依据:原文清单给出 Deployment 的副本、选择器、Pod 模板和镜像,并说明 Pod 会经历 Pending 到 Running。 - 原始内容:deployments are Kubernetes objects that operate our pods and provision them with everything they need to run, including a Docker image and port configuration. Create a file named orders-service-deployment.yaml and copy the