V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
suant0u

[Kubernetes] Nginx-Ingress 通过 DaemonSet 对象部署的必要性?

  •  
  •   suant0u · Apr 3, 2020 · 3895 views
    This topic created in 2226 days ago, the information mentioned may be changed or developed.

    当前的部署方案是酱紫的:

    LoadBalancer Instance with cloud -> Cluster NodePort Service -> Ingress Controller Service -> Ingress Controller Pod.

    那么问题来了,Nginx-Ingress 是否有使用 DaemonSet 部署的必要? 酱紫的话就只能通过 NodeSelector 来控制 Nginx-Controller 的负载了?

    Supplement 1  ·  Apr 3, 2020
    如果我没理解错的话, 流量负载其实都会通过 Slave 的 IPTABLES 转发到 kube-proxy 再负载到对应的 Pods, 那么其实 DaemonSet 可能没有理想中的那样通过对应的 Slave Node Port 就会转发到当前 Node 的 Pods 中?
    3 replies    2020-04-05 10:44:38 +08:00
    rrfeng
        1
    rrfeng  
       Apr 3, 2020
    没有。
    rushssss
        2
    rushssss  
       Apr 3, 2020
    如果你是在 Bare metal 部署,那 deamonSet 在某种情况下是一个选项,但是如果是能提供 loadbalancer 的云环境, 那完全没有必要
    better0332
        3
    better0332  
       Apr 5, 2020
    ds 这种方式主要是为了分散转发鸭梨
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1052 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 22:50 · PVG 06:50 · LAX 15:50 · JFK 18:50
    ♥ Do have faith in what you're doing.