easykubectl

Create a ConfigMap from a single key-value literal pair

command

kubectl create configmap CONFIG_NAME --from-literal KEY=VALUE

also accepted

kubectl create configmapkubectl create configmap CONFIG_NAME --from-literal

Command breakdown

Part of the Kubernetes CLI (kubectl) — ConfigMaps & Secrets category.

kubectlcreateconfigmapCONFIG_NAME--from-literalKEY=VALUE
FlagPurpose
--from-literalBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →