What happened:
Using the ingressController and default rbac-setup I get error logs from the controller saying:
E0103 14:54:27.082643 8 leaderelection.go:258] Failed to update lock: configmaps "kong-ingress-controller-leader-nginx-nginx" is forbidden: User "system:serviceaccount:my-namespace:kong-serviceaccount" cannot update configmaps in the namespace "my-namespace"
What you expected to happen:
The serviceaccount should have the roles to change this configmap
How to reproduce it (as minimally and precisely as possible):
Deploy with ingress-controller enabled. Maybe re-deploy kong pod (I did this changing useTLS and some ingress annotations - but don't think it's needed)
Anything else we need to know:
Updating configmaps resourceNames in controller-rbac-role.yaml seems to fix it. It's also documented that this needs to be updated when election-id or ingress-class is changed, so I guess others will find this easy enough as well. But after #9870 and #10031 the defaults are different.
Should now be "kong-ingress-controller-leader-nginx-nginx" as in the logs.
Is this a request for help?:
No
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Version of Helm and Kubernetes: helm
kubernetes
Which chart: stable/kong - 0.6.9
What happened: Using the ingressController and default rbac-setup I get error logs from the controller saying:
What you expected to happen: The serviceaccount should have the roles to change this configmap
How to reproduce it (as minimally and precisely as possible): Deploy with ingress-controller enabled. Maybe re-deploy kong pod (I did this changing useTLS and some ingress annotations - but don't think it's needed)
Anything else we need to know:
Updating configmaps resourceNames in controller-rbac-role.yaml seems to fix it. It's also documented that this needs to be updated when election-id or ingress-class is changed, so I guess others will find this easy enough as well. But after #9870 and #10031 the defaults are different. Should now be "kong-ingress-controller-leader-nginx-nginx" as in the logs.
I can also submit a PR.