且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误创建资源"configmaps";在部署Nginx入口控制器时

更新时间:2022-11-06 12:17:37

似乎未授予nginx服务帐户在命名空间中创建configmap资源的权限.

It looks like the nginx service account isn't granted permission to create configmap resources in the namespace.

  1. 看看这个角色定义角色绑定文件.进行必要的调整后应用它们,例如服务帐户名(从nginx-ingress-serviceaccountnginx).

  1. Take a look at this role definition and the role binding files. Apply them after making any necessary adjustments, like for the service account name (from nginx-ingress-serviceaccount to nginx).

部署配置具有以下参数:--configmap=\$(POD_NAMESPACE)/nginx-ingress-controller-conf.根据nginx入口控制器文档,即"...包含控制器自定义全局配置的ConfigMap的名称."

The Deployment configuration has this argument: --configmap=\$(POD_NAMESPACE)/nginx-ingress-controller-conf. According to the nginx ingress controller documentation, that is the "...Name of the ConfigMap containing custom global configurations for the controller".