โ† Kubernetes Administrator (CKA) Exam Practice learning path
Kubernetes Administrator (CKA) Exam Practice ยท Module 6 of 10

Configuration and security

ConfigMaps, Secrets, RBAC and service accounts.

๐Ÿ“– Key ideas

  1. ConfigMaps store non-sensitive config; Secrets store sensitive data (base64-encoded, enable encryption at rest).
  2. Both can be mounted as files or exposed as environment variables.
  3. RBAC: Role and RoleBinding (namespace), ClusterRole and ClusterRoleBinding (cluster-wide).
  4. ServiceAccounts give pods identities for API access.
  5. 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