ConfigMaps
ConfigMaps are objects that you can use to store the configurations required by applications. After you create a ConfigMap, you can use it as a file in a containerized application.
Creating a ConfigMap
- Log in to the CCI 2.0 console.
- In the navigation pane, choose Configuration Center.
- Select a namespace and click the ConfigMaps tab.
- Click Create from YAML in the upper left corner and edit the YAML file. For details about the YAML file, see YAML format.
CCI 2.0 supports both JSON and YAML, and the file size cannot exceed 1 MiB.
- Click OK.
Using a ConfigMap
After a ConfigMap is created, you can mount it to a container as a storage volume during pod creation. For example, mount a ConfigMap named system-preset-aeskey to a container and set the storage volume name to volume1.

ConfigMap File Format
A ConfigMap resource file must be in either JSON or YAML format, and the file size cannot exceed 1 MiB.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot