Creating a Kubernetes ConfigMap

Create Kubernetes ConfigMaps to store non-sensitive information with DuploCloud

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.

    The Add Config Map pane
  3. Complete the fields:

Name

Enter a name for the ConfigMap. (e.g., my-config-map).

Data

Add a key-value pair for each file to include in the ConfigMap, using a colon : to separate the key (filename) and value (file content). Example: config.yaml: key1: value1

  1. Click Create to create the ConfigMap.

To use this ConfigMap in your application, mount it as a volume in a container.

Last updated

Was this helpful?