k8s 中的 ingress 使用细节( 二 )

Ingress Controller 暴露的端口,这样外部就可以访问到 Ingress Controller 了;

  • 2、使用亲和性调度策略,使需要部署 Ingress Controller 的节点,每个节点都有一个 Ingress Controller 部署,然后用 hostPort 直接在这些边缘节点宿主机暴露端口,我们就能通过这些节点的 IP 和 hostPort来访问 Ingress Controller 了 。
  • 我们上面部署 Ingress Controller 的方式就是使用的hostPort 对外暴露端口 。
    参考【Kubernetes的Ingress是啥】https://www.cnblogs.com/chenqionghe/p/11726231.html【理解k8s 的 Ingress】https://www.jianshu.com/p/189fab1845c5【Ingress】https://www.huaweicloud.com/zhishi/Ingress.html【Ingress 控制器】https://kubernetes.io/zh-cn/docs/concepts/services-networking/ingress-controllers/【k8s中的ingress】https://boilingfrog.github.io/2022/11/05/k8s中的ingress/
    【k8s 中的 ingress 使用细节】

    经验总结扩展阅读