Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

29.3. 配置服务 ExternalIP 和 NodePort

用户可以在服务中分配 VIP 作为 ExternalIPkeepalived 确保每个 VIP 都在 ipfailover 配置中的某个节点上提供。当请求到达节点时,在集群中的所有节点上运行的服务会在服务的端点之间平衡请求。

NodePorts 可以设置为 ipfailover 监控端口,以便 keepalived 能够检查应用是否正在运行。NodePort 在集群中的所有节点上公开,因此所有 ipfailover 节点上可由 keepalived 使用。