更新时间: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.
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".