microk8s.enable ingress does not include permissions to update configmap in ingress namespace
See original GitHub issueThe role nginx-ingress-microk8s-role
in the ingress
namespace must include update
for configmaps
.
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- update
It appears that the nginx ingress controller does this as part of its leader election. create
alone is insufficient.
Snap:
Name Version Rev Tracking Publisher Notes
microk8s v1.20.0 1866 1.20/stable canonical✓ classic
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
microk8s.enable ingress does not include permissions to ...
The role nginx-ingress-microk8s-role in the ingress namespace must include update for configmaps. - apiGroups: - "" resources: - configmaps ...
Read more >Addon: Ingress - MicroK8s
This addon adds an NGINX Ingress Controller for MicroK8s. It is enabled by running the command: microk8s enable ingress. With the Ingress addon...
Read more >Addon: Ingress - microk8s - Discuss Kubernetes
This addon adds an NGINX Ingress Controller for MicroK8s. It is enabled by running the command: microk8s enable ingress With the Ingress ......
Read more >Learn Kubernetes 101 - Part 5 - Using Ingress
When Ingress is enabled, MicroK8s adds an Ingress namespace. microk8s enable ingress. Verify that the NGINX Ingress controller is running.
Read more >ConfigMap Resource | NGINX Ingress Controller
Create a new (or update the existing) ConfigMap resource: $ kubectl apply -f nginx-config.yaml. The NGINX configuration will be updated.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@balchua Sure, no problem. I’ll create PR till EOD.
Thanks 😃
Hello,
There is also an error with nginx can’t get the default ingress class. The
nginx-ingress-microk8s-clusterrole
is missing the ingressclasses resource from networking.k8s.io.To get it properly working, I had to edit the
nginx-ingress-microk8s-clusterrole
and add the ingressclasses in the resources part of the 4th rule. Here is my new cluster role :Hope this can help.