openshift - 如何将 Openshift 路由上的服务列入白名单
问题描述
我知道可以将路由的 IP 地址列入白名单,但你能按名称将服务列入白名单吗?
运行 OpenShift 3.9。
寻找不需要外部解决方案(如 Istio、Nginx 等)的原生解决方案。
解决方案
我希望我能正确理解您的问题,即您想按 dns 名称将客户列入白名单。据我了解 Openshift 3.9 [1] 中的文档和 HAProxy [2] 中的文档,我在 HAProxy 本身中看不到任何选项来使用客户端的 dns 名称构建 acls。唯一可用的选项是 ip 白名单。
[1] https://docs.openshift.com/container-platform/3.9/architecture/networking/routes.html#whitelist
[2] https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#7.3
推荐阅读
- random - 具有不同概率的 Netlogo 随机抽样
- c - fgets() 没有响应 PuTTY 命令
- python - 浏览器上 tensorflowjs 中的“未知层:Lambda”
- javascript - 量角器,如何使用父亲的类名获取图像元素
- php - 使用 PHP 获取 JSON 数据时遇到问题
- hyperledger-fabric - 使用 Java-SDK 实例化 Chaincode 时出错
- reactjs - 如何在reactjs中更改组件时发送图像引发后期请求
- c++ - 无法为 Boost C++ 库生成 PDF 文档
- php - Apache2 和 Linux Mint 18.3 中的 PHP 错误
- r - 如何从R中的公司名称返回对股票代码名称的查询