forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
3.9 KiB
3.9 KiB
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 console. In the navigation pane on the left, 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.
- 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 MB.
Parent topic: Configuration Center