ConfigMaps અને Secrets configuration ને container images થી અલગ કરે છે, જેથી એ જ image dev, staging, અને production માં અલગ-અલગ settings સાથે ચાલે. ConfigMaps non-sensitive config ધરાવે છે; Secrets sensitive data (passwords, tokens, keys) ધરાવે છે અને તેમને વધુ કાળજીથી handle કરવામાં આવે છે.
વિચાર: config ને image ની બહાર રાખો
Image = code (immutable, built once). Config = per-environment values.
Baking config into the image is an anti-pattern (rebuild per env, secrets leak).
→ Store config in ConfigMaps/Secrets, inject at runtime as env vars or files.
