A developer needs a ConfigMap holding a non-sensitive database host for a city permits app using kubectl. Which approach correctly creates that configuration object?
Select an answer to reveal the explanation.
Short Explanation
ConfigMaps are the labeled cubbies for plain settings like a DB hostname. kubectl create configmap --from-literal fills a cubby without pretending the value is a Secret. expose and raw Pod env alone are different tools.
Full Explanation
kubectl create configmap with --from-literal builds a ConfigMap data entry suitable for non-sensitive configuration. Secrets are the appropriate API for credentials, not routine hostnames. Embedding configuration only inside a Pod without a ConfigMap forgoes the shared, mountable configuration object. Service expose creates Services, not ConfigMaps.