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.

Kubernetes denying permission

See original GitHub issue

I have permission to one OpenShift project but I am unable to interact with the project in VSCode. I get an error:

Error from server (Forbidden): namespaces is forbidden: User cannot list namespaces at the cluster scope: no RBAC policy matched

I do not care about listing all namespaces. I only want to work with one namespace where I do have permissions.

Is this expected error?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gorkemcommented, Mar 18, 2020

It is expected. This is because OpenShift has more strict security policies than default Kubernetes. In fact, OpenShift has a concept called projects, which is namespaces with additional features, if you install the OpenShift Connector extension. It enhances this kubernetes extension and adds Projects to your cluster tree which you should be able to use like a regular namespace.

0reactions
jiridanekcommented, Mar 26, 2020

@lslavkov Can you close this issue please, since you are ok with the resolution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kubernetes Permission denied in container - Stack Overflow
I tried to remove said initcontainer, so the pod was executed but I still have the permission denied error. That being said, the...
Read more >
Kubernetes auth method : Permission Denied error
This article outlines the configuration needed to help fix the permission denied error in k8s auth. Introduction. The kubernetes auth method ...
Read more >
Access to Kubernetes-mounted File System is Denied
When a non-root user tries to write to File Storage directories, they receive a "permission denied" error. Symptom:
Read more >
Container permission denied: How to diagnose this error
You can diagnose this by telling the user to attempt to run the container as root, which would match up to the default...
Read more >
Authorization Overview - Kubernetes
Kubernetes authorizes API requests using the API server. It evaluates all of the request attributes against all policies and allows or denies ......
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