Skip to content

Commit

Permalink
Update 0.通俗理解Kubernetes中Service、Ingress与Ingress Controller的作用与关系.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancger authored Oct 19, 2019
1 parent cfc6615 commit b3394c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Kubernetes 并没有自带 Ingress Controller,它只是一种标准,具体实现有多种,需要自己单独安装,常用的是 Nginx Ingress Controller 和 Traefik Ingress Controller。 所以 Ingress 是一种转发规则的抽象,Ingress Controller 的实现需要根据这些 Ingress 规则来将请求转发到对应的 Service,我画了个图方便大家理解:

![Ingress Controller数据流向图](https://github.com/Lancger/opsfull/blob/master/images/Ingress Controller01.png)
![Ingress Controller数据流向图](https://github.com/Lancger/opsfull/blob/master/images/Ingress%20Controller01.png)

从图中可以看出,Ingress Controller 收到请求,匹配 Ingress 转发规则,匹配到了就转发到后端 Service,而 Service 可能代表的后端 Pod 有多个,选出一个转发到那个 Pod,最终由那个 Pod 处理请求。

Expand Down

0 comments on commit b3394c8

Please sign in to comment.