作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
LoadBalancer
是使用in this article提到的kube-proxy
还是使用here提到的NodePort
?
如果实际上使用的是NodePort
,那么为什么像MetalLB这样的多个来源声称在生产中使用NodePort
并不是一个好主意?Ingress
也可以使用NodePort + nginx
进行操作。那么LoadBalancer
有什么特别之处?
最佳答案
这取决于云提供商的实现:
Traffic from the external load balancer will be directed at the backend Pods, though exactly how that works depends on the cloud provider.
When using the external load balancer, arriving traffic is initially routed to a node using a forwarding rule associated with the GCP network. After the traffic reaches the node, the node uses its iptables NAT table to choose a Pod. kube-proxy manages the iptables rules on the node.
关于kubernetes - LoadBalancer如何将流量转发到目标服务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55435926/
我是一名优秀的程序员,十分优秀!