:_mod-docs-content-type: ASSEMBLY
[id="config-maps"]
= Using config maps with applications
include::_attributes/common-attributes.adoc[]
:context: config-maps

toc::[]

Config maps allow you to decouple configuration artifacts from image content to keep containerized applications portable.

The following sections define config maps and how to create and use them.

include::modules/nodes-pods-configmap-overview.adoc[leveloffset=+1]

.Additional resources

* xref:../nodes/pods/nodes-pods-configmaps.adoc[Creating and using config maps]

[id="nodes-pods-config-maps-consuming-configmap-in-pods"]
== Use cases: Consuming config maps in pods

The following sections describe some uses cases when consuming `ConfigMap`
objects in pods.

include::modules/nodes-pods-configmaps-use-case-consuming-in-env-vars.adoc[leveloffset=+2]

include::modules/nodes-pods-configmaps-use-case-setting-command-line-arguments.adoc[leveloffset=+2]

include::modules/nodes-pods-configmaps-use-case-consuming-in-volumes.adoc[leveloffset=+2]
