Configuration contract
ConfigMap chứa non-sensitive config; Secret có access control nhưng base64 không tự là encryption. Chọn env hoặc volume theo update/restart semantics, permissions và app behavior. Không in Secret vào log, command output, screenshot hoặc repo.
Update và rollout
Đổi ConfigMap/Secret không luôn restart process. Dùng versioned resource/checksum annotation hoặc rollout có chủ đích; sau đó verify env/file và application health. Secret rotation cần revoke/replace/rollback plan.
Bài tập
Inject config/secret dummy bằng env/volume, đổi giá trị, quan sát propagation, restart/rollout và debug missing key. Ghi evidence đã redacted và cleanup namespace. Pass khi phân biệt được config bug, mount bug, permission bug và app reload behavior.