From the course: Certified Kubernetes Security Specialist (CKS) Cert Prep

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Configuring and binding cluster roles

Configuring and binding cluster roles

- Let's add a cluster role to our configuration so that we can now be able to get access to resources cluster wide. First thing we're going to do is we're going to set up a cluster role. So the role itself is going to allow us to be able to define what aspects that we're going to get access to. So this is a limited cluster admin role, so it's going to reduce the scope from pretty much everything if we were to choose to, to allow all rules to a limited set that we can control. So here we're going to go ahead and add that one. And this has added that cluster role. So now at this point, if I want to, I can get a quick view of what type of capabilities this one has. And the easiest way to do it is to just do a describe. So we'll do a coop control describe cluster role, and then limited cluster admin. And as you can see here, it provides us the ability to be able to see the role and then the policies and rules that are available. So notice here we've got pods, services, deployments, we can…

Contents