Search⌘ K

Hands-On: Creating ConfigMaps Imperatively

Explore how to create and inspect ConfigMaps imperatively in Kubernetes using the kubectl command. Understand data input options such as literals and files, and learn how ConfigMaps function as key-value stores without desired state.

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 ...