Day 6 of LFS250 | Working with Kubernetes - Config, Secrets & Storage

Day 6 of LFS250 and today was the most hands-on session yet. Three concepts that every K8s developer needs to get right from day one.

TIL: Your container image should know nothing about the environment it runs in. Kubernetes enforces that beautifully.

ConfigMaps - store your environment-specific config (URLs, feature flags, hostnames) outside your image and inject them at runtime. Same image, any environment. No rebuilds.

Secrets - same idea, but for sensitive data like passwords and tokens. Quick but important nuance: Secrets are base64-encoded by default, not encrypted. Security still depends on your cluster's access controls. Don't let the name lull you into a false sense of safety.

Persistent Volumes - containers are ephemeral; their local storage dies with them. PVs solve this for stateful workloads. The pattern is clean: a PVC (your app's storage request) binds to a PV (the actual storage) - and your app never needs to know what's backing it. AWS EBS, GCP disk, NFS - doesn't matter.

Also got more deliberate with kubectl today — describe and logs are quickly becoming my go-to debugging tools.

Day 6 done. The cluster is starting to feel like home.