# Creating a Kubernetes ConfigMap

You can use Kubernetes ConfigMaps to store non-sensitive configuration data as key-value pairs. These values can later be mounted into containers as files or environment variables.

## Creating a Kubernetes ConfigMap

1. In the DuploCloud Portal, navigate to **Kubernetes** → **Config Maps**.
2. Click **Add**. The **Add Config Map** pane displays.<br>

   <figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FL3kUOgH0mkov7rcbmvIE%2FScreenshot%20(1084).png?alt=media&#x26;token=c1ac9673-b84d-4a05-922e-0fa87ea51cad" alt=""><figcaption><p>The <strong>Add Config Map</strong> pane</p></figcaption></figure>
3. Complete the fields:

<table data-header-hidden><thead><tr><th width="128.66668701171875"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Enter a name for the ConfigMap. (e.g., <code>my-config-map</code>).</td></tr><tr><td><strong>Data</strong></td><td>Add a key-value pair for each file to include in the ConfigMap, using a colon <code>:</code> to separate the key (filename) and value (file content).<br><strong>Example</strong>: <code>config.yaml: key1: value1</code></td></tr><tr><td><strong>Labels</strong></td><td>Enter key-value pairs to assign metadata to this ConfigMap. To group it with related workloads in the Kubernetes <strong>Apps</strong> page, add an app name using the format <code>app.duplocloud.net/app-name: "&#x3C;app name>"</code>.</td></tr></tbody></table>

4. Click **Create** to create the ConfigMap.

To use this ConfigMap in your application,[ mount it as a volume in a container](https://docs.duplocloud.com/docs/automation-platform/kubernetes-overview/mounting-config-as-files#mounting-a-kubernetes-configmap-as-a-volume).
