目前我们正在使用 haproxy 使用 tcp:bind 模式公开 kube-api,该模式工作正常。
我们需要保持单个 haproxy 来处理大约 4 个不同的集群 kube-api 端点,在这种情况下 tcp:bind 将不起作用。我们计划使用 acl 来匹配不同集群的主机字符串,以使用 http 模式路由相应的后端。当我们添加 ssl 时,我们得到以下错误。
Unable to connect to the server: x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0