Introduction
Sometimes you need to store small pieces of configuration data directly in Kubernetes without creating files. Creating ConfigMaps from literals lets you do this by typing the data right in the command line. This helps keep your app settings organized and easy to change.
When you want to quickly add a few configuration values to your app without making a file.
When you need to test different settings by changing values on the fly.
When you want to share simple environment variables with your pods.
When you want to keep configuration separate from your app code but don't want extra files.
When you want to update small config values without redeploying your app.