question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

microk8s.enable ingress does not include permissions to update configmap in ingress namespace

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
strainoviccommented, Feb 6, 2021

@balchua Sure, no problem. I’ll create PR till EOD.

Thanks 😃

1reaction
vdavycommented, Jan 11, 2021

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 :

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: nginx-ingress-microk8s-clusterrole
rules:
- apiGroups:
  - ""
  resources:
  - nodes
  - services
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - ""
  resources:
  - configmaps
  - endpoints
  - nodes
  - pods
  - secrets
  verbs:
  - list
  - watch
- apiGroups:
  - ""
  resources:
  - events
  verbs:
  - create
  - patch
- apiGroups:
  - extensions
  - networking.k8s.io
  resources:
  - ingresses
  - ingressclasses
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - extensions
  - networking.k8s.io
  resources:
  - ingresses/status
  verbs:
  - update

Hope this can help.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found