This section describes how to create a ConfigMap.

Prerequisites

You need to join a project and have the ConfigMap Management permission in the project. For more information, see Project Members and Project Roles.

Steps

  1. Log in to the KubeSphere web console with a user who has ConfigMap Management permissions and enter your workspace.

  2. Click Configuration > ConfigMaps in the left navigation pane.

  3. Select a project from the drop-down list in the upper left corner of the page.

  4. Click Create on the page.

  5. On the Basic Information tab, set the basic information for the Secret, then click Next.

    Parameter Description

    Name

    The name of the ConfigMap. The name can only contain lowercase letters, numbers, and hyphens (-), must start and end with a lowercase letter or number, and has a maximum length of 63 characters.

    Alias

    The alias of the ConfigMap. Different ConfigMaps can have the same alias.

    Description

    The description of the ConfigMap. The description can contain any characters and has a maximum length of 256 characters.

  6. On the Data Settings tab, set the key-value pair data for the ConfigMap, then click Create.

    • Click Add Data to set key-value pair data.

    • Hover over an existing data entry, then click pen on the right to edit the data entry.

    • Hover over an existing data entry, then click trash-light on the right to delete the data entry.

    After the ConfigMap is created, it will be displayed in the ConfigMap list.