0

我正在运行一个 AWS EKS 集群,我正在向其部署 HAPRoxy 入口,特别是https://github.com/jcmoraisjr/haproxy-ingress

如果我有 3 个节点,我只能部署 3 个 haproxy ingress pod,每个节点上一个。因此,如果我将 pod 的数量增加到 4 个,第 4 个 pod 将保持挂起状态,直到创建 haproxy 将被调度到的第 4 个节点。如果我描述待处理的 pod,这就是我得到的:

Events:           
Type     Reason            Age                From                Message
----     ------            ----               ----                -------
Warning  FailedScheduling  21s (x2 over 22s)  default-scheduler   0/3 nodes are available: 3 node(s) didn't have free ports for the requested pod ports.
Normal   TriggeredScaleUp  19s                cluster-autoscaler  pod triggered scale-up: [{eks-zoneb-a4bf12c4-e990-4d84-8b5b-68dd161aa140 1->2 (max: 4)}]

我的问题是,有没有办法配置 haproxy,以便可以将多个 haproxy pod 部署到同一个节点?

4

0 回答 0