Create role which allows access to a pod via shell and console in RHOCP 4

Solution Verified - Updated -

Issue

  • Unable to establish role permissions that allow access to container shell and console but with no other permissions.
  • Get error forbidden: User "username" cannot get resource "pods" in API group.
  • Add rsh pod permissions to a role.
  • Add exec pod permissions to a role

Environment

  • Red Hat Openshift Container Platform 4 (RHOCP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content