Hands-On: Creating ConfigMaps Imperatively
Learn to implement ConfigMaps imperatively.
We'll cover the following
As with most Kubernetes resources, we can create ConfigMaps imperatively and declaratively. We’ll look at the imperative method first.
Creating ConfigMaps
We create ConfigMaps imperatively with the kubectl create configmap
command. However, we can shorten configmap
to cm
, and the command accepts two sources of data:
Literal values on the command line (
--from-literal
)Files (
--from-file
)
Use the following terminal to run all the commands from this lesson.
Get hands-on with 1400+ tech skills courses.