在 Openshift 中将 IP 列入白名单无效

Whitelisting IP in Openshift has no effect

我使用以下内容更新了现有路由中的 YAML:

metadata:
  annotations:
    haproxy.router.openshift.io/ip_whitelist: 192.168.1.10

但是,注释没有任何作用。我仍然可以从其他 IP 地址调用该服务。

我错过了什么?

我们正在使用目前不支持基于注释的白名单的第三方 Ingress。

OpenShift route-specific annotations will only work properly against the OpenShift HAProxy router/ingress-controller and OpenShift route objects.

第三方入口控制器将在 OpenShift 平台上工作,但 OpenShift 特定的特性和功能并不总是与 Kubernetes 社区的工件一起工作。