โ Kubernetes Administrator (CKA) Exam Practice learning pathKubernetes Administrator (CKA) Exam Practice ยท Module 6 of 10
Configuration and security
ConfigMaps, Secrets, RBAC and service accounts.
๐ Key ideas
- ConfigMaps store non-sensitive config; Secrets store sensitive data (base64-encoded, enable encryption at rest).
- Both can be mounted as files or exposed as environment variables.
- RBAC: Role and RoleBinding (namespace), ClusterRole and ClusterRoleBinding (cluster-wide).
- ServiceAccounts give pods identities for API access.
- Security contexts set user IDs, privilege settings and capabilities; Pod Security Admission enforces baseline or restricted standards.
๐ก Real-life example: Like giving each worker an ID badge (ServiceAccount) with access only to rooms they need (RBAC).
ConfigMapStores non-sensitive configuration
SecretStores sensitive data
RoleNamespace-scoped permissions
ServiceAccountIdentity for pods