EKS RBAC: An Approach and Strategy with Examples
Shows an RBAC management approach and strategy. We cover ClusterRole, ClusterRoleBinding, Role, and RoleBinding.
The setup looks like this:
Users
User | Description |
---|---|
test-admin | Full access to all resources. |
test-read-all | Read access to all resources. |
test-app1-dev-read | Read access to app1 dev. |
test-app2-dev-write | Write access to app2 dev. |
test-app2-owner | Read access to all resources and full access to app2 for prod and dev. |
Apps/Deployments
Deployment | Namespace |
---|---|
web | app1-dev |
web | app1-prod |
web | app2-dev |
web | app2-prod |
Useful Commands
kubectl auth can-i get pods --all-namespaces
kubectl auth can-i '*' '*'
kubectl auth can-i create pods --all-namespaces
kubectl auth can-i create '*' '*'
Links:
- GitHub: boltops-learn/eks-rbac
- AWS Docs: Managing users or IAM roles for your cluster
Docker Essentials
1h 46m
1h 46m
Kubernetes Intro
1h 43m
1h 43m
Kubernetes Deploy Tools
48m
48m
Kubes: Kubernetes Deploy Tool
2h 21m
2h 21m
Kubernetes Tips
19m
19m
AWS EKS Kubernetes
4h 13m
4h 13m
Azure AKS Kubernetes
40m
40m
Google GKE Kubernetes
3h 29m
3h 29m
Get full access to these great resources
All for less than the price of coffee a day
44 courses
286 lessons
46+ hours