Skip to content

Latest commit

 

History

History

part-6

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Kubernetes Workshop

Part 7

You will learn:

  • Introduction to RBAC
    • Role
    • ServiceAccount
    • RoleBinding and ClusterRoleBinding

Follow Along Exercises

  1. List all Roles
  2. List all ServiceAccounts
  3. List all RoleBindings
  4. List all ClusterRoleBindings
  5. In-Cluster kubectl:
    1. kubectl run --rm -i --tty --restart=Never kubectl --image=bitnami/kubectl -- get pods
    2. kubectl run --rm -i --tty --restart=Never kubectl --image=bitnami/kubectl --command -- bash

Solo Exercises

  1. Create a Developer role, in default namespace, with permissions:
    1. Read Pods in default namespace
  2. Create a Developer service account in default namespace
  3. Create Developer role binding in default namespace
  4. Create kubectl pod that uses this service account:
    1. Run kubectl get pods (This should work)
    2. Run kubectl get pods -n kube-system (This should fail)