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

Unlock this course with a free trial

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

Role-based access control (RBAC)

Role-based access control (RBAC)

- So now that we have the dashboard loaded, let's go ahead and add a user so that we can get access to it. So the first thing we'll do is we're going to create a service account. Now this is just going to be an example. Now it's not going to be the most secure example, but it's going to show us how we can get in there fairly quickly. Then we'll start to lock it down with other parameters. But the first thing we want to do is we want to go ahead and apply a service account. So all we're going to do is we're going to go ahead and apply this little bit of YAML here. So it's a service account. We're going to give it a name of admin user and set it up in the namespace of Kubernetes dashboard. So at this point, we'd hit enter and that has created this service account. Now the next thing we need to do is we need to do a role binding. So a role binding is just going to take that username and apply it to permissions within the cluster. So once we go through and apply this one, so we're going…

Contents