Skip to Content
Learn OpenShift
book

Learn OpenShift

by Denis Zuev, Artemii Kropachev, Aleksey Usov
July 2018
Intermediate to advanced
504 pages
11h 34m
English
Packt Publishing
Content preview from Learn OpenShift

Using built-in roles

Let's see how we can use the edit pre-defined role to grant a user access to another user's project. First, login at MiniShift as alice:

$ oc login -u aliceAuthentication required for https://192.168.99.100:8443 (openshift)Username: alicePassword: <anypassword>Login successful.
Just as with an OpenShift cluster deployed via Ansible, the default identity provider is AllowAll, which allows you to use any credentials.

Next, create a new project called alice-project:

$ oc new-project alice-projectNow using project "alice-project" on server "https://192.168.99.100:8443"....<output omitted>...

Login as bob and observe that they weren't added as a member to any project by default:

$ oc login -u bobUsername: bobPassword: <anypassword> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Operating OpenShift

Operating OpenShift

Rick Rackow, Manuel Dewald
OpenShift for Developers, 2nd Edition

OpenShift for Developers, 2nd Edition

Joshua Wood, Brian Tannous
Kubernetes: Up and Running, 2nd Edition

Kubernetes: Up and Running, 2nd Edition

Brendan Burns, Joe Beda, Kelsey Hightower

Publisher Resources

ISBN: 9781788992329Supplemental Content