dev-resources.site
for different kinds of informations.
CKA Quick Check Points -- RBAC
Published at
1/10/2025
Categories
cka
rbac
kubernetes
Author
Cheedge Lee
This is a quick recap for RBAC, more details can check the official doc or click the tiltle links.
ServiceAccount (sa)
1. Yaml File
2. CMD
kubectl create serviceaccount NAME -n NAMESPACE
Role/Clusterrole
1. Yaml File
2. CMD
kubectl create [role|clusterrole] NAME --verb=verb --resource=resource.group/subresource [--resource-name=resourcename]
Rolebinding/Clusterrolebinding
1. Yaml File
2. CMD
kubectl create rolebinding NAME --clusterrole=NAME|--role=NAME [--user=username] [--group=groupname]
[--serviceaccount=namespace:serviceaccountname]
kubectl create clusterrolebinding NAME --clusterrole=NAME [--user=username] [--group=groupname]
[--serviceaccount=namespace:serviceaccountname]
Usage & Quick Verify
1. Usage
Pod yaml file add spec.serviceAccountName
2. Quick Verify
kubectl auth can-i VERB RESOURCE --as=[USER|SA] -n NAMESPACE
more verifications can check details.
Articles
12 articles in total
CKA Quick Check Points -- RBAC
currently reading
Typo caused difference in NetworkPolicy yaml file
read article
CKA Quick Check Points -- Network
read article
CKA Quick Check Points -- Logs & Configs
read article
kubernets related logs & configurations
read article
Kubenetes Cluster & Nodes related issues
read article
Sidecar container simplified examples
read article
CKA Quick Check Points -- Pod Schedual
read article
a glance of Kubernetes RBAC
read article
CKA Recap -- Deployment
read article
ClusterIP vs. NodePort
read article
CKA Recap -- Ingress & NetworkPolicy
read article
Featured ones: