通过Nginx Ingress Controller实现LDAP认证

4

我在Kubernetes中使用nginx ingress controller,其中我使用自定义的nginx模板文件通过定义ldap_server指令来设置ldap认证。运行nginx ingress controller yaml文件时,我遇到了以下错误。

Unknown directive ldap_server in nginx.templ file.

我在网上搜索后发现,可以通过在nginx中安装第三方模块来解决此问题,方法如下。
./configure --add-module=path_to_http_auth_ldap_module.

但是如何通过nginx ingress控制器来实现呢?因为它不直接提供访问nginx配置的方式。
1个回答

2

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接