Kubernetes Deployment 和 Service 如何相互配合?
Deployment 只提供网络功能,而 Service 控制 Pod 副本数。
Service 构建容器镜像,而 Deployment 存储源代码。
Deployment 管理应用 Pod,而 Service 提供稳定的网络端点,将流量路由到匹配的 Pod。
它们是同一个 Kubernetes 对象的两个名称。