Create a new user for your cluster and endow them with the permissions they need! Use the following labs to help you:
-
Create a new namespace named
challenge.kubectl create ns challenge -
Create a UserAccount with your name! For now, let's call him
tony. -
Give
tonythe following permissions:In the namespace "challenge", tony can:
- [pods] - get, list, watch, create, update, delete
- [deployments] - get, list, watch, create, update, delete
In all namespaces, tony can:
- [pods] - get, list, watch
-
Add your new user to your
kubeconfig. Test that your permissions are correct withkubectl auth!
