知识卡片

普通读书笔记卡 · 3530

服务与入口分层路由

理解等级:中级

ClusterIP Service 给 Pod 提供稳定的集群内访问入口,可把 80 端口转发到容器 8000 端口;Ingress 再按 HTTP 路径把外部流量引向该 Service。两层分别解决内部发现与外部路由,不能把 Ingress 当作 Pod 本身。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Microservice APIs》第 14 章《Deploying microservice APIs with Kubernetes》(源文件:_epub-src/OEBPS/Text/14.htm) - 结论依据:原文先定义 Service 将流量转至 Pod,再展示 Ingress 根据 URL 路径指向 Service。 - 原始内容:services are Kubernetes objects that allow us to expose our pods as networking services. As you can see in figure 14.8, a service object exposes our applications as web services and redirects traffic from the cluster to our pods on the specified ports. Create a file named