This section describes how to create a ConfigMap.

Prerequisites

  • The Application Management for Cluster Federation extension must be installed and enabled on the KubeSphere platform.

  • You need to join a federated project and have the Federated Project Management permission in the corresponding workspace.

Steps

  1. Log in to the KubeSphere web console as a user with Federated Project Management permissions and enter your federated project.

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

  3. Click Create on the page.

  4. 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.

    Project

    The project to which the ConfigMap belongs.

    Description

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

  5. 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.