ConfigMaps accept key value pairs in common string formats, like config files or JSON blobs. After you upload a config map, any workload can reference it as either an environment variable or a volume mount.

    1. From the Global view, select the project containing the namespace that you want to add a ConfigMap to.

    2. From the main menu, select Resources > Config Maps. Click Add Config Map.

    3. Select the Namespace you want to add Config Map to. You can also add a new namespace on the fly by clicking Add to a new namespace.

    4. From Config Map Values, click Add Config Map Value to add a key value pair to your ConfigMap. Add as many values as you need.

    Result: Your ConfigMap is added to the namespace. You can view it in the Rancher UI from the Resources > Config Maps view.

    Now that you have a ConfigMap added to a namespace, you can add it to a workload that you deploy from the namespace of origin. You can use the ConfigMap to specify information for you application to consume, such as:

    • Application environment variables.
    • Specifying parameters for a Volume mounted to the workload.