Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要了解nginx.confnginx-ingress-controller 容器 ( etc/nginx/nginx.conf) 中的 Keepalive 是什么。Keepalive 对上游服务器(即负载均衡器)做了什么?
nginx.conf
etc/nginx/nginx.conf
keepalived 在 Kubernetes 集群中启用 virtualip。特别是当您需要设置高可用的 kubernetes 集群时,它非常有用。
它可以帮助您启用主服务器的高可用性。您需要在每台主机上安装keepalived。所有节点(在每个节点上运行的 kubelets 和 kube-proxies )都可以使用 VIrtualIP 到达主节点。如果其中一个主服务器崩溃,则 virtualip 将故障转移到另一个可用的主服务器。这样,您将在 k8s 中实现主服务器的高可用性