This topic describes how to create a ConfigMap on the ConfigMaps page of the Container Service console.

Procedure

  1. Log on to the Container Service console.
  2. In the left-side navigation pane under Container Service-Kubernetes, choose Configuration > Config Maps.
  3. On the ConfigMaps page, select the target cluster and namespace from the Clusters and Namespaces drop-down lists, respectively. Then, click Create.
  4. Complete the settings and then click OK.
    设置配置项
    • Namespace: Select the namespace to which the Config Map belongs. Config Map is a Kubernetes resource object that must be applied to the namespace.
    • Config Map Name: Enter the Config Map name, which can contain lowercase letters, numbers, hyphens (-), and periods (.). The name cannot be empty. Other resource objects must reference the Config Map name to obtain the configuration information.
    • Configuration: Enter the Variable Name and the Variable Value. Then, click Add on the right. You can also click Edit, complete the configuration in the displayed dialog box, and click OK.

Result

You can find the ConfigMap in the ConfigMap list.