hardkubectl

Create a ConfigMap from literal key-value pairs on the command line

command

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

also accepted

kubectl create configmapkubectl create cmkubectl create cm CONFIGMAP_NAME --from-literal=KEY=VALUE

Command breakdown

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

kubectlcreateconfigmapCONFIGMAP_NAME--from-literal=KEY=VALUE
FlagPurpose
--from-literalSet to: KEY=VALUE

Test your recall — not just your reading.

Practice with interactive quiz →